imrawbean.java

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

JAVA
72
字号
package packIC;

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

public class ImRawBean implements EntityBean
{
EntityContext ectxt;
public int sno,itemno;
public String itemname;
public double rate;


public  ImRawPK ejbCreate(int sno,int itemno, String itemname, double rate) throws CreateException,RemoteException
	{
System.out.println(" in create");
        this.sno=sno; 
	 this.itemno=itemno;
	 this.itemname=itemname;
	 this.rate=rate;
          ImRawPK pk=new ImRawPK();
          pk.itemno=itemno;
          return pk;

	}//end Create 

public void ejbPostCreate( int sno,int itemno,String itemname, double rate) 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 void setSno(int sno )
{
 this.sno=sno;
}
public int getSno()
{
 return sno;
}

public void setItemno(int itemno ){ this.itemno=itemno;}
public int getItemno(){ return itemno;}


public void setItemname(String itemname){ this.itemname=itemname;}
public String getItemname(){ return itemname;}

public void setRate(double rate ){ this.rate=rate;}
public double  getRate(){ return rate;}

  
}//end class

⌨️ 快捷键说明

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