|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.pm.lib.AbstractPOManagerFactory
org.objectweb.speedo.pm.jdo.lib.JDOPOManagerFactory
public class JDOPOManagerFactory
The JDOPOManagerFactory is a factory of JDOPOManagerItf.
POManagerItf
,
POManagerSwitchItf
,
JDOPOManager
,
JDOPOManagerFactory
,
POManagerInstanciatorImpl
,
POManagerSwitchImpl
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.jdo.datastore.DataStoreCache |
---|
DataStoreCache.EmptyDataStoreCache |
Field Summary | |
---|---|
static java.lang.String |
CONNECTION_SPEC_FACTORY
|
Fields inherited from class org.objectweb.speedo.pm.lib.AbstractPOManagerFactory |
---|
_this, CACHE_M_BINDING, cacheManager, COMPONENT_BINDING, connectionProperties, csf, GETMAXPOOL, imbricatedAuthorized, JORM_FACTORY_BINDING, jormFactory, logger, managedPM, mapper, MAPPER_BINDING, personality, PM_POOL_BINDING, pms, PO_MANAGER_SWITCH_BINDING, QUERY_M_BINDING, queryManager, SEQUENCE_M_BINDING, sequenceManager, started, tpm, TPM_BINDING, UNBIND_M_BINDING, unbindManager |
Constructor Summary | |
---|---|
JDOPOManagerFactory()
|
Method Summary | |
---|---|
void |
addInstanceLifecycleListener(InstanceLifecycleListener l,
java.lang.Class[] classes)
|
void |
close()
|
void |
evict(java.lang.Object oid)
|
void |
evictAll()
|
void |
evictAll(java.lang.Class clazz,
boolean subClasses)
|
void |
evictAll(java.util.Collection oids)
|
void |
evictAll(java.lang.Object[] oids)
|
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()
Get the second data store connection factory. |
java.lang.String |
getConnectionFactory2Name()
Get the name for the second data store connection factory. |
java.lang.String |
getConnectionFactoryName()
Get the name for the data store connection factory. |
protected java.lang.String |
getConnectionPassword()
Get the password for the data store connection. |
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. |
DataStoreCache |
getDataStoreCache()
|
boolean |
getDetachAllOnCommit()
|
boolean |
getIgnoreCache()
Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getMapping()
|
int |
getMaxPool()
Get the MaxPool setting for the PersistenceManager pool for this factory. |
int |
getMinPool()
Get the MinPool setting for the PersistenceManager pool for this factory. |
int |
getMsWait()
Get the MsWait setting for the PersistenceManager pool for this factory. |
boolean |
getMultithreaded()
Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalRead()
Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
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. |
PersistenceManager |
getPersistenceManager()
Get an instance of PersistenceManager from this factory. |
PersistenceManager |
getPersistenceManager(java.lang.Object cs)
|
PersistenceManager |
getPersistenceManager(java.lang.String userid,
java.lang.String password)
Get an instance of PersistenceManager from this factory. |
POManagerItf |
getPOManager()
|
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
boolean |
isClosed()
|
void |
pin(java.lang.Object oid)
|
void |
pinAll(java.lang.Class clazz,
boolean subClasses)
|
void |
pinAll(java.util.Collection oids)
|
void |
pinAll(java.lang.Object[] oids)
|
void |
removeInstanceLifecycleListener(InstanceLifecycleListener l)
|
void |
setConnectionDriverName(java.lang.String driverName)
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 |
setDetachAllOnCommit(boolean arg0)
|
void |
setIgnoreCache(boolean flag)
Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
void |
setMapping(java.lang.String arg0)
|
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 flag)
Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalRead(boolean flag)
Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalWrite(boolean flag)
Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
void |
setOptimistic(boolean flag)
Set the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
void |
setRestoreValues(boolean b)
|
void |
setRetainValues(boolean flag)
Set the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
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. |
void |
unpin(java.lang.Object oid)
|
void |
unpinAll(java.lang.Class clazz,
boolean subClasses)
|
void |
unpinAll(java.util.Collection oids)
|
void |
unpinAll(java.lang.Object[] oids)
|
Methods inherited from class org.objectweb.speedo.pm.lib.AbstractPOManagerFactory |
---|
assertIsPO, bindFc, bindPM2Thread, clean, getPersonality, getPool, getProperties, getQueryManager, getSequenceManager, getThis, listFc, lookup, lookupFc, poManagerClosed, setQueryManager, setSequenceManager, start, unbindFc, unbindPM |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.pm.api.POManagerFactoryItf |
---|
bindPM2Thread, clean, getPersonality, getProperties, getQueryManager, getSequenceManager, lookup, poManagerClosed, setQueryManager, setSequenceManager, unbindPM |
Methods inherited from interface javax.jdo.PersistenceManagerFactory |
---|
getProperties |
Field Detail |
---|
public static final java.lang.String CONNECTION_SPEC_FACTORY
Constructor Detail |
---|
public JDOPOManagerFactory()
Method Detail |
---|
public POManagerItf getPOManager()
getPOManager
in interface POManagerFactoryItf
public void evict(java.lang.Object oid)
evict
in interface DataStoreCache
public void evictAll(java.lang.Class clazz, boolean subClasses)
evictAll
in interface DataStoreCache
public void evictAll(java.util.Collection oids)
evictAll
in interface DataStoreCache
public void evictAll(java.lang.Object[] oids)
evictAll
in interface DataStoreCache
public void evictAll()
evictAll
in interface DataStoreCache
public void pin(java.lang.Object oid)
pin
in interface DataStoreCache
public void pinAll(java.lang.Class clazz, boolean subClasses)
pinAll
in interface DataStoreCache
public void pinAll(java.util.Collection oids)
pinAll
in interface DataStoreCache
public void pinAll(java.lang.Object[] oids)
pinAll
in interface DataStoreCache
public void unpin(java.lang.Object oid)
unpin
in interface DataStoreCache
public void unpinAll(java.lang.Class clazz, boolean subClasses)
unpinAll
in interface DataStoreCache
public void unpinAll(java.util.Collection oids)
unpinAll
in interface DataStoreCache
public void unpinAll(java.lang.Object[] oids)
unpinAll
in interface DataStoreCache
public PersistenceManager getPersistenceManager()
init
at the first call.
getPersistenceManager
in interface PersistenceManagerFactory
public void close()
close
in interface PersistenceManagerFactory
public PersistenceManager getPersistenceManager(java.lang.String userid, java.lang.String password)
init
at the first call.
getPersistenceManager
in interface PersistenceManagerFactory
userid
- the userid for the connectionpassword
- the password for the connection
public PersistenceManager getPersistenceManager(java.lang.Object cs)
public DataStoreCache getDataStoreCache()
getDataStoreCache
in interface PersistenceManagerFactory
public boolean isClosed()
isClosed
in interface PersistenceManagerFactory
public java.lang.String getMapping()
getMapping
in interface PersistenceManagerFactory
public void setMapping(java.lang.String arg0)
setMapping
in interface PersistenceManagerFactory
public void setConnectionUserName(java.lang.String userName)
setConnectionUserName
in interface PersistenceManagerFactory
userName
- the user name for the data store connection.public java.lang.String getConnectionUserName()
getConnectionUserName
in interface PersistenceManagerFactory
public void setConnectionPassword(java.lang.String password)
setConnectionPassword
in interface PersistenceManagerFactory
password
- the password for the data store connection.protected java.lang.String getConnectionPassword()
public void setConnectionURL(java.lang.String URL)
setConnectionURL
in interface PersistenceManagerFactory
URL
- the URL for the data store connection.public java.lang.String getConnectionURL()
getConnectionURL
in interface PersistenceManagerFactory
public void setConnectionDriverName(java.lang.String driverName)
setConnectionDriverName
in interface PersistenceManagerFactory
driverName
- the driver name for the data store connection.public java.lang.String getConnectionDriverName()
getConnectionDriverName
in interface PersistenceManagerFactory
public void setConnectionFactoryName(java.lang.String connectionFactoryName)
setConnectionFactoryName
in interface PersistenceManagerFactory
connectionFactoryName
- the name of the data store connection factory.public java.lang.String getConnectionFactoryName()
getConnectionFactoryName
in interface PersistenceManagerFactory
public void setConnectionFactory(java.lang.Object connectionFactory)
setConnectionFactory
in interface PersistenceManagerFactory
connectionFactory
- the data store connection factory.public java.lang.Object getConnectionFactory()
getConnectionFactory
in interface PersistenceManagerFactory
public void setConnectionFactory2Name(java.lang.String connectionFactoryName)
setConnectionFactory2Name
in interface PersistenceManagerFactory
connectionFactoryName
- the name of the data store connection factory.public java.lang.String getConnectionFactory2Name()
getConnectionFactory2Name
in interface PersistenceManagerFactory
public void setConnectionFactory2(java.lang.Object connectionfactory)
setConnectionFactory2
in interface PersistenceManagerFactory
connectionfactory
- the data store connection factory.public java.lang.Object getConnectionFactory2()
getConnectionFactory2
in interface PersistenceManagerFactory
public void setMultithreaded(boolean flag)
setMultithreaded
in interface PersistenceManagerFactory
flag
- the default Multithreaded setting.public boolean getMultithreaded()
getMultithreaded
in interface PersistenceManagerFactory
public void setOptimistic(boolean flag)
setOptimistic
in interface PersistenceManagerFactory
flag
- the default Optimistic setting.public boolean getOptimistic()
getOptimistic
in interface PersistenceManagerFactory
public void setRetainValues(boolean flag)
setRetainValues
in interface PersistenceManagerFactory
flag
- the default RetainValues setting.public boolean getRetainValues()
getRetainValues
in interface PersistenceManagerFactory
public void setNontransactionalRead(boolean flag)
setNontransactionalRead
in interface PersistenceManagerFactory
flag
- the default NontransactionalRead setting.public boolean getNontransactionalRead()
getNontransactionalRead
in interface PersistenceManagerFactory
public void setNontransactionalWrite(boolean flag)
setNontransactionalWrite
in interface PersistenceManagerFactory
flag
- the default NontransactionalWrite setting.public boolean getNontransactionalWrite()
getNontransactionalWrite
in interface PersistenceManagerFactory
public void setIgnoreCache(boolean flag)
setIgnoreCache
in interface PersistenceManagerFactory
flag
- the default IgnoreCache setting.public boolean getIgnoreCache()
getIgnoreCache
in interface PersistenceManagerFactory
public int getMaxPool()
public void setMaxPool(int maxPool)
maxPool
- the MaxPool setting.public int getMinPool()
public void setMinPool(int minPool)
minPool
- the MinPool setting.public int getMsWait()
public void setMsWait(int msWait)
msWait
- the MsWait setting.public 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 PersistenceManagerFactory
public void setRestoreValues(boolean b)
setRestoreValues
in interface PersistenceManagerFactory
public boolean getRestoreValues()
getRestoreValues
in interface PersistenceManagerFactory
public void addInstanceLifecycleListener(InstanceLifecycleListener l, java.lang.Class[] classes)
addInstanceLifecycleListener
in interface PersistenceManagerFactory
public void removeInstanceLifecycleListener(InstanceLifecycleListener l)
removeInstanceLifecycleListener
in interface PersistenceManagerFactory
public boolean getDetachAllOnCommit()
getDetachAllOnCommit
in interface PersistenceManagerFactory
public void setDetachAllOnCommit(boolean arg0)
setDetachAllOnCommit
in interface PersistenceManagerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |