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 import org.jboss.test.bench.interfaces.AComplexPK; 30 31 public class ComplexEntityBean implements EntityBean { 32 public boolean aBoolean; 33 public int anInt; 34 public long aLong; 35 public double aDouble; 36 public String aString; 37 38 public String otherField; 39 40 public AComplexPK ejbCreate(boolean aBoolean, int anInt, long aLong, double aDouble, String aString) throws RemoteException , CreateException { 41 42 this.aBoolean = aBoolean; 43 this.anInt = anInt; 44 this.aLong = aLong; 45 this.aDouble = aDouble; 46 this.aString = aString; 47 48 this.otherField = ""; 49 return null; 50 } 51 52 public void ejbPostCreate(boolean aBoolean, int anInt, long aLong, double aDouble, String aString) throws RemoteException , CreateException {} 53 54 public String getOtherField() throws RemoteException { 55 return otherField; 56 } 57 58 public void setOtherField(String otherField) throws RemoteException { 59 this.otherField = otherField; 60 } 61 62 public void ejbStore() throws RemoteException {} 63 64 public void ejbLoad() throws RemoteException {} 65 66 public void ejbActivate() throws RemoteException {} 67 68 public void ejbPassivate() throws RemoteException {} 69 70 public void ejbRemove() throws RemoteException {} 71 72 public void setEntityContext(EntityContext e) throws RemoteException {} 73 74 public void unsetEntityContext() throws RemoteException {} 75 76 } 77 | Popular Tags |