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 SIMPLECHILDBean implements javax.ejb.EntityBean { 9 10 private EntityContext ctx; 12 13 public SIMPLECHILDBean() { 14 } 15 16 18 public void ejbActivate() { 19 } 20 21 public void ejbPassivate() { 22 } 23 24 public abstract String getScPkId(); 25 public abstract void setScPkId(String val); 26 public abstract String getScDesc(); 27 public abstract void setScDesc(String val); 28 29 30 35 public void setEntityContext(EntityContext context) { 36 this.ctx = context; 37 } 38 39 44 public void unsetEntityContext() { 45 this.ctx = null; 46 } 47 48 53 public SIMPLECHILDPK ejbCreateDEFAULT(String scPkId, String scDesc, SIMPLEPARENTLocal _SimplechildSimpleparent) throws CreateException { 54 if (scPkId == null) { 55 throw new CreateException ("ejbCreate: parameter scPkId cannot be null"); 56 } 57 if (scDesc == null) { 58 throw new CreateException ("ejbCreate: parameter scDesc cannot be null"); 59 } 60 this.setScPkId(scPkId); 61 this.setScDesc(scDesc); 62 return null; 63 } 64 65 70 public void ejbPostCreateDEFAULT(String scPkId, String scDesc, SIMPLEPARENTLocal _SimplechildSimpleparent) throws CreateException { 71 this.setSimplechildSimpleparent(_SimplechildSimpleparent); 72 } 73 74 79 public void ejbStore() { 80 } 81 82 87 public void ejbRemove() throws RemoveException { 88 } 89 90 95 public void ejbLoad() { 96 } 97 98 103 public abstract SIMPLEPARENTLocal getSimplechildSimpleparent(); 104 105 110 public abstract void setSimplechildSimpleparent(SIMPLEPARENTLocal var); 111 112 } 113 | Popular Tags |