用JBuilder+Jboos+mysql实现的EJB项目
源代码在线查看: itembean.java~1~
package com.jdon.estore.catalog; import javax.ejb.*; abstract public class ItemBean implements EntityBean { EntityContext entityContext; public java.lang.String ejbCreate(java.lang.String itemId) throws CreateException { setItemId(itemId); return null; } public void ejbPostCreate(java.lang.String itemId) throws CreateException { /**@todo Complete this method*/ } public void ejbRemove() throws RemoveException { /**@todo Complete this method*/ } public abstract void setItemId(java.lang.String itemId); public abstract void setListprice(java.lang.Float listprice); public abstract void setUnitcost(java.lang.Float unitcost); public abstract void setImagePath(java.lang.String imagePath); public abstract void setDescription(java.lang.String description); public abstract java.lang.String getItemId(); public abstract java.lang.Float getListprice(); public abstract java.lang.Float getUnitcost(); public abstract java.lang.String getImagePath(); public abstract java.lang.String getDescription(); public void ejbLoad() { /**@todo Complete this method*/ } public void ejbStore() { /**@todo Complete this method*/ } public void ejbActivate() { /**@todo Complete this method*/ } public void ejbPassivate() { /**@todo Complete this method*/ } public void unsetEntityContext() { this.entityContext = null; } public void setEntityContext(EntityContext entityContext) { this.entityContext = entityContext; } }