ejbaccountsbean.java~30~
来自「一个J2EE四层架构的实例」· JAVA~30~ 代码 · 共 56 行
JAVA~30~
56 行
package sqlaccounts;import javax.ejb.*;abstract public class EjbAccountsBean implements EntityBean { EntityContext entityContext; public java.lang.String ejbCreate(java.lang.String id, String Type, double bal) throws CreateException { setId(id); setType(Type); setBal(bal); return null; } public java.lang.String ejbCreate(String Id) throws CreateException { /**@todo Complete this method*/ setId(Id); return null; } public void ejbPostCreate(java.lang.String id, String Type, double bal) throws CreateException { /**@todo Complete this method*/ } public void ejbPostCreate(String Id) throws CreateException { /**@todo Complete this method*/ } public void ejbRemove() throws RemoveException { /**@todo Complete this method*/ } public abstract void setId(java.lang.String id); public abstract void setBal(double bal); public abstract void setType(java.lang.String type); public abstract java.lang.String getId(); public abstract double getBal(); public abstract java.lang.String getType(); 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 double deposit(double bal) { /**@todo Complete this method*/ setBal(getBal() + bal); return getBal(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?