一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习

源代码在线查看: purchasebeancacheentryimpl_e813240d.java

软件大小: 2249 K
上传用户: face137
关键词: EJB DB2 JSP 连接
下载地址: 免注册下载 普通下载 VIP

相关代码

				package salesdb.websphere_deploy.DB2UDBNT_V8_1;								/**				 * PurchaseBeanCacheEntryImpl_e813240d				 */				public class PurchaseBeanCacheEntryImpl_e813240d extends com.ibm.ws.ejbpersistence.cache.DataCacheEntry implements salesdb.websphere_deploy.PurchaseBeanCacheEntry_e813240d {					/**					 * getPurchaseid					 */					public java.lang.Long getPurchaseid() {						if(PURCHASEID_IsNull)							return null;						else							return new Long(PURCHASEID_Data);					}					/**					 * setPurchaseid					 */					public void setPurchaseid(Long data) {						if (data == null)							this.PURCHASEID_IsNull= true;						else {							this.PURCHASEID_IsNull= false;							this.PURCHASEID_Data=data.longValue(); }					}					/**					 * setDataForPURCHASEID					 */					public void setDataForPURCHASEID(long data, boolean isNull) {						this.PURCHASEID_Data=data;						this.PURCHASEID_IsNull=isNull;					}					private long PURCHASEID_Data;					private boolean PURCHASEID_IsNull = true;					/**					 * getTimestmp					 */					public java.lang.String getTimestmp() {						return TIMESTMP_Data;					}					/**					 * setTimestmp					 */					public void setTimestmp(String data) {						this.TIMESTMP_Data=data;					}					/**					 * setDataForTIMESTMP					 */					public void setDataForTIMESTMP(String data) {						this.TIMESTMP_Data=data;					}					private String TIMESTMP_Data;					/**					 * getItemfk_itemid					 */					public java.lang.Long getItemfk_itemid() {						if(ITEMID_IsNull)							return null;						else							return new Long(ITEMID_Data);					}					/**					 * setItemfk_itemid					 */					public void setItemfk_itemid(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;					/**					 * getLocationfk_zipcode					 */					public java.lang.String getLocationfk_zipcode() {						return LOCATIONID_Data;					}					/**					 * setLocationfk_zipcode					 */					public void setLocationfk_zipcode(String data) {						this.LOCATIONID_Data=data;					}					/**					 * setDataForLOCATIONID					 */					public void setDataForLOCATIONID(String data) {						this.LOCATIONID_Data=data;					}					private String LOCATIONID_Data;					/**					 * getItemfkKey					 */					public salesdb.ItemKey getItemfkKey() {						if(ITEMID_IsNull)							return null;						salesdb.ItemKey key=new salesdb.ItemKey();						if(ITEMID_IsNull)							key.itemid=null;						else							key.itemid=new Long(ITEMID_Data);						return key;					}					/**					 * getLocationfkKey					 */					public salesdb.LocationKey getLocationfkKey() {						if(LOCATIONID_Data==null)							return null;						salesdb.LocationKey key=new salesdb.LocationKey();						key.zipcode=LOCATIONID_Data;						return key;					}					/**					 * getForeignKey					 */					public Object getForeignKey(String role) {						if(role.equals("itemfk"))							return getItemfkKey();						if(role.equals("locationfk"))							return getLocationfkKey();						else							return null;					}				}							

相关资源