1 28 29 package com.caucho.ejb; 30 31 import javax.ejb.EJBException ; 32 import javax.ejb.EntityBean ; 33 import javax.ejb.EntityContext ; 34 import javax.ejb.RemoveException ; 35 36 39 abstract public class AbstractEntityBean implements EntityBean { 40 protected EntityContext _entityContext; 42 43 46 public void setEntityContext(EntityContext entityContext) 47 throws EJBException 48 { 49 _entityContext = entityContext; 50 } 51 52 55 public EntityContext getEntityContext() 56 { 57 return _entityContext; 58 } 59 60 63 public void unsetEntityContext() 64 throws EJBException 65 { 66 _entityContext = null; 67 } 68 69 73 public void ejbActivate() throws EJBException 74 { 75 } 76 77 80 public void ejbPassivate() throws EJBException 81 { 82 } 83 84 87 public void ejbLoad() throws EJBException 88 { 89 } 90 91 94 public void ejbStore() throws EJBException 95 { 96 } 97 98 public void ejbRemove() throws RemoveException 99 { 100 } 101 } 102 | Popular Tags |