tbemployeebean.java

来自「用j2ee开发的一个旅店管理系统」· Java 代码 · 共 67 行

JAVA
67
字号
package com.xc.hotelmanager.user.control.entity;import javax.ejb.*;import com.xc.hotelmanager.user.model.*;abstract public class TbEmployeeBean implements EntityBean {  EntityContext entityContext;  public java.lang.String ejbCreate(java.lang.String emid) throws CreateException {    setEmid(emid);    return null;  }  public void ejbPostCreate(java.lang.String emid) throws CreateException {    /**@todo Complete this method*/  }  public void ejbRemove() throws RemoveException {    /**@todo Complete this method*/  }  public abstract void setEmid(java.lang.String emid);  public abstract void setEmname(java.lang.String emname);  public abstract void setEmage(int emage);  public abstract void setEmsex(java.lang.String emsex);  public abstract void setEmposition(java.lang.String emposition);  public abstract void setEmstuts(java.lang.String emstuts);  public abstract java.lang.String getEmid();  public abstract java.lang.String getEmname();  public abstract int getEmage();  public abstract java.lang.String getEmsex();  public abstract java.lang.String getEmposition();  public abstract java.lang.String getEmstuts();  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 Emp getEmp() {    Emp result = new Emp();    result.setemid(this.getEmid());    result.setemname(this.getEmname());    result.setemage(this.getEmage());    result.setemsex(this.getEmsex());    result.setemposition(this.getEmposition());    result.setemstuts(this.getEmstuts());    return result;  }  public void setEmp(Emp employee) {    setEmname(employee.getemname());    setEmage(employee.getemage());    setEmsex(employee.getemsex());    setEmposition(employee.getemposition());    setEmstuts(employee.getemstuts());  }}

⌨️ 快捷键说明

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