91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.64MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-28
  • 語言: Java
  • 標(biāo)簽: xdoclet??bin??1.2.1??zip??

資源簡介

XDoclet是一個開源項目,可以從這里得到他:http://xdoclet.sourceforge.net/xdoclet/ 。   XDoclet可以通過你在java源代碼中的一些特殊的注釋信息,自動為你生成配置文件、源代碼等等,例如web、ejb的部署描述文件、為你生成struts的struts-config.xml配置文件、javascript校驗等。   正如《XDoclet in Action》部分章節(jié)中文版一文中所說的“當(dāng)初,XDoclet因為可以自動生成EJB繁雜的接口和部署描述文件而聲名鵲起。然而,現(xiàn)在的XDoclet已經(jīng)發(fā)展成了一個全功能的、面向?qū)傩缘拇a生成框架。J2EE代碼生成只是XDoclet的一個應(yīng)用方面,它可以完成的任務(wù)已經(jīng)遠遠超越了J2EE和項目文檔的生成?!?  目前的版本可以為web、ejb、struts、webwork、hibnaate、jdo、jmx等等生成描述文件、源碼等,XDoclet提供了ant的任務(wù)target支持,完全通過ant來完成任務(wù)。   展開XDoclet的發(fā)布包,samples目錄下有直接可以運行的ant腳本文件。

資源截圖

代碼片段和文件信息

package?test.dao;

import?test.interfaces.CustomerPK;
import?test.ejb.CustomerBMPBean;
import?java.util.*;
import?javax.ejb.*;

/**
?*?Example?DAO?implementation?class
?*/
public?class?CustomerExampleDAO
implements?CustomerDAO
{
????
????/**
?????*?Initialise?DAO
?????*/
????public?void?init()
????{
????????//?do?JNDI?lookup?of?Datasource?resource?ref
????}
????
????/**
?????*?Called?by?ejbLoad
?????*/
????public?void?load(CustomerPK?pk?CustomerBMPBean?bean)
????{
????????//?SELECT?FROM?datasource?WHERE?pkfields?=?pk.getX()
????????//?bean.setX(read?values)
????}
????
????/**
?????*?Called?by?ejbStore
?????*/
????public?void?store(CustomerBMPBean?bean)
????{
????????//?UPDATE?datasource?SET?values?=?bean.getX()
????}
????
????/**
?????*?Called?by?create?method(s)
?????*/
????public?CustomerPK?create(CustomerBMPBean?bean)
????{
????????CustomerPK?pk?=?null;
????????//?INSERT?INTO?datasource?(values)?VALUES?(bean.getX())
????????//?pk?=?new?CustomerPK(pkfields)
????????return?pk;
????}
????
????/**
?????*?Called?by?ejbRemove
?????*/
????public?void?remove(CustomerPK?pk)
????{
????????//?DELETE?FROM?datasource?WHERE?pkfields?=?pk.getX()
????}
????
????/**
?????*?Called?by?mandatory?PK?finder
?????*/
????public?CustomerPK?findByPrimaryKey(CustomerPK?pk)
????{
????????//?SELECT?FROM?datasource?WHERE?pkfields?=?pk.getX()
????????//?if?not?found
????????//???throw?new?objectNotFoundException();
????????//?pk?=?new?CustomerPK(...);
????????return?pk;
????}
????
????/**
?????*?Finder?that?returns?all?rows
?????*/
????public?Collection?findAll()
????{
????????List?ret?=?new?ArrayList();
????????CustomerPK?pk;
????????//?SELECT?FROM?datasource
????????//?for?each?resultset?row
????????//???pk?=?new?CustomerPK(...);
????????//???ret.add(pk);
????????return?ret;
????}
????
????/**
?????*?Non-lifecycle?business?method?delegate
?????*/
????public?void?backup(CustomerPK?pk)
????{
????????//?INSERT?INTO?datasource.Archive?(fields)
????????//???SELECT?fields?FROM?Customer?WHERE?pkfields?=?pk.getX();
????}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2004-04-28?00:21??xdoclet-1.2.1\
?????目錄???????????0??2004-04-28?00:16??xdoclet-1.2.1\docs\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\
?????目錄???????????0??2004-04-28?00:15??xdoclet-1.2.1\docs\ant\xdoclet\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\ant\
?????目錄???????????0??2004-04-28?00:15??xdoclet-1.2.1\docs\ant\xdoclet\modules\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\apache\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\apache\axis\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\apache\axis\ejb\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\apache\soap\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\apache\soap\ejb\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\apache\struts\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\apache\struts\ejb\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\bea\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\bea\wls\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\bea\wls\ejb\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\bea\wls\web\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\borland\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\borland\bes\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\borland\bes\ejb\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\caucho\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\doc\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\doc\info\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\dao\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\dd\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\entity\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\home\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\intf\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\lookup\
?????目錄???????????0??2004-04-28?00:14??xdoclet-1.2.1\docs\ant\xdoclet\modules\ejb\session\
............此處省略1094個文件信息

評論

共有 條評論