📄 profilebean.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -