1 22 package org.jboss.test.bench.ejb; 23 24 import java.rmi.RemoteException ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.EntityBean ; 27 import javax.ejb.EntityContext ; 28 29 public class SimpleEntityBean implements EntityBean { 30 public Integer pk; 31 public int field; 32 33 public Integer ejbCreate(int pk) throws RemoteException , CreateException { 34 this.pk = new Integer (pk); 35 field = 0; 36 return null; 37 } 38 39 public void ejbPostCreate(int pk) throws RemoteException , CreateException {} 40 41 public int getField() throws RemoteException { 42 return field; 43 } 44 45 public void setField(int field) throws RemoteException { 46 this.field = field; 47 } 48 49 public void ejbStore() throws RemoteException {} 50 51 public void ejbLoad() throws RemoteException {} 52 53 public void ejbActivate() throws RemoteException {} 54 55 public void ejbPassivate() throws RemoteException {} 56 57 public void ejbRemove() throws RemoteException {} 58 59 public void setEntityContext(EntityContext e) throws RemoteException {} 60 61 public void unsetEntityContext() throws RemoteException {} 62 63 64 } 65 66 | Popular Tags |