|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.objectweb.speedo.runtime.SpeedoPersistenceManagerFactory
Field Summary | |
static java.lang.String |
COMPONENT_IDENTITY_BINDING
|
static java.lang.String |
LOGGER_FACTORY_BINDING
|
static java.lang.String |
LOGGER_NAME
|
static java.lang.String |
MAPPER_BINDING
|
static java.lang.String |
PERSISTENCE_MANAGER_TEMPLATE_BINDING
|
static java.lang.String |
PM_POOL_BINDING
|
static java.lang.String |
PROXY_MANAGER_SWITCH_BINDING
|
Constructor Summary | |
SpeedoPersistenceManagerFactory()
|
Method Summary | |
void |
addFcBinding(java.lang.String s,
java.lang.Object o)
|
org.objectweb.perseus.pool.api.PoolResource |
createResource(java.lang.Object o)
Creates a new PoolResource . |
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. |
java.lang.Object |
getFcBindings(java.lang.String s)
|
boolean |
getIgnoreCache()
Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
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. |
javax.jdo.PersistenceManager |
getPersistenceManager()
Get an instance of PersistenceManager from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.Object cs)
|
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String userid,
java.lang.String password)
Get an instance of PersistenceManager from this factory. |
org.objectweb.perseus.pool.api.Pool |
getPool()
|
java.util.Properties |
getProperties()
Return non-configurable properties of this PersistenceManagerFactory. |
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
boolean |
matchResource(org.objectweb.perseus.pool.api.PoolResource resource,
java.lang.Object o)
Tests wether a PoolResource can be managed by the current Pool. |
void |
removeFcBinding(java.lang.String s,
java.lang.Object serverItf)
|
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 |
setIgnoreCache(boolean flag)
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 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. |
Field Detail |
public static final java.lang.String PERSISTENCE_MANAGER_TEMPLATE_BINDING
public static final java.lang.String MAPPER_BINDING
public static final java.lang.String PM_POOL_BINDING
public static final java.lang.String PROXY_MANAGER_SWITCH_BINDING
public static final java.lang.String LOGGER_FACTORY_BINDING
public static final java.lang.String COMPONENT_IDENTITY_BINDING
public static final java.lang.String LOGGER_NAME
Constructor Detail |
public SpeedoPersistenceManagerFactory()
Method Detail |
public java.lang.Object getFcBindings(java.lang.String s)
public void addFcBinding(java.lang.String s, java.lang.Object o)
public void removeFcBinding(java.lang.String s, java.lang.Object serverItf)
public javax.jdo.PersistenceManager getPersistenceManager()
init
at the first call.public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String userid, java.lang.String password)
init
at the first call.userid
- the userid for the connectionpassword
- the password for the connectionpublic javax.jdo.PersistenceManager getPersistenceManager(java.lang.Object cs)
public void setConnectionUserName(java.lang.String userName)
userName
- the user name for the data store connection.public java.lang.String getConnectionUserName()
public void setConnectionPassword(java.lang.String password)
password
- the password for the data store connection.protected java.lang.String getConnectionPassword()
public void setConnectionURL(java.lang.String URL)
URL
- the URL for the data store connection.public java.lang.String getConnectionURL()
public void setConnectionDriverName(java.lang.String driverName)
driverName
- the driver name for the data store connection.public java.lang.String getConnectionDriverName()
public void setConnectionFactoryName(java.lang.String connectionFactoryName)
connectionFactoryName
- the name of the data store connection factory.public java.lang.String getConnectionFactoryName()
public void setConnectionFactory(java.lang.Object connectionFactory)
connectionFactory
- the data store connection factory.public java.lang.Object getConnectionFactory()
public void setConnectionFactory2Name(java.lang.String connectionFactoryName)
connectionFactoryName
- the name of the data store connection factory.public java.lang.String getConnectionFactory2Name()
public void setConnectionFactory2(java.lang.Object connectionfactory)
connectionfactory
- the data store connection factory.public java.lang.Object getConnectionFactory2()
public void setMultithreaded(boolean flag)
flag
- the default Multithreaded setting.public boolean getMultithreaded()
public void setOptimistic(boolean flag)
flag
- the default Optimistic setting.public boolean getOptimistic()
public void setRetainValues(boolean flag)
flag
- the default RetainValues setting.public boolean getRetainValues()
public void setNontransactionalRead(boolean flag)
flag
- the default NontransactionalRead setting.public boolean getNontransactionalRead()
public void setNontransactionalWrite(boolean flag)
flag
- the default NontransactionalWrite setting.public boolean getNontransactionalWrite()
public void setIgnoreCache(boolean flag)
flag
- the default IgnoreCache setting.public boolean getIgnoreCache()
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.Properties getProperties()
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
public void setRestoreValues(boolean b)
public boolean getRestoreValues()
public org.objectweb.perseus.pool.api.PoolResource createResource(java.lang.Object o) throws java.lang.Exception
PoolResource
.
This methos is invoked by the owned Pool
.o
- params used to build a new PoolResourceSpeedoPersistenceManager
public boolean matchResource(org.objectweb.perseus.pool.api.PoolResource resource, java.lang.Object o)
PoolResource
can be managed by the current Pool.
This methos is invoked by the owned Pool
.resource
- the PoolResource
to be testedo
- o params used to build a new PoolResourcePersistenceManagerImml
public org.objectweb.perseus.pool.api.Pool getPool()
Pool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |