资源简介
Eclipse项目出现missing library错误,缺少xdoclet-1.2.1jar包,在网上找了很多资源都不能用,好不容易找到一个,在此备注下,也希望可以帮到大家
使用方法:
右键单击项目----XDoclet------XDoclet home:选择xdoclet-1.2.1的lib文件夹-----确定
代码片段和文件信息
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个文件信息
- 上一篇:JSP软件工程案例精解 光盘源代码
- 下一篇:《Java语言程序设计》源代码沈泽刚
评论
共有 条评论