1 22 package org.jboss.test.cmp2.cacheinvalidation.ejb; 23 24 import javax.ejb.EntityBean ; 25 import javax.ejb.EntityContext ; 26 import javax.ejb.RemoveException ; 27 import javax.ejb.CreateException ; 28 29 30 34 public abstract class CBean 35 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 getFirstName(); 43 public abstract void setFirstName(String firstName); 44 45 public abstract String getLastName(); 46 public abstract void setLastName(String lastName); 47 48 public abstract ALocal getA(); 49 public abstract void setA(ALocal a); 50 51 public Long ejbCreate(Long id) 52 throws CreateException 53 { 54 setId(id); 55 return null; 56 } 57 58 public void ejbPostCreate(Long id) 59 { 60 } 61 62 65 public void setEntityContext(EntityContext ctx) 66 { 67 this.ctx = ctx; 68 } 69 70 73 public void unsetEntityContext() 74 { 75 this.ctx = null; 76 } 77 78 public void ejbActivate() 79 { 80 } 81 82 public void ejbLoad() 83 { 84 } 85 86 public void ejbPassivate() 87 { 88 } 89 90 public void ejbRemove() throws RemoveException 91 { 92 } 93 94 public void ejbStore() 95 { 96 } 97 } 98 | Popular Tags |