1 package test; 2 3 import java.io.IOException ; 4 import javax.ejb.*; 5 6 11 public abstract class TestingEntityBean implements EntityBean, TestingEntityRemoteBusiness, TestingEntityLocalBusiness { 12 private EntityContext context; 13 14 20 public void setEntityContext(EntityContext aContext) { 21 context = aContext; 22 } 23 24 27 public void ejbActivate() { 28 29 } 30 31 34 public void ejbPassivate() { 35 36 } 37 38 41 public void ejbRemove() { 42 43 } 44 45 48 public void unsetEntityContext() { 49 context = null; 50 } 51 52 55 public void ejbLoad() { 56 57 } 58 59 62 public void ejbStore() { 63 64 } 65 67 68 public abstract String getKey(); 69 public abstract void setKey(String key); 70 71 public abstract java.lang.String getCmpTestField1x(); 72 73 public abstract void setCmpTestField1x(java.lang.String cmpTestField1x); 74 75 public abstract int getCmpTestField2x(); 76 77 public abstract void setCmpTestField2x(int cmpTestField2x); 78 79 80 public String ejbCreate(String key) throws CreateException { 81 if (key == null) { 82 throw new CreateException("The field \"key\" must not be null"); 83 } 84 85 setKey(key); 87 88 return null; 89 } 90 91 public void ejbPostCreate(String key) { 92 94 } 95 96 public String testBusinessMethod1() { 97 return null; 99 } 100 101 public String testBusinessMethod2(String a, boolean b) throws Exception { 102 return null; 104 } 105 106 public String ejbCreateTest1() throws CreateException { 107 return null; 109 } 110 111 public void ejbPostCreateTest1() throws CreateException { 112 } 114 115 public String ejbCreateTest2(String a, int b) throws CreateException, IOException { 116 return null; 118 } 119 120 public void ejbPostCreateTest2(String a, int b) throws CreateException, IOException { 121 } 123 124 public String ejbHomeHomeTestMethod1() { 125 return null; 127 } 128 129 public String ejbHomeHomeTestMethod2(String a, int b) throws Exception { 130 return null; 132 } 133 134 public abstract int ejbSelectByTest1() throws javax.ejb.FinderException ; 135 136 public abstract int ejbSelectByTest2(java.lang.String a) throws javax.ejb.FinderException ; 137 } 138
| Popular Tags
|