1 25 26 package org.objectweb.jonas.jtests.beans.fbasic; 27 28 import javax.ejb.EJBException ; 29 import javax.ejb.EntityBean ; 30 import javax.ejb.EntityContext ; 31 import javax.ejb.RemoveException ; 32 import javax.ejb.CreateException ; 33 import javax.ejb.EntityContext ; 34 35 36 37 38 48 49 public abstract class SimpleEC2 implements EntityBean { 50 51 53 protected EntityContext entityContext; 54 55 56 public abstract int getInfo(); 58 public abstract void setInfo(int info); 59 60 public abstract int getNumTest(); 61 public abstract void setNumTest(int numtest); 62 63 public abstract String getTestName(); 64 public abstract void setTestName(String testname); 65 66 67 public void ejbActivate() { 68 } 70 71 public void ejbPassivate() { 72 } 74 75 public void ejbLoad() { 76 } 78 79 public void ejbStore() { 80 } 82 83 public void ejbRemove() throws RemoveException { 84 } 86 87 public void setEntityContext(EntityContext ctx) { 88 entityContext = ctx; 92 93 } 94 95 public void unsetEntityContext() { 96 } 98 99 public String ejbCreate(String name, int info, int num) throws CreateException { 100 setInfo(info); 102 setNumTest(num); 103 setTestName(name); 104 return(null); 105 } 106 107 public void ejbPostCreate(String name, int info, int num){ 108 } 110 111 } 112 | Popular Tags |