一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
源代码在线查看: itembeancacheentryimpl_ff154d23.java
package salesdb.websphere_deploy.DB2UDBNT_V8_1; /** * ItemBeanCacheEntryImpl_ff154d23 */ public class ItemBeanCacheEntryImpl_ff154d23 extends com.ibm.ws.ejbpersistence.cache.DataCacheEntry implements salesdb.websphere_deploy.ItemBeanCacheEntry_ff154d23 { /** * getItemid */ public java.lang.Long getItemid() { if(ITEMID_IsNull) return null; else return new Long(ITEMID_Data); } /** * setItemid */ public void setItemid(Long data) { if (data == null) this.ITEMID_IsNull= true; else { this.ITEMID_IsNull= false; this.ITEMID_Data=data.longValue(); } } /** * setDataForITEMID */ public void setDataForITEMID(long data, boolean isNull) { this.ITEMID_Data=data; this.ITEMID_IsNull=isNull; } private long ITEMID_Data; private boolean ITEMID_IsNull = true; /** * getName */ public java.lang.String getName() { return NAME_Data; } /** * setName */ public void setName(String data) { this.NAME_Data=data; } /** * setDataForNAME */ public void setDataForNAME(String data) { this.NAME_Data=data; } private String NAME_Data; }