1 package test.ejb; 2 3 import javax.ejb.*; 4 5 11 public abstract class BaseEntityBean { 12 13 protected EntityContext entityContext = null; 14 15 30 public abstract java.util.Date getCreationDate(); 31 32 33 public abstract void setCreationDate(java.util.Date creationDate); 34 35 39 protected EntityContext getEntityContext() { 40 return entityContext; 41 } 42 43 44 public void setEntityContext(EntityContext entityContext) throws EJBException { 45 this.entityContext = entityContext; 46 } 47 48 49 public void unsetEntityContext() throws EJBException { 50 entityContext = null; 51 } 52 53 54 public void ejbActivate() throws EJBException { } 55 56 57 public void ejbPassivate() throws EJBException { } 58 59 60 public void ejbLoad() throws EJBException { } 61 62 63 public void ejbStore() throws EJBException { } 64 65 66 public void ejbRemove() throws RemoveException, EJBException { } 67 } | Popular Tags |