1 22 package org.jboss.test.cmp2.cacheinvalidation.ejb; 23 24 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.RemoveException ; 28 import javax.ejb.CreateException ; 29 30 31 35 public abstract class ABean implements EntityBean 36 { 37 private EntityContext ctx; 38 39 public abstract Long getId(); 40 public abstract void setId(Long id); 41 42 public abstract String getName(); 43 public abstract void setName(String name); 44 45 public abstract CLocal getC(); 46 public abstract void setC(CLocal c); 47 48 52 public Long ejbCreate(Long id, String name) 53 throws CreateException 54 { 55 setId(id); 56 setName(name); 57 return null; 58 } 59 60 public void ejbPostCreate(Long id, String name) 61 { 62 } 63 64 67 public void setEntityContext(EntityContext ctx) 68 { 69 this.ctx = ctx; 70 } 71 72 75 public void unsetEntityContext() 76 { 77 this.ctx = null; 78 } 79 80 public void ejbActivate() 81 { 82 } 83 84 public void ejbLoad() 85 { 86 } 87 88 public void ejbPassivate() 89 { 90 } 91 92 public void ejbRemove() throws RemoveException 93 { 94 } 95 96 public void ejbStore() 97 { 98 } 99 } 100 | Popular Tags |