⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 purchasebean.java

📁 一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
💻 JAVA
字号:
package salesdb;
/**
 * Bean implementation class for Enterprise Bean: Purchase
 */
public abstract class PurchaseBean implements javax.ejb.EntityBean {
	private javax.ejb.EntityContext myEntityCtx;
	/**
	 * setEntityContext
	 */
	public void setEntityContext(javax.ejb.EntityContext ctx) {
		myEntityCtx = ctx;
	}
	/**
	 * getEntityContext
	 */
	public javax.ejb.EntityContext getEntityContext() {
		return myEntityCtx;
	}
	/**
	 * unsetEntityContext
	 */
	public void unsetEntityContext() {
		myEntityCtx = null;
	}
	/**
	 * ejbCreate
	 */
	public salesdb.PurchaseKey ejbCreate(java.lang.Long purchaseid)
		throws javax.ejb.CreateException {
		setPurchaseid(purchaseid);
		return null;
	}
	/**
	 * ejbPostCreate
	 */
	public void ejbPostCreate(java.lang.Long purchaseid)
		throws javax.ejb.CreateException {
	}
	/**
	 * ejbActivate
	 */
	public void ejbActivate() {
	}
	/**
	 * ejbLoad
	 */
	public void ejbLoad() {
	}
	/**
	 * ejbPassivate
	 */
	public void ejbPassivate() {
	}
	/**
	 * ejbRemove
	 */
	public void ejbRemove() throws javax.ejb.RemoveException {
	}
	/**
	 * ejbStore
	 */
	public void ejbStore() {
	}
	/**
	 * ejbCreate method for a CMP entity bean.
	 */
	public salesdb.PurchaseKey ejbCreate(
		java.lang.Long purchaseid,
		java.lang.String timestmp)
		throws javax.ejb.CreateException {
		setPurchaseid(purchaseid);
		setTimestmp(timestmp);
		return null;
	}
	/**
	 * ejbPostCreate
	 */
	public void ejbPostCreate(
		java.lang.Long purchaseid,
		java.lang.String timestmp)
		throws javax.ejb.CreateException {
	}
	/**
	 * Get accessor for persistent attribute: purchaseid
	 */
	public abstract java.lang.Long getPurchaseid();
	/**
	 * Set accessor for persistent attribute: purchaseid
	 */
	public abstract void setPurchaseid(java.lang.Long newPurchaseid);
	/**
	 * Get accessor for persistent attribute: timestmp
	 */
	public abstract java.lang.String getTimestmp();
	/**
	 * Set accessor for persistent attribute: timestmp
	 */
	public abstract void setTimestmp(java.lang.String newTimestmp);
	/**
	 * This method was generated for supporting the relationship role named itemfk.
	 * It will be deleted/edited when the relationship is deleted/edited.
	 */
	public abstract salesdb.ItemLocal getItemfk();
	/**
	 * This method was generated for supporting the relationship role named itemfk.
	 * It will be deleted/edited when the relationship is deleted/edited.
	 */
	public abstract void setItemfk(salesdb.ItemLocal anItemfk);
	/**
	 * This method was generated for supporting the relationship role named locationfk.
	 * It will be deleted/edited when the relationship is deleted/edited.
	 */
	public abstract salesdb.LocationLocal getLocationfk();
	/**
	 * This method was generated for supporting the relationship role named locationfk.
	 * It will be deleted/edited when the relationship is deleted/edited.
	 */
	public abstract void setLocationfk(salesdb.LocationLocal aLocationfk);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -