|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sape.ejbutils.adapters.EntityBeanAdapter
Provides default implementations of the EJB callback methods for an Entity Bean.
Field Summary | |
protected javax.ejb.EntityContext |
ctx
The EntityContext for this instance of the EntityBean |
private static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
EntityBeanAdapter()
|
Method Summary | |
void |
ejbActivate()
Default implementation of ejbActivate(). |
void |
ejbLoad()
Default implementation of ejbLoad(). |
void |
ejbPassivate()
Default implementation of ejbPassivate(). |
void |
ejbRemove()
Default implementation of ejbRemove(). |
void |
ejbStore()
Default implementation of ejbStore(). |
javax.ejb.EntityContext |
getCtx()
Returns the EntityContext |
String |
id()
Returns a string representation of the primary key of this entity bean. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
The container calls this method after creating the EntityBean to set its EntityContext. |
void |
unsetEntityContext()
Unset the associated entity context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
protected javax.ejb.EntityContext ctx
Constructor Detail |
public EntityBeanAdapter()
Method Detail |
public void ejbActivate() throws javax.ejb.EJBException, RemoteException
ejbActivate
in interface javax.ejb.EntityBean
javax.ejb.EJBException
RemoteException
public void ejbLoad() throws javax.ejb.EJBException, RemoteException
ejbLoad
in interface javax.ejb.EntityBean
javax.ejb.EJBException
RemoteException
public void ejbPassivate() throws javax.ejb.EJBException, RemoteException
ejbPassivate
in interface javax.ejb.EntityBean
javax.ejb.EJBException
RemoteException
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException, RemoteException
ejbRemove
in interface javax.ejb.EntityBean
javax.ejb.RemoveException
javax.ejb.EJBException
RemoteException
public void ejbStore() throws javax.ejb.EJBException, RemoteException
ejbStore
in interface javax.ejb.EntityBean
javax.ejb.EJBException
RemoteException
public javax.ejb.EntityContext getCtx()
public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException, RemoteException
setEntityContext
in interface javax.ejb.EntityBean
ctx
- The EntityContext for this instance of the EntityBean.
javax.ejb.EJBException
RemoteException
public void unsetEntityContext() throws javax.ejb.EJBException, RemoteException
unsetEntityContext
in interface javax.ejb.EntityBean
javax.ejb.EJBException
RemoteException
public String id()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |