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

📄 lockerbean.java

📁 《J2EE应用开发(WebLogic+JBuilder)》代码
💻 JAVA
字号:
package cmpsample;import javax.ejb.*;import java.util.Collection;abstract public class LockerBean implements EntityBean {  EntityContext entityContext;  public java.lang.Integer ejbCreate(java.lang.Integer id) throws CreateException {    setId(id);    return null;  }  public void ejbPostCreate(java.lang.Integer id) throws CreateException {    /**@todo Complete this method*/  }  public void ejbRemove() throws RemoveException {    /**@todo Complete this method*/  }  public abstract void setId(java.lang.Integer id);  public abstract void setLockername(java.lang.String lockername);  public abstract void setStudent(cmpsample.Student student);  public abstract java.lang.Integer getId();  public abstract java.lang.String getLockername();  public abstract cmpsample.Student getStudent();  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;  }  public String getStuInfo() {    String t=null;   try {     Student stuRemote = getStudent();     t="student id=" + stuRemote.getStuid() + " student name = " + stuRemote.getStuname();   }catch (Exception e){}   return t;  }}

⌨️ 快捷键说明

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