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 76 public String ejbCreate(String key) throws CreateException { 77 if (key == null) { 78 throw new CreateException("The field \"key\" must not be null"); 79 } 80 81 setKey(key); 83 84 return null; 85 } 86 87 public void ejbPostCreate(String key) { 88 90 } 91 92 public String testBusinessMethod1() { 93 return null; 95 } 96 97 public String testBusinessMethod2(String a, boolean b) throws Exception { 98 return null; 100 } 101 102 public String ejbCreateTest1() throws CreateException { 103 return null; 105 } 106 107 public void ejbPostCreateTest1() throws CreateException { 108 } 110 111 public String ejbCreateTest2(String a, int b) throws CreateException, IOException { 112 return null; 114 } 115 116 public void ejbPostCreateTest2(String a, int b) throws CreateException, IOException { 117 } 119 120 public String ejbHomeHomeTestMethod1() { 121 return null; 123 } 124 125 public String ejbHomeHomeTestMethod2(String a, int b) throws Exception { 126 return null; 128 } 129 130 public abstract int ejbSelectByTest1() throws javax.ejb.FinderException ; 131 132 public abstract int ejbSelectByTest2(java.lang.String a) throws javax.ejb.FinderException ; 133 } 134
| Popular Tags
|