【Java开源代码栏目提醒】:网学会员鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“AuthenticationEJBean.java”一文,供大家参考学习
package ejava.ejbch37.authentication;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.CreateException;
import java.rmi.RemoteException;
/**
* To Represe
nt Authentication
*/
public class AuthenticationEJBean implements EntityBean
{
private EntityContext entityContext;
public Integer CUSTOMER_ID_FK;
public String PASSWORD;
public String AUTH_TYPE;
public void setCustomerID(Integer customerID)
{
CUSTOMER_ID_FK = customerID;
}
public Integer getCustomerID()
{
return CUSTOMER_ID_FK;
}
public void setPassword(String password)
{
PASSWORD = password;
}
public String getPassword()
{
return PASSWORD;
}
public void setAuthenticationType(String authType)
{
AUTH_TYPE = authType;
}
public String getAuthenticationType()
{
return AUTH_TYPE;
}
public void ejbActivate(){}
public void ejbPassivate(){}
public void ejbRemove(){}
public void ejbLoad(){}
public void ejbStore(){}
public void setEntityContext(EntityContext entityContext)
{
this.entityContext = entityContext;
}
public void unsetEntityContext(){entityContext = null;}
public Integer ejbCreate(Integer customerID,
String password,String type)
throws CreateException, RemoteException
{
CUSTOMER_ID_FK = customerID;
PASSWORD = password;
AUTH_TYPE = type;
return null;
}
public void ejbPostCreate(Integer customerID,
String password, String authType){}
}
上一篇:
Authentication.java
下一篇:
月入5000,你有什么资格谈生活