|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.toplink.jdo.JDOPersistenceManagerFactory
PUBLIC: TopLink persistence manager for the JDO specification. This supports JDO through the TopLink API, Supported are the basic JDO interfaces but not required or implemented are the PersistenceCapable implementation, byte-code enhancers or any other internal JDO reference implementation related aspects. JDO wrapper for a TopLink session manager.
The factory allows for a persistence manager to be acquire through two methods,
- a TopLink Project is provided to the factory and a persistence manager on a DatabaseSession is returned (this should only be used in two-tier)
- a session-name is provided to the factory (or default name is used) and the TopLink SessionManager is used to access a defined ServerSession from the TopLink Session.xml file.
| Constructor Summary | |
JDOPersistenceManagerFactory()Create a new factory, by default this will connect through the TopLink SessionManager to the default session. | |
JDOPersistenceManagerFactory(Project project)Create a new factory that will use the project to create the persistence manager's TopLink session instance. | |
JDOPersistenceManagerFactory(Session topLinkSession)Create a new factory that will use TopLink session instance. | |
JDOPersistenceManagerFactory(java.lang.String sessionName)Create a new factory that will use the session-name to lookup the persistence manager's TopLink session through the TopLink SessionManager. | |
| Method Summary | |
java.lang.String |
getConnectionDriverName()Get the driver name for the data store connection. |
java.lang.Object |
getConnectionFactory()Get the data store connection factory. |
java.lang.Object |
getConnectionFactory2()PUBLIC: This method is not supported and it always returns null |
java.lang.String |
getConnectionFactory2Name()PUBLIC: This method is not supported and it always returns null Get the name for the second data store connection factory. |
java.lang.String |
getConnectionFactoryName()Get the name for the data store connection factory. |
java.lang.String |
getConnectionURL()Get the URL for the data store connection. |
java.lang.String |
getConnectionUserName()Get the user name for the data store connection. |
boolean |
getIgnoreCache()Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
int |
getMaxPool()PUBLIC: This method is not supported and it always returns 0 Get the MaxPool setting for the PersistenceManager pool for this factory. |
int |
getMinPool()PUBLIC: This method is not supported and it always returns 0 Get the MinPool setting for the PersistenceManager pool for this factory. |
int |
getMsWait()PUBLIC: This method is not supported and it always returns 0 Get the MsWait setting for the PersistenceManager pool for this factory. |
boolean |
getMultithreaded()PUBLIC: Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalRead()When the nontransactional read flag is set to false the PersistenceManager has a single TopLink UnitOfWork associated with it. |
boolean |
getNontransactionalWrite()Get the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
boolean |
getOptimistic()Get the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager()Get an instance of PersistenceManager from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String userid, java.lang.String password)Get an instance of PersistenceManager from this factory. |
Project |
getProject()Return the associated TopLink project if defined. |
java.util.Properties |
getProperties()getProperties method comment. |
boolean |
getRetainValues()Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getSessionName()Return the session-name used to lookup the factories ServerSession through the TopLink SessionManager. |
void |
setConnectionDriverName(java.lang.String driverName)PUBLIC: Set the driver name for the data store connection. |
void |
setConnectionFactory(java.lang.Object connectionFactory)Set the data store connection factory. |
void |
setConnectionFactory2(java.lang.Object connectionFactory)Set the second data store connection factory. |
void |
setConnectionFactory2Name(java.lang.String connectionFactoryName)Set the name for the second data store connection factory. |
void |
setConnectionFactoryName(java.lang.String connectionFactoryName)Set the name for the data store connection factory. |
void |
setConnectionPassword(java.lang.String password)Set the password for the data store connection. |
void |
setConnectionURL(java.lang.String URL)Set the URL for the data store connection. |
void |
setConnectionUserName(java.lang.String userName)Set the user name for the data store connection. |
void |
setIgnoreCache(boolean ignoreCache)Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
void |
setMaxPool(int maxPool)Set the MaxPool setting for the PersistenceManager pool for this factory. |
void |
setMinPool(int minPool)Set the MinPool setting for the PersistenceManager pool for this factory. |
void |
setMsWait(int msWait)Set the MsWait setting for the PersistenceManager pool for this factory. |
void |
setMultithreaded(boolean multithreaded)PUBLIC: JDO: Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalRead(boolean nontransactionalRead)PUBLIC: When the nontransactional read flag is set to false the PersistenceManager has a single TopLink UnitOfWork associated with it. |
void |
setNontransactionalWrite(boolean flag)PUBLIC: This method is not supported Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
void |
setOptimistic(boolean flag)PUBLIC: This method is not supported Set the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
void |
setRetainValues(boolean flag)PUBLIC: This method is not supported |
java.util.Collection |
supportedOptions()The application can determine from the results of this method which optional features, and which query languages are supported by the JDO implementation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDOPersistenceManagerFactory()
public JDOPersistenceManagerFactory(java.lang.String sessionName)
public JDOPersistenceManagerFactory(Project project)
public JDOPersistenceManagerFactory(Session topLinkSession)
| Method Detail |
public java.lang.String getConnectionDriverName()
getConnectionDriverName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.Object getConnectionFactory()
getConnectionFactory in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionFactoryName()
getConnectionFactoryName in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionURL()
getConnectionURL in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionUserName()
getConnectionUserName in interface javax.jdo.PersistenceManagerFactorypublic boolean getIgnoreCache()
getIgnoreCache in interface javax.jdo.PersistenceManagerFactorypublic boolean getNontransactionalRead()
JDO: Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.
getNontransactionalRead in interface javax.jdo.PersistenceManagerFactorypublic boolean getNontransactionalWrite()
getNontransactionalWrite in interface javax.jdo.PersistenceManagerFactorypublic boolean getOptimistic()
getOptimistic in interface javax.jdo.PersistenceManagerFactorypublic javax.jdo.PersistenceManager getPersistenceManager()
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager in interface javax.jdo.PersistenceManagerFactorypublic boolean getRetainValues()
getRetainValues in interface javax.jdo.PersistenceManagerFactorypublic void setConnectionDriverName(java.lang.String driverName)
setConnectionDriverName in interface javax.jdo.PersistenceManagerFactorydriverName - the driver name for the data store connection.public void setConnectionFactory(java.lang.Object connectionFactory)
setConnectionFactory in interface javax.jdo.PersistenceManagerFactoryconnectionFactory - the data store connection factory.public void setConnectionFactoryName(java.lang.String connectionFactoryName)
setConnectionFactoryName in interface javax.jdo.PersistenceManagerFactoryconnectionFactoryName - the name of the data store connection factory.public void setConnectionPassword(java.lang.String password)
setConnectionPassword in interface javax.jdo.PersistenceManagerFactorypassword - the password for the data store connection.public void setConnectionURL(java.lang.String URL)
setConnectionURL in interface javax.jdo.PersistenceManagerFactoryURL - the URL for the data store connection.public void setConnectionUserName(java.lang.String userName)
setConnectionUserName in interface javax.jdo.PersistenceManagerFactoryuserName - the user name for the data store connection.public void setIgnoreCache(boolean ignoreCache)
setIgnoreCache in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalRead(boolean nontransactionalRead)
JDO: Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.
setNontransactionalRead in interface javax.jdo.PersistenceManagerFactorypublic void setNontransactionalWrite(boolean flag)
Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.
setNontransactionalWrite in interface javax.jdo.PersistenceManagerFactoryflag - the default NontransactionalWrite setting.public void setOptimistic(boolean flag)
Set the default Optimistic setting for all PersistenceManager instances obtained from this factory.
setOptimistic in interface javax.jdo.PersistenceManagerFactoryflag - the default Optimistic setting.public void setRetainValues(boolean flag)
setRetainValues in interface javax.jdo.PersistenceManagerFactorypublic java.lang.Object getConnectionFactory2()
getConnectionFactory2 in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getConnectionFactory2Name()
getConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactorypublic int getMaxPool()
getMaxPool in interface javax.jdo.PersistenceManagerFactorypublic int getMinPool()
getMinPool in interface javax.jdo.PersistenceManagerFactorypublic int getMsWait()
getMsWait in interface javax.jdo.PersistenceManagerFactorypublic boolean getMultithreaded()
getMultithreaded in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String userid,
java.lang.String password)
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager in interface javax.jdo.PersistenceManagerFactoryuserid - the userid for the connectionpassword - the password for the connectionpublic Project getProject()
public java.util.Properties getProperties()
getProperties in interface javax.jdo.PersistenceManagerFactorypublic java.lang.String getSessionName()
public void setConnectionFactory2(java.lang.Object connectionFactory)
setConnectionFactory2 in interface javax.jdo.PersistenceManagerFactoryconnectionFactory - the data store connection factory.public void setConnectionFactory2Name(java.lang.String connectionFactoryName)
setConnectionFactory2Name in interface javax.jdo.PersistenceManagerFactoryconnectionFactoryName - the name of the data store connection factory.public void setMaxPool(int maxPool)
setMaxPool in interface javax.jdo.PersistenceManagerFactorymaxPool - the MaxPool setting.public void setMinPool(int minPool)
setMinPool in interface javax.jdo.PersistenceManagerFactoryminPool - the MinPool setting.public void setMsWait(int msWait)
setMsWait in interface javax.jdo.PersistenceManagerFactorymsWait - the MsWait setting.public void setMultithreaded(boolean multithreaded)
JDO: Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory.
setMultithreaded in interface javax.jdo.PersistenceManagerFactorypublic java.util.Collection supportedOptions()
Each supported JDO optional feature is represented by a String with one of the following values:
javax.jdo.option.TransientTransactional
javax.jdo.option.NontransactionalRead
javax.jdo.option.NontransactionalWrite
javax.jdo.option.RetainValues
javax.jdo.option.Optimistic
javax.jdo.option.ApplicationIdentity
javax.jdo.option.DatastoreIdentity
javax.jdo.option.NonDatastoreIdentity
javax.jdo.option.ArrayList
javax.jdo.option.HashMap
javax.jdo.option.Hashtable
javax.jdo.option.LinkedList
javax.jdo.option.TreeMap
javax.jdo.option.TreeSet
javax.jdo.option.Vector
javax.jdo.option.Map
javax.jdo.option.List
javax.jdo.option.Array
javax.jdo.option.NullCollection
The standard JDO query language is represented by a String:
javax.jdo.query.JDOQL
supportedOptions in interface javax.jdo.PersistenceManagerFactory
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||