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 72 public String ejbCreate(String key) throws CreateException { 73 if (key == null) { 74 throw new CreateException("The field \"key\" must not be null"); 75 } 76 77 setKey(key); 79 80 return null; 81 } 82 83 public void ejbPostCreate(String key) { 84 86 } 87 88 public String testBusinessMethod1() { 89 return null; 91 } 92 93 public String testBusinessMethod2(String a, boolean b) throws Exception { 94 return null; 96 } 97 98 public String ejbCreateTest1() throws CreateException { 99 return null; 101 } 102 103 public void ejbPostCreateTest1() throws CreateException { 104 } 106 107 public String ejbCreateTest2(String a, int b) throws CreateException, IOException { 108 return null; 110 } 111 112 public void ejbPostCreateTest2(String a, int b) throws CreateException, IOException { 113 } 115 } 116
| Popular Tags
|