1 package org.objectweb.jonas.jtests.beans.relation.lcp; 2 3 import javax.ejb.EntityContext ; 4 import javax.ejb.RemoveException ; 5 import javax.ejb.CreateException ; 6 7 8 public abstract class SIMPLEPARENTBean implements javax.ejb.EntityBean { 9 10 private EntityContext ctx; 12 13 public SIMPLEPARENTBean() { 14 } 15 16 public void ejbActivate() { 18 } 19 20 public void ejbPassivate() { 21 } 22 23 public abstract String getSpPkId(); 24 public abstract void setSpPkId(String val); 25 public abstract String getSpDesc(); 26 public abstract void setSpDesc(String val); 27 28 33 public void setEntityContext(EntityContext context) { 34 this.ctx = context; 35 } 36 37 42 public void unsetEntityContext() { 43 this.ctx = null; 44 } 45 46 51 public SIMPLEPARENTPK ejbCreateDEFAULT(String spPkId, String spDesc) throws CreateException { 52 if (spPkId == null) { 53 throw new CreateException ("ejbCreate: parameter spPkId cannot be null"); 54 } 55 if (spDesc == null) { 56 throw new CreateException ("ejbCreate: parameter spDesc cannot be null"); 57 } 58 this.setSpPkId(spPkId); 59 this.setSpDesc(spDesc); 60 return null; 61 } 62 63 68 public void ejbPostCreateDEFAULT(String spPkId, String spDesc) throws CreateException { 69 } 70 71 76 public void ejbStore() { 77 } 78 79 84 public void ejbRemove() throws RemoveException { 85 } 86 87 92 public void ejbLoad() { 93 } 94 95 100 public abstract java.util.Collection getSimpleparentSimplechild(); 101 102 107 public abstract void setSimpleparentSimplechild(java.util.Collection var); 108 109 } 110 | Popular Tags |