|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.opensymphony.ejb.AbstractEntityAdapter | +--com.opensymphony.ejb.EntityAdapter
Abstract base adapter class to be extended by EJB EntityBeans.
Contains default implementations for all require methods to implement EntityBean.
To create an implementation of an Entity, extend this class and add appropriate ejbCreate(), ejbPostCreate() and getter/setter methods.
If an auto-generated primary key (long
/int
) is to be used,
Fields inherited from class com.opensymphony.ejb.AbstractEntityAdapter |
context, sequenceName |
Constructor Summary | |
EntityAdapter()
|
Method Summary | |
void |
ejbActivate()
Required to implement EntityBean. |
void |
ejbLoad()
Required to implement EntityBean. |
void |
ejbPassivate()
Required to implement EntityBean. |
void |
ejbRemove()
Required to implement EntityBean. |
void |
ejbStore()
Required to implement EntityBean. |
protected javax.ejb.EntityContext |
getEntityContext()
Return EntityContext. |
void |
setEntityContext(javax.ejb.EntityContext context)
Required to implement EntityBean. |
void |
unsetEntityContext()
Required to implement EntityBean. |
Methods inherited from class com.opensymphony.ejb.AbstractEntityAdapter |
generateGUID, locatePropertySet, nextId, nextInt, nextLong, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EntityAdapter()
Method Detail |
public void setEntityContext(javax.ejb.EntityContext context) throws javax.ejb.EJBException, java.rmi.RemoteException
sequenceName
.setEntityContext
in interface javax.ejb.EntityBean
public void unsetEntityContext() throws javax.ejb.EJBException, java.rmi.RemoteException
unsetEntityContext
in interface javax.ejb.EntityBean
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbActivate
in interface javax.ejb.EntityBean
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbPassivate
in interface javax.ejb.EntityBean
public void ejbLoad() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbLoad
in interface javax.ejb.EntityBean
public void ejbStore() throws javax.ejb.EJBException, java.rmi.RemoteException
ejbStore
in interface javax.ejb.EntityBean
public void ejbRemove() throws javax.ejb.RemoveException, javax.ejb.EJBException, java.rmi.RemoteException
ejbRemove
in interface javax.ejb.EntityBean
protected javax.ejb.EntityContext getEntityContext()
|
See www.opensymphony.com for more information. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |