|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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 | |
java.lang.Object |
create(javax.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.Collection |
ejb20FindAll() PUBLIC: Read all the objects for the class and load them into the cache. |
java.util.Collection |
ejb20FindAll(Call call) Read all the objects for the class given the call and load them into the cache. |
java.util.Collection |
ejb20FindAll(Expression expression) PUBLIC: Read all the objects for the class given the expression and load them into the cache. |
java.util.Collection |
ejb20FindAll(ReadAllQuery query) PUBLIC: Read all the objects for the class given the query and load them into the cache. |
java.util.Collection |
ejb20FindAllByNamedQuery(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.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. |
oracle.toplink.publicinterface.Session |
getActiveSession() PUBLIC: Return the session or unit of work if in a transaction. |
oracle.toplink.publicinterface.UnitOfWork |
getActiveUnitOfWork() PUBLIC: Return the unit of work in the transaction context. |
java.lang.Class |
getBeanClass() PUBLIC: Return the bean class. |
oracle.toplink.publicinterface.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(javax.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(javax.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 javax.ejb.CreateException
javax.ejb.CreateException
public java.lang.Object create(javax.ejb.EntityBean bean) throws javax.ejb.CreateException
javax.ejb.CreateException
public java.util.Enumeration findAll() throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Collection ejb20FindAll() throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Enumeration findAll(Expression expression) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Collection ejb20FindAll(Expression expression) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Enumeration findAll(Call call) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Collection ejb20FindAll(Call call) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Enumeration findAll(ReadAllQuery query) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Collection ejb20FindAll(ReadAllQuery query) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Enumeration findAllByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Collection ejb20FindAllByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Vector findAllObjects(ReadAllQuery query) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.util.Vector findAllObjectsByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Object findByPrimaryKey(java.lang.Object primaryKeyObject) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Object findObject(ReadObjectQuery query) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Object findObjectByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Object findOne(Expression expression) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Object findOne(Call call) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Object findOne(ReadObjectQuery query) throws javax.ejb.FinderException
javax.ejb.FinderException
public java.lang.Object findOneByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws javax.ejb.FinderException
javax.ejb.FinderException
public oracle.toplink.publicinterface.Session getActiveSession()
public oracle.toplink.publicinterface.UnitOfWork getActiveUnitOfWork()
public java.lang.Class getBeanClass()
public oracle.toplink.publicinterface.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 javax.ejb.RemoveException
javax.ejb.RemoveException
public void remove(javax.ejb.EntityBean bean) throws javax.ejb.RemoveException
javax.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
DatabaseException
OptimisticLockException
public void store(javax.ejb.EntityBean bean) throws DatabaseException, OptimisticLockException
DatabaseException
OptimisticLockException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |