adminsalebean.java

来自「开放式基金管理平台,银行的基金管理系统,供学习」· Java 代码 · 共 141 行

JAVA
141
字号
import java.rmi.RemoteException;

import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;

import javax.ejb.CreateException;

/**
 * XDoclet-based BMP entity bean.
 * 
 * To generate EJB related classes using XDoclet:
 *
 *		- Add Standard EJB module to XDoclet project properties
 *		- Customize XDoclet configuration
 *		- Run XDoclet
 * 
 * Below are the xdoclet-related tags needed for this EJB.
 *
 * @ejb.bean name="AdminSale"
 *           display-name="Name for AdminSale"
 *           description="Description for AdminSale"
 *           jndi-name="ejb/AdminSale"
 *           type="BMP"
 *           view-type="local"
 */
public class AdminSaleBean implements EntityBean {

	/** The entity context */
	private EntityContext context;
String UserID;
String Password;
String Realname;
String Sex;
String CreateTime;
	public String getCreateTime() {
	return CreateTime;
}


public void setCreateTime(String createTime) {
	CreateTime = createTime;
}


public String getPassword() {
	return Password;
}


public void setPassword(String password) {
	Password = password;
}


public String getRealname() {
	return Realname;
}


public void setRealname(String realname) {
	Realname = realname;
}


public String getSex() {
	return Sex;
}


public void setSex(String sex) {
	Sex = sex;
}


public String getUserID() {
	return UserID;
}


public void setUserID(String userID) {
	UserID = userID;
}


	public AdminSaleBean(String UserID) {
		super();
		
		// TODO Auto-generated constructor stub
	}


	public String ejbCreate() throws CreateException {
		this.setUserID(UserID);
		return null;
	}


	public void ejbPostCreate() throws CreateException {
	}

	public void setEntityContext(EntityContext newContext) throws EJBException {
		context = newContext;
	}


	public void unsetEntityContext() throws EJBException {
		context = null;
	}

	public void ejbRemove()
		throws RemoveException,
		EJBException,
		RemoteException {
		// TODO Auto-generated method stub

	}

	public void ejbActivate() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	public void ejbPassivate() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	public void ejbLoad() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

	public void ejbStore() throws EJBException, RemoteException {
		// TODO Auto-generated method stub

	}

}

⌨️ 快捷键说明

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