|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.toplink.ejb.EJBDataStore
Purpose: Implement the EJB entity bean BMP/CMP APIs.
Description: This class maps the EJB entity bean APIs to TopLink APIs. It can be used from a BMP base class or from a CMP persister in compatible EJB servers.
Responsibilities:
Constructor Summary |
EJBDataStore()
Create a new data store. |
Method Summary |
Type | Method |
---|---|
java.lang.Object |
create(oracle.toplink.ejb.EntityBean bean)
PUBLIC: Insert the bean into the database. |
java.lang.Object |
create(java.lang.Object bean)
PUBLIC: Insert the bean into the database. |
java.util.Enumeration |
findAll()
PUBLIC: Read all the objects for the class and load them into the cache. |
java.util.Enumeration |
findAll(Call call)
Read all the objects for the class given the call and load them into the cache. |
java.util.Enumeration |
findAll(Expression expression)
PUBLIC: Read all the objects for the class given the expression and load them into the cache. |
java.util.Enumeration |
findAll(ReadAllQuery query)
PUBLIC: Read all the objects for the class given the query and load them into the cache. |
java.util.Enumeration |
findAllByNamedQuery(java.lang.String queryName,
java.util.Vector arguments)
Read all the objects for the class given the query and load them into the cache. |
java.util.Vector |
findAllObjects(ReadAllQuery query)
PUBLIC: Read all the objects for the class given the query and load them into the cache. |
java.util.Vector |
findAllObjectsByNamedQuery(java.lang.String queryName,
java.util.Vector arguments)
PUBLIC: Read all the objects for the class given the query and load them into the cache. |
java.lang.Object |
findByPrimaryKey(java.lang.Object primaryKeyObject)
PUBLIC: Find the object by primary key object and load it into the cache. |
java.lang.Object |
findObject(ReadObjectQuery query)
PUBLIC: Find the object by the query and load it into the cache. |
java.lang.Object |
findObjectByNamedQuery(java.lang.String queryName,
java.util.Vector arguments)
PUBLIC: Find the object by the query and load it into the cache. |
java.lang.Object |
findOne(Call call)
PUBLIC: Find the object by the query and load it into the cache. |
java.lang.Object |
findOne(Expression expression)
PUBLIC: Find the object by the query and load it into the cache. |
java.lang.Object |
findOne(ReadObjectQuery query)
PUBLIC: Find the object by the query and load it into the cache. |
java.lang.Object |
findOneByNamedQuery(java.lang.String queryName,
java.util.Vector arguments)
PUBLIC: Find the object by the query and load it into the cache. |
Session |
getActiveSession()
PUBLIC: Return the session or unit of work if in a transaction. |
UnitOfWork |
getActiveUnitOfWork()
PUBLIC: Return the unit of work in the transaction context. |
java.lang.Class |
getBeanClass()
PUBLIC: Return the bean class. |
Session |
getSession()
ADVANCED: Return the session. |
java.lang.String |
getSessionName()
PUBLIC: Return the session name. |
XMLLoader |
getXMLLoader()
PUBLIC: Return the XMLLoader for this datastore. |
void |
load(java.lang.Object bean)
PUBLIC: Load from the database/cache into the object. |
void |
remove(oracle.toplink.ejb.EntityBean bean)
PUBLIC: Delete the bean from the database. |
void |
remove(java.lang.Object bean)
PUBLIC: Delete the bean from the database. |
void |
setBeanClass(java.lang.Class beanClass)
REQUIRED: Set the bean class for the data store. |
void |
setSession(Session session)
PUBLIC: Set the session. |
void |
setSessionName(java.lang.String sessionName)
PUBLIC: Set the session name. |
void |
setXMLLoader(XMLLoader xmlLoader)
PUBLIC: Set the XML Loader that will be used to load the session configuration information. |
void |
store(oracle.toplink.ejb.EntityBean bean)
PUBLIC: Update the bean into the database. |
void |
store(java.lang.Object bean)
PUBLIC: Update the bean into the database. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EJBDataStore()
Method Detail |
public java.lang.Object create(java.lang.Object bean) throws oracle.toplink.ejb.CreateException
public java.lang.Object create(oracle.toplink.ejb.EntityBean bean) throws oracle.toplink.ejb.CreateException
public java.util.Enumeration findAll() throws oracle.toplink.ejb.FinderException
public java.util.Enumeration findAll(Expression expression) throws oracle.toplink.ejb.FinderException
public java.util.Enumeration findAll(Call call) throws oracle.toplink.ejb.FinderException
public java.util.Enumeration findAll(ReadAllQuery query) throws oracle.toplink.ejb.FinderException
public java.util.Enumeration findAllByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws oracle.toplink.ejb.FinderException
public java.util.Vector findAllObjects(ReadAllQuery query) throws oracle.toplink.ejb.FinderException
public java.util.Vector findAllObjectsByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws oracle.toplink.ejb.FinderException
public java.lang.Object findByPrimaryKey(java.lang.Object primaryKeyObject) throws oracle.toplink.ejb.FinderException
public java.lang.Object findObject(ReadObjectQuery query) throws oracle.toplink.ejb.FinderException
public java.lang.Object findObjectByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws oracle.toplink.ejb.FinderException
public java.lang.Object findOne(Expression expression) throws oracle.toplink.ejb.FinderException
public java.lang.Object findOne(Call call) throws oracle.toplink.ejb.FinderException
public java.lang.Object findOne(ReadObjectQuery query) throws oracle.toplink.ejb.FinderException
public java.lang.Object findOneByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws oracle.toplink.ejb.FinderException
public Session getActiveSession()
public UnitOfWork getActiveUnitOfWork()
public java.lang.Class getBeanClass()
public Session getSession()
public java.lang.String getSessionName()
public XMLLoader getXMLLoader()
public void load(java.lang.Object bean)
public void remove(java.lang.Object bean) throws oracle.toplink.ejb.RemoveException
public void remove(oracle.toplink.ejb.EntityBean bean) throws oracle.toplink.ejb.RemoveException
public void setBeanClass(java.lang.Class beanClass)
public void setSession(Session session)
public void setSessionName(java.lang.String sessionName)
public void setXMLLoader(XMLLoader xmlLoader)
public void store(java.lang.Object bean) throws DatabaseException, OptimisticLockException
public void store(oracle.toplink.ejb.EntityBean bean) throws DatabaseException, OptimisticLockException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |