studentbean.java

来自「本书中的源代码是以JBuilder工程形式组织的」· Java 代码 · 共 42 行

JAVA
42
字号
package cmpsample;import javax.ejb.*;import java.util.Collection;abstract public class StudentBean implements EntityBean {  EntityContext entityContext;  public java.lang.Integer ejbCreate(java.lang.Integer stuid) throws CreateException {    setStuid(stuid);    return null;  }  public void ejbPostCreate(java.lang.Integer stuid) throws CreateException {    /**@todo Complete this method*/  }  public void ejbRemove() throws RemoveException {    /**@todo Complete this method*/  }  public abstract void setStuid(java.lang.Integer stuid);  public abstract void setStuname(java.lang.String stuname);  public abstract void setLockerid(java.lang.Integer lockerid);  public abstract java.lang.Integer getStuid();  public abstract java.lang.String getStuname();  public abstract java.lang.Integer getLockerid();  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;  }}

⌨️ 快捷键说明

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