java编程最好的书籍,感觉对初学者或者中级java人员帮助很大
源代码在线查看: bookbean.java~74~
package test; import javax.ejb.*; abstract public class bookBean implements EntityBean { EntityContext entityContext; public java.lang.String ejbCreate(java.lang.String bookid, java.lang.String baseprice, java.lang.String name, java.lang.String description) throws CreateException { setBookid(bookid); setBaseprice(baseprice); setName(name); setDescription(description); return null; } public void ejbPostCreate(java.lang.String bookid, java.lang.String baseprice, java.lang.String name, java.lang.String description) throws CreateException { /**@todo Complete this method*/ } public void ejbRemove() throws RemoveException { /**@todo Complete this method*/ } public abstract void setBookid(java.lang.String bookid); public abstract void setBaseprice(java.lang.String baseprice); public abstract void setName(java.lang.String name); public abstract void setDescription(java.lang.String description); public abstract java.lang.String getBookid(); public abstract java.lang.String getBaseprice(); public abstract java.lang.String getName(); 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; } }