1 package my.enterprise.beans; 2 3 import javax.ejb.*; 4 5 10 public abstract class NewEntityContainerBean implements javax.ejb.EntityBean , my.enterprise.beans.NewEntityContainerLocalBusiness { 11 private javax.ejb.EntityContext context; 12 13 19 public void setEntityContext (javax.ejb.EntityContext aContext) { 20 context = aContext; 21 } 22 23 26 public void ejbActivate () { 27 28 } 29 30 33 public void ejbPassivate () { 34 35 } 36 37 40 public void ejbRemove () { 41 42 } 43 44 47 public void unsetEntityContext () { 48 context = null; 49 } 50 51 54 public void ejbLoad () { 55 56 } 57 58 61 public void ejbStore () { 62 63 } 64 66 68 public abstract java.lang.String getKey(); 69 public abstract void setKey(java.lang.String key); 70 71 73 public java.lang.String ejbCreate(java.lang.String key) throws javax.ejb.CreateException { 74 if (key == null) { 75 throw new javax.ejb.CreateException ("The field \"key\" must not be null"); 76 } 77 78 setKey(key); 80 81 return null; 82 } 83 84 public void ejbPostCreate(java.lang.String key) { 85 87 } 88 } 89 | Popular Tags |