📄 contactbean.java
字号:
package cmp1bean;import java.rmi.*;import javax.ejb.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 *//** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class ContactBean implements EntityBean { EntityContext entityContext; public String first; public String last; public String email; public String ejbCreate(String first, String last, String email) throws CreateException { this.first = first; this.last = last; this.email = email; return null; } public String ejbCreate(String last) throws CreateException { return ejbCreate(null, last, null); } public void ejbPostCreate(String first, String last, String email) throws CreateException { } public void ejbPostCreate(String last) throws CreateException { ejbPostCreate(null, last, null); } public void ejbLoad() { } public void ejbStore() { } public void ejbRemove() throws RemoveException { } public void ejbActivate() { } public void ejbPassivate() { } public void setEntityContext(EntityContext entityContext) { this.entityContext = entityContext; } public void unsetEntityContext() { entityContext = null; } public String getFirst() { return first; } public void setFirst(String first) { this.first = first; } public String getLast() { return last; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -