tbcustomerbean.java~8~
来自「用j2ee开发的一个旅店管理系统」· JAVA~8~ 代码 · 共 63 行
JAVA~8~
63 行
package com.xc.hotelmanager.hotel.control.entity;import javax.ejb.*;import com.xc.hotelmanager.hotel.model.*;abstract public class TbCustomerBean implements EntityBean { EntityContext entityContext; public java.lang.String ejbCreate(java.lang.String cid) throws CreateException { setCid(cid); return null; } public void ejbPostCreate(java.lang.String cid) throws CreateException { /**@todo Complete this method*/ } public void ejbRemove() throws RemoveException { /**@todo Complete this method*/ } public abstract void setCid(java.lang.String cid); public abstract void setCname(java.lang.String cname); public abstract void setCsex(java.lang.String csex); public abstract void setCstuts(java.lang.String cstuts); public abstract void setCnote(java.lang.String cnote); public abstract java.lang.String getCid(); public abstract java.lang.String getCname(); public abstract java.lang.String getCsex(); public abstract java.lang.String getCstuts(); public abstract java.lang.String getCnote(); 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 Customer getCustomer() {//把实体Bean中的数据写入model Customer result = new Customer(); result.setCid(this.getCid()); result.setCname(this.getCname()); result.setCnote(this.getCnote()); result.setCsex(this.getCsex()); return result; } public void setCustomer(Customer acustomer) { setCname(acustomer.getCname()); setCnote(acustomer.getCnote()); setCsex(acustomer.getCsex()); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?