1 22 package org.jboss.test.cmp2.audit.beans; 23 24 import javax.ejb.CreateException ; 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 28 34 public abstract class AuditBean 35 implements EntityBean 36 { 37 private transient EntityContext ctx; 38 39 public AuditBean() 40 { 41 } 42 43 public String ejbCreate(String id) 44 throws CreateException 45 { 46 setId(id); 47 return null; 48 } 49 50 public void ejbPostCreate(String id) 51 { 52 } 53 54 public abstract String getId(); 55 public abstract void setId(String id); 56 57 public abstract String getStringValue(); 58 public abstract void setStringValue(String s); 59 60 public void setEntityContext(EntityContext ctx) 61 { 62 this.ctx = ctx; 63 } 64 65 public void unsetEntityContext() 66 { 67 this.ctx = null; 68 } 69 70 public void ejbActivate() 71 { 72 } 73 74 public void ejbPassivate() 75 { 76 } 77 78 public void ejbLoad() 79 { 80 } 81 82 public void ejbStore() 83 { 84 } 85 86 public void ejbRemove() 87 { 88 } 89 } 90 | Popular Tags |