Methods Summary |
---|
public java.lang.String | getConnectionDriverName()Returns JDBC driver name
|
public java.lang.Object | getConnectionFactory()Returns Connection Factory object that can be one of
ConnectionFactory or javax.sql.DataSource
|
public java.lang.String | getConnectionFactoryName()Returns ConnectionFactory name
|
public java.io.PrintWriter | getConnectionLogWriter()Returns the LogWriter to which messages should be sent
|
public int | getConnectionLoginTimeout()Returns the number of seconds to wait for a new connection to be
established to the data source
|
public int | getConnectionMaxPool()Returns maximum number of connections in the connection pool
|
public int | getConnectionMinPool()Returns minimum number of connections in the connection pool
|
public int | getConnectionMsInterval()Returns the amount of time, in milliseconds, between the connection
manager's attempts to get a pooled connection.
|
public int | getConnectionMsWait()Returns the number of milliseconds to wait for an available connection
from the connection pool before throwing an exception
|
public int | getConnectionTransactionIsolation()Returns current transaction isolation level for connections of this PersistenceManagerFactory.
|
public java.lang.String | getConnectionURL()Returns connection URL
|
public java.lang.String | getConnectionUserName()Returns database user name
|
public java.lang.String | getIdentifier()Gets Identifier. An Identifier is a string that user can use to identify
the PersistenceManagerFacory in a given environment. Identifier can be
particularly useful in an environment where multiple
PersistenceManagerFacories are initialized in a system.
|
public boolean | getIgnoreCache()Returns the boolean value for the flag that allows the user to request that queries
be optimized to return approximate results by ignoring changed values in the cache.
|
public int | getMaxPool()Returns maximum number of PersistenceManager instances in the pool
|
public int | getMinPool()Returns minimum number of PersistenceManager instances in the pool
|
public boolean | getNontransactionalRead()Returns the boolean value for the flag that allows non-transactional instances
to be managed in the cache.
|
public boolean | getOptimistic()Returns the boolean value of the optimistic flag for all PersistenceManagers
|
public PersistenceManager | getPersistenceManager()Creates new PersistenceManager without extra info
|
public PersistenceManager | getPersistenceManager(java.lang.String username, java.lang.String password)Creates new PersistenceManager with specific
username and password. Used to call ConnectionFactory.getConnection(String, String)
|
public java.util.Properties | getProperties()Returns non-operational properties to be available to the application via a Properties instance.
|
public int | getQueryTimeout()Gets the number of seconds to wait for a query statement
to execute in the datastore associated with this PersistenceManagerFactory.
|
public boolean | getRequireCopyObjectId()Returns the default value of the requireCopyObjectId flag
for this PersistenceManagerFactory. If set to false, the PersistenceManager
will not create a copy of an ObjectId for PersistenceManager.getObjectId(Object pc)
and PersistenceManager.getObjectById(Object oid) requests.
|
public boolean | getRequireTrackedSCO()Returns the boolean value of the requireTrackedSCO flag
for this PersistenceManagerFactory. If set to false, by default the
PersistenceManager will not create tracked SCO instances for
new persistent instances at commit with retainValues set to true and while
retrieving data from a datastore.
|
public boolean | getRetainValues()Returns the boolean value for the flag that will not cause the eviction of persistent
instances after transaction completion.
|
public boolean | getSupersedeDeletedInstance()Returns the boolean value of the supersedeDeletedInstance flag
for all PersistenceManagers. If set to true, deleted instances are
allowed to be replaced with persistent-new instances with the equal
Object Id.
|
public int | getUpdateTimeout()Gets the number of seconds to wait for an update statement
to execute in the datastore associated with this PersistenceManagerFactory.
|
public void | setConnectionDriverName(java.lang.String driverName)Sets JDBC driver name
|
public void | setConnectionFactory(java.lang.Object cf)Sets Connection Factory as ConnectionFactory
or javax.sql.DataSource
|
public void | setConnectionFactoryName(java.lang.String connectionFactoryName)Sets ConnectionFactory name
|
public void | setConnectionLogWriter(java.io.PrintWriter pw)Sets the LogWriter to which messages should be sent
|
public void | setConnectionLoginTimeout(int LoginTimeout)Sets the number of seconds to wait for a new connection to be
established to the data source
|
public void | setConnectionMaxPool(int MaxPool)Sets maximum number of connections in the connection pool
|
public void | setConnectionMinPool(int MinPool)Sets minimum number of connections in the connection pool
|
public void | setConnectionMsInterval(int MsInterval)Sets the amount of time, in milliseconds, between the connection
manager's attempts to get a pooled connection.
|
public void | setConnectionMsWait(int MsWait)Sets the number of milliseconds to wait for an available connection
from the connection pool before throwing an exception
|
public void | setConnectionPassword(java.lang.String password)Sets database user password
|
public void | setConnectionTransactionIsolation(int level)Sets transaction isolation level for all connections of this PersistenceManagerFactory.
All validation is done by java.sql.Connection itself, so e.g. while Oracle
will not allow to set solation level to TRANSACTION_REPEATABLE_READ, this method
does not have any explicit restrictions
|
public void | setConnectionURL(java.lang.String URL)Sets JDBC connection URL
|
public void | setConnectionUserName(java.lang.String userName)Sets database user
|
public void | setIdentifier(java.lang.String identifier)Sets Identifier. An Identifier is a string that user can use to identify
the PersistenceManagerFacory in a given environment. Identifier can be
particularly useful in an environment where multiple
PersistenceManagerFacories are initialized in a system.
|
public void | setIgnoreCache(boolean flag)Sets the flag that allows the user to request that queries be optimized to return
approximate results by ignoring changed values in the cache.
|
public void | setMaxPool(int MaxPool)Sets maximum number of PersistenceManager instances in the pool
|
public void | setMinPool(int MinPool)Sets minimum number of PersistenceManager instances in the pool
|
public void | setNontransactionalRead(boolean flag)Sets the flag that allows non-transactional instances to be managed in the cache.
|
public void | setOptimistic(boolean flag)Sets the optimistic flag for all PersistenceManagers
|
public void | setQueryTimeout(int timeout)Sets the number of seconds to wait for a query statement
to execute in the datastore associated with this PersistenceManagerFactory.
|
public void | setRequireCopyObjectId(boolean flag)Sets the default value of the requireCopyObjectId flag.
If set to false, by default a PersistenceManager will not create a copy of
an ObjectId for PersistenceManager.getObjectId(Object pc)
and PersistenceManager.getObjectById(Object oid) requests.
|
public void | setRequireTrackedSCO(boolean flag)Sets the requireTrackedSCO flag for this PersistenceManagerFactory.
If set to false, by default the PersistenceManager will not create tracked
SCO instances for new persistent instances at commit with retainValues set to true
and while retrieving data from a datastore.
|
public void | setRetainValues(boolean flag)Sets flag that will not cause the eviction of persistent instances after transaction completion.
|
public void | setSupersedeDeletedInstance(boolean flag)Sets the supersedeDeletedInstance flag for all PersistenceManagers.
|
public void | setUpdateTimeout(int timeout)Sets the number of seconds to wait for an update statement
to execute in the datastore associated with this PersistenceManagerFactory.
|