1 22 package org.jboss.test.cmp2.relationship.manyToManyBidirectional; 23 24 import java.util.Collection ; 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.CreateException ; 28 29 public abstract class ABean implements EntityBean { 30 transient private EntityContext ctx; 31 32 public Integer ejbCreate(Integer id) throws CreateException { 33 setId(id); 34 return null; 35 } 36 37 public void ejbPostCreate(Integer id) { 38 } 39 40 public abstract Integer getId(); 41 public abstract void setId(Integer id); 42 43 public abstract Collection getB(); 44 public abstract void setB(Collection b); 45 46 public void setEntityContext(EntityContext ctx) { 47 this.ctx = ctx; 48 } 49 50 public void unsetEntityContext() { 51 this.ctx = null; 52 } 53 54 public void ejbActivate() { 55 } 56 57 public void ejbPassivate() { 58 } 59 60 public void ejbLoad() { 61 } 62 63 public void ejbStore() { 64 } 65 66 public void ejbRemove() { 67 } 68 } 69 | Popular Tags |