|
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
com.ibm.ejs.persistence.EJSJDBCPersister
oracle.toplink.ejb.cmp.was.WSDataStore
Purpose: Implement the Websphere EJB entity bean CMP persistor APIs. Description: This class maps the Websphere CMP APIs to the generic TopLink' EJB APIs. Note that it requies the bean class and Websphere requires a generated subclass named "EJSJDBCPersister<bean class>". Responsibilities:
Field Summary | |
static java.lang.String |
TLWAS_PRODUCT |
Method Summary | |
com.ibm.ejs.persistence.EJSFinder |
findAll() Query all objects. |
com.ibm.ejs.persistence.EJSFinder |
findAll(Call aCall) Query all objects. |
com.ibm.ejs.persistence.EJSFinder |
findAll(Expression expression) Query all objects. |
com.ibm.ejs.persistence.EJSFinder |
findAll(ReadAllQuery query) Query all objects. |
com.ibm.ejs.persistence.EJSFinder |
findAllByNamedQuery(java.lang.String queryName, java.util.Vector arguments) Query all objects. |
java.lang.Object |
findByPrimaryKey(java.lang.Object primaryKeyObject) Query the object by primary key from the cache or database. |
java.lang.Object |
findOneByNamedQueryInternal(java.lang.String queryName, java.util.Vector arguments) Query the object by query from the cache or database. |
java.lang.Object |
findOneInternal(Call aCall) Query the object by query from the cache or database. |
java.lang.Object |
findOneInternal(Expression expression) Query the object by query from the cache or database. |
java.lang.Object |
findOneInternal(ReadObjectQuery query) Query the object by query from the cache or database. |
java.lang.Class |
getBeanClass() Return the bean class for the data store. |
EJBDataStore |
getDataStore() |
com.ibm.ejs.container.EJSHome |
getEJSHome() Return the Websphere home utility class. |
com.ibm.websphere.cpi.PersisterHome |
getHome() Return the Websphere home utility class. |
java.lang.Object |
getPrimaryKey(java.lang.Object primaryKeyObject) Build the primary key from the result set object. |
abstract boolean |
hasCompoundKey() |
void |
hydrate(javax.ejb.EntityBean bean, java.lang.Object objectFromCache, java.lang.Object primaryKeyObject) Load into the bean from the cache or database. |
void |
initializeDescriptor(com.ibm.ejs.container.BeanMetaData metaData) Initialize the descriptor with the metadata info |
void |
load(javax.ejb.EntityBean bean, java.lang.Object primaryKeyObject, boolean shouldLock) Given a bean that has a primary key set this loads the data into the bean. |
java.lang.Object |
lookupRemoteForBean(java.lang.Object bean, java.lang.Object primaryKeyObject) Return the remote from the home by primary key. |
void |
refresh(javax.ejb.EntityBean bean, boolean shouldLock) Refresh and lock the bean from the database. |
void |
remove(javax.ejb.EntityBean entityBean) |
void |
setBeanClass(java.lang.Class beanClass) REQUIRED: Set the bean class for the data store. |
void |
setDataStore(EJBDataStore dataStore) |
void |
setHome(com.ibm.ejs.container.EJSHome home) Set the Websphere home utility class. |
void |
setHome(com.ibm.websphere.cpi.PersisterHome home) This medhod signature is called in 4.0. |
void |
store(javax.ejb.EntityBean entityBean) |
Methods inherited from class com.ibm.ejs.persistence.EJSJDBCPersister |
checkCMPStoreOperation, create, dbSupportsSelectForUpdate, getBean, getDataFromCache, getPreparedStatement, initialize, preFind, putDataIntoCache, setContextData |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TLWAS_PRODUCT
Method Detail |
public com.ibm.ejs.persistence.EJSFinder findAll() throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public com.ibm.ejs.persistence.EJSFinder findAll(Expression expression) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public com.ibm.ejs.persistence.EJSFinder findAll(Call aCall) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public com.ibm.ejs.persistence.EJSFinder findAll(ReadAllQuery query) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public com.ibm.ejs.persistence.EJSFinder findAllByNamedQuery(java.lang.String queryName, java.util.Vector arguments) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public java.lang.Object findByPrimaryKey(java.lang.Object primaryKeyObject) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public java.lang.Object findOneByNamedQueryInternal(java.lang.String queryName, java.util.Vector arguments) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public java.lang.Object findOneInternal(Expression expression) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public java.lang.Object findOneInternal(Call aCall) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public java.lang.Object findOneInternal(ReadObjectQuery query) throws java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.ejb.FinderException
public java.lang.Class getBeanClass()
public EJBDataStore getDataStore()
public com.ibm.ejs.container.EJSHome getEJSHome()
public com.ibm.websphere.cpi.PersisterHome getHome()
public java.lang.Object getPrimaryKey(java.lang.Object primaryKeyObject) throws java.lang.Exception
java.lang.Exception
public abstract boolean hasCompoundKey()
public void hydrate(javax.ejb.EntityBean bean, java.lang.Object objectFromCache, java.lang.Object primaryKeyObject) throws java.lang.Exception
java.lang.Exception
public void initializeDescriptor(com.ibm.ejs.container.BeanMetaData metaData)
public void load(javax.ejb.EntityBean bean, java.lang.Object primaryKeyObject, boolean shouldLock) throws java.lang.Exception
java.lang.Exception
public java.lang.Object lookupRemoteForBean(java.lang.Object bean, java.lang.Object primaryKeyObject)
public void refresh(javax.ejb.EntityBean bean, boolean shouldLock) throws java.lang.Exception
java.lang.Exception
public void remove(javax.ejb.EntityBean entityBean) throws java.lang.Exception
java.lang.Exception
public void setBeanClass(java.lang.Class beanClass)
public void setDataStore(EJBDataStore dataStore)
public void setHome(com.ibm.websphere.cpi.PersisterHome home)
public void setHome(com.ibm.ejs.container.EJSHome home)
public void store(javax.ejb.EntityBean entityBean) throws java.lang.Exception
java.lang.Exception
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |