profilebean.java
来自「Ejb的一些写好的测试程序」· Java 代码 · 共 74 行
JAVA
74 行
package ProfileTest;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.CreateException;
/**
* ProfileBean.java
*/
public abstract class ProfileBean implements EntityBean {
transient private EntityContext ctx;
public void setEntityContext( EntityContext ctx ) {
this.ctx = ctx;
}
public void unsetEntityContext() {
this.ctx = null;
}
public String ejbCreate( int id, String ln, String prof) {
setId( id );
setLname( ln );
setProfile( prof );
return null;
}
public void ejbPostCreate( int id, String lname, String profile ) throws CreateException {
}
public void ejbActivate() {
}
public void ejbPassivate() {
}
public void ejbRemove() {
}
public void ejbLoad() {
}
public void ejbStore() {
}
/* Container managed fields */
public abstract int getId();
public abstract void setId(int id);
public abstract String getLname();
public abstract void setLname(String lname);
public abstract String getProfile();
public abstract void setProfile(String profile);
public abstract void setFname( String fname );
public abstract String getFname();
} // ProfileBean
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?