loginbean.java

来自「This project mainly deals with automatin」· Java 代码 · 共 54 行

JAVA
54
字号
// LoginBean

package packIC;

import java.rmi.*;
import javax.ejb.*;
import factory.*;

public class LoginBean implements EntityBean
{
EntityContext ectxt;
public String userid,password;

public String ejbCreate(String userid,String password) throws CreateException,RemoteException
	{
	System.out.println(" in create");
	this.userid=userid;
	this.password=password;
        return userid;
        }//end Create 

public void ejbPostCreate(String userid,String password) throws CreateException,RemoteException
	{
System.out.println(" in postcreate");
	}


public void setEntityContext(EntityContext ectxt)
	{
	this.ectxt=ectxt;
System.out.println(" in set entiy");
	}
public void unsetEntityContext()
	{
	ectxt=null;
System.out.println(" in unset entiy");
	}
public void ejbActivate(){System.out.println(" in act");}
public void ejbPassivate(){System.out.println(" in pass");}
public void ejbLoad(){System.out.println(" in load");}
public void ejbStore(){System.out.println(" in set store");}
public void ejbRemove(){System.out.println(" in remove");}

public String getUserid() throws RemoteException
{
return userid;
}

public String getPassword() throws RemoteException
{
return password;
}
  
}//end class

⌨️ 快捷键说明

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