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