1 22 package org.jboss.test.cmp2.readonly; 23 24 import javax.ejb.CreateException ; 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 28 public abstract class AuthorBean 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 abstract String getName(); 43 public abstract void setName(String name); 44 45 public void setEntityContext(EntityContext ctx) { 46 this.ctx = ctx; 47 } 48 49 public void unsetEntityContext() { 50 this.ctx = null; 51 } 52 53 public void ejbActivate() { 54 } 55 56 public void ejbPassivate() { 57 } 58 59 public void ejbLoad() { 60 } 61 62 public void ejbStore() { 63 } 64 65 public void ejbRemove() { 66 } 67 } 68 | Popular Tags |