AbstractEntityBean¶
-
public class
AbstractEntityBean
implements EntityBean¶ The AbstractEntityBean class is an abstract class which implements the methods required for an Entity Bean, except the ejbCreateXXX() methods which have been defined in the home interface.
Author: Hugo Y. K. Lam
Fields¶
context¶
-
protected EntityContext
context
¶ The entity context.
Constructors¶
Methods¶
ejbActivate¶
-
public void
ejbActivate
()¶ A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object.
See also:
javax.ejb.EntityBean.ejbActivate()
ejbLoad¶
-
public void
ejbLoad
()¶ A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
See also:
javax.ejb.EntityBean.ejbLoad()
ejbPassivate¶
-
public void
ejbPassivate
()¶ A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object.
See also:
javax.ejb.EntityBean.ejbPassivate()
ejbRemove¶
-
public void
ejbRemove
()¶ A container invokes this method before it removes the EJB object that is currently associated with the instance.
See also:
javax.ejb.EntityBean.ejbRemove()
ejbStore¶
-
public void
ejbStore
()¶ See also:
javax.ejb.EntityBean.ejbStore()
setEntityContext¶
-
public void
setEntityContext
(EntityContext ctx)¶ Sets the associated entity context.
See also:
javax.ejb.EntityBean.setEntityContext(javax.ejb.EntityContext)