⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profilebean.java

📁 EJB应用开发的源码,是学习EJB的好帮助!EJB应用开发的源码,是学习EJB的好帮助
💻 JAVA
字号:
package ProfileTest;import javax.ejb.EntityBean;import javax.ejb.EntityContext;import javax.ejb.CreateException;/** * Our ProfileTest EJB modified to work in JBOSS 2.2.1.  */public class ProfileBean implements EntityBean {    transient private EntityContext ctx;    public String fname;    public String lname;    public String profile;    public int id;        public void setEntityContext( EntityContext ctx ) {	this.ctx = ctx;    }        public void unsetEntityContext() {	this.ctx = null;    }        public String ejbCreate( int _id, String _profile, String _fname, String _lname ) {	this.id = _id;	this.profile = _profile;	this.fname = _fname;	this.lname = _lname;	return null;    }	        public void ejbPostCreate( int id, String p, String f, String l  ) throws CreateException { }        public void ejbActivate() { }        public void ejbPassivate() { }        public void ejbRemove() { }        public void ejbLoad() { }        public void ejbStore() { }    public int getId() { return this.id; }    public void setId( int _id ) { this.id = _id; }    public void setFname( String _fname ) { this.fname = _fname; }    public String getFname() { return this.fname; }    public String getLname() { return this.lname; }    public void setLname( String _lname ) { this.lname = _lname; }    public String getProfile() { return this.profile; }    public void setProfile(String _profile) { this.profile = _profile; }} // ProfileBean

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -