|
||||||||||
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.ExceptionlessEntityAdapter
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,
This is an identical class in terms of functionality to EntityAdapter, it just does not throw as many exceptions. This sometimes works much nicer with other tools such as XDoclet.
Fields inherited from class com.opensymphony.ejb.AbstractEntityAdapter |
context, sequenceName |
Constructor Summary | |
ExceptionlessEntityAdapter()
|
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 ExceptionlessEntityAdapter()
Method Detail |
public void setEntityContext(javax.ejb.EntityContext context)
sequenceName
.setEntityContext
in interface javax.ejb.EntityBean
public void unsetEntityContext()
unsetEntityContext
in interface javax.ejb.EntityBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.EntityBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.EntityBean
public void ejbLoad()
ejbLoad
in interface javax.ejb.EntityBean
public void ejbStore()
ejbStore
in interface javax.ejb.EntityBean
public void ejbRemove() throws javax.ejb.RemoveException
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 |