studentbean.java~1~

来自「100多M的J2EE培训内容」· JAVA~1~ 代码 · 共 48 行

JAVA~1~
48
字号
package dempcmp;import javax.ejb.*;abstract public class StudentBean implements EntityBean {  EntityContext entityContext;  public java.lang.String ejbCreate(java.lang.String studentID) throws CreateException {    setStudentID(studentID);    return null;  }  public java.lang.String ejbCreate() throws CreateException  {    /**@todo Complete this method*/    return null;  }  public void ejbPostCreate(java.lang.String studentID) throws CreateException {    /**@todo Complete this method*/  }  public void ejbPostCreate() throws CreateException  {    /**@todo Complete this method*/  }  public void ejbRemove() throws RemoveException {    /**@todo Complete this method*/  }  public abstract void setStudentID(java.lang.String studentID);  public abstract void setFirstname(java.lang.String firstname);  public abstract void setLastname(java.lang.String lastname);  public abstract java.lang.String getStudentID();  public abstract java.lang.String getFirstname();  public abstract java.lang.String getLastname();  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 + -
显示快捷键?