1 9 10 package testGenerateJavaEE14; 11 12 import javax.ejb.CreateException ; 13 import javax.ejb.EntityBean ; 14 import javax.ejb.EntityContext ; 15 16 20 public abstract class TestCmpBean implements EntityBean { 21 22 private EntityContext context; 23 24 26 29 32 public void setEntityContext(EntityContext aContext) { 33 context = aContext; 34 } 35 36 39 public void ejbActivate() { 40 41 } 42 43 46 public void ejbPassivate() { 47 48 } 49 50 53 public void ejbRemove() { 54 55 } 56 57 60 public void unsetEntityContext() { 61 context = null; 62 } 63 64 67 public void ejbLoad() { 68 69 } 70 71 74 public void ejbStore() { 75 76 } 77 78 80 public abstract java.lang.Long getKey(); 81 82 public abstract void setKey(java.lang.Long key); 83 84 public java.lang.Long ejbCreate(java.lang.Long key) throws CreateException { 85 if (key == null) { 86 throw new CreateException ("The field \"key\" must not be null"); 87 } 88 89 setKey(key); 91 92 return null; 93 } 94 95 public void ejbPostCreate(java.lang.Long key) { 96 } 98 99 } 100 | Popular Tags |