public interface PersistenceManagerFactory extends Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getConnectionDriverName()
Returns JDBC driver name
|
Object |
getConnectionFactory()
Returns Connection Factory object that can be one of
ConnectionFactory or javax.sql.DataSource
|
String |
getConnectionFactoryName()
Returns ConnectionFactory name
|
int |
getConnectionLoginTimeout()
Returns the number of seconds to wait for a new connection to be
established to the data source
|
PrintWriter |
getConnectionLogWriter()
Returns the LogWriter to which messages should be sent
|
int |
getConnectionMaxPool()
Returns maximum number of connections in the connection pool
|
int |
getConnectionMinPool()
Returns minimum number of connections in the connection pool
|
int |
getConnectionMsInterval()
Returns the amount of time, in milliseconds, between the connection
manager's attempts to get a pooled connection.
|
int |
getConnectionMsWait()
Returns the number of milliseconds to wait for an available connection
from the connection pool before throwing an exception
|
int |
getConnectionTransactionIsolation()
Returns current transaction isolation level for connections of this PersistenceManagerFactory.
|
String |
getConnectionURL()
Returns connection URL
|
String |
getConnectionUserName()
Returns database user name
|
String |
getIdentifier()
Gets Identifier.
|
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.
|
int |
getMaxPool()
Returns maximum number of PersistenceManager instances in the pool
|
int |
getMinPool()
Returns minimum number of PersistenceManager instances in the pool
|
boolean |
getNontransactionalRead()
Returns the boolean value for the flag that allows non-transactional instances
to be managed in the cache.
|
boolean |
getOptimistic()
Returns the boolean value of the optimistic flag for all PersistenceManagers
|
PersistenceManager |
getPersistenceManager()
Creates new PersistenceManager without extra info
|
PersistenceManager |
getPersistenceManager(String username,
char[] password)
Creates new PersistenceManager with specific
username and password.
|
Properties |
getProperties()
Returns non-operational properties to be available to the application via a Properties instance.
|
int |
getQueryTimeout()
Gets the number of seconds to wait for a query statement
to execute in the datastore associated with this PersistenceManagerFactory.
|
boolean |
getRequireCopyObjectId()
Returns the default value of the requireCopyObjectId flag
for this PersistenceManagerFactory.
|
boolean |
getRequireTrackedSCO()
Returns the boolean value of the requireTrackedSCO flag
for this PersistenceManagerFactory.
|
boolean |
getRetainValues()
Returns the boolean value for the flag that will not cause the eviction of persistent
instances after transaction completion.
|
boolean |
getSupersedeDeletedInstance()
Returns the boolean value of the supersedeDeletedInstance flag
for all PersistenceManagers.
|
int |
getUpdateTimeout()
Gets the number of seconds to wait for an update statement
to execute in the datastore associated with this PersistenceManagerFactory.
|
void |
setConnectionDriverName(String driverName)
Sets JDBC driver name
|
void |
setConnectionFactory(Object cf)
Sets Connection Factory as ConnectionFactory
or javax.sql.DataSource
|
void |
setConnectionFactoryName(String connectionFactoryName)
Sets ConnectionFactory name
|
void |
setConnectionLoginTimeout(int LoginTimeout)
Sets the number of seconds to wait for a new connection to be
established to the data source
|
void |
setConnectionLogWriter(PrintWriter pw)
Sets the LogWriter to which messages should be sent
|
void |
setConnectionMaxPool(int MaxPool)
Sets maximum number of connections in the connection pool
|
void |
setConnectionMinPool(int MinPool)
Sets minimum number of connections in the connection pool
|
void |
setConnectionMsInterval(int MsInterval)
Sets the amount of time, in milliseconds, between the connection
manager's attempts to get a pooled connection.
|
void |
setConnectionMsWait(int MsWait)
Sets the number of milliseconds to wait for an available connection
from the connection pool before throwing an exception
|
void |
setConnectionPassword(char[] password)
Sets database user password
|
void |
setConnectionTransactionIsolation(int level)
Sets transaction isolation level for all connections of this PersistenceManagerFactory.
|
void |
setConnectionURL(String URL)
Sets JDBC connection URL
|
void |
setConnectionUserName(String userName)
Sets database user
|
void |
setIdentifier(String identifier)
Sets Identifier.
|
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.
|
void |
setMaxPool(int MaxPool)
Sets maximum number of PersistenceManager instances in the pool
|
void |
setMinPool(int MinPool)
Sets minimum number of PersistenceManager instances in the pool
|
void |
setNontransactionalRead(boolean flag)
Sets the flag that allows non-transactional instances to be managed in the cache.
|
void |
setOptimistic(boolean flag)
Sets the optimistic flag for all PersistenceManagers
|
void |
setQueryTimeout(int timeout)
Sets the number of seconds to wait for a query statement
to execute in the datastore associated with this PersistenceManagerFactory.
|
void |
setRequireCopyObjectId(boolean flag)
Sets the default value of the requireCopyObjectId flag.
|
void |
setRequireTrackedSCO(boolean flag)
Sets the requireTrackedSCO flag for this PersistenceManagerFactory.
|
void |
setRetainValues(boolean flag)
Sets flag that will not cause the eviction of persistent instances after transaction completion.
|
void |
setSupersedeDeletedInstance(boolean flag)
Sets the supersedeDeletedInstance flag for all PersistenceManagers.
|
void |
setUpdateTimeout(int timeout)
Sets the number of seconds to wait for an update statement
to execute in the datastore associated with this PersistenceManagerFactory.
|
void setConnectionDriverName(String driverName)
driverName - JDBC driver nameString getConnectionDriverName()
void setConnectionUserName(String userName)
userName - database userString getConnectionUserName()
void setConnectionPassword(char[] password)
password - database user passwordvoid setConnectionMaxPool(int MaxPool)
MaxPool - maximum number of connectionsint getConnectionMaxPool()
void setConnectionMinPool(int MinPool)
MinPool - minimum number of connectionsint getConnectionMinPool()
void setMaxPool(int MaxPool)
MaxPool - maximum number of instancesint getMaxPool()
void setMinPool(int MinPool)
MinPool - minimum number of PersistenceManager instancesint getMinPool()
void setConnectionMsWait(int MsWait)
MsWait - number in millisecondsint getConnectionMsWait()
void setConnectionMsInterval(int MsInterval)
MsInterval - the interval between attempts to get a database
connection, in milliseconds.int getConnectionMsInterval()
void setConnectionLoginTimeout(int LoginTimeout)
LoginTimeout - wait time in secondsint getConnectionLoginTimeout()
void setConnectionURL(String URL)
URL - connection URLString getConnectionURL()
void setConnectionFactory(Object cf)
cf - as java.lang.ObjectObject getConnectionFactory()
void setConnectionLogWriter(PrintWriter pw)
pw - LogWriterPrintWriter getConnectionLogWriter()
void setConnectionTransactionIsolation(int level)
level - - one of the java.sql.Connection.TRANSACTION_* isolation valuesint getConnectionTransactionIsolation()
void setConnectionFactoryName(String connectionFactoryName)
connectionFactoryName - ConnectionFactory nameString getConnectionFactoryName()
void setIdentifier(String identifier)
identifier - String getIdentifier()
PersistenceManager getPersistenceManager()
PersistenceManager getPersistenceManager(String username, char[] password)
username - datasource userpassword - datasource user passwordvoid setOptimistic(boolean flag)
flag - boolean optimistic flagboolean getOptimistic()
void setRetainValues(boolean flag)
flag - boolean flag passedboolean getRetainValues()
void setNontransactionalRead(boolean flag)
flag - boolean flag passedboolean getNontransactionalRead()
void setIgnoreCache(boolean flag)
flag - boolean flag passedboolean getIgnoreCache()
void setQueryTimeout(int timeout)
timeout - new timout value in seconds; zero means unlimitedint getQueryTimeout()
void setUpdateTimeout(int timeout)
timeout - new timout value in seconds; zero means unlimitedint getUpdateTimeout()
Properties getProperties()
boolean getSupersedeDeletedInstance()
void setSupersedeDeletedInstance(boolean flag)
flag - boolean supersedeDeletedInstance flagboolean getRequireCopyObjectId()
PersistenceManager.getObjectId(Object pc)
and PersistenceManager.getObjectById(Object oid) requests.PersistenceManager.getObjectId(Object pc),
PersistenceManager.getObjectById(Object oid)void setRequireCopyObjectId(boolean flag)
PersistenceManager.getObjectId(Object pc)
and PersistenceManager.getObjectById(Object oid) requests.flag - boolean requireCopyObjectId flagPersistenceManager.getObjectId(Object pc),
PersistenceManager.getObjectById(Object oid)boolean getRequireTrackedSCO()
void setRequireTrackedSCO(boolean flag)
flag - boolean requireTrackedSCO flagCopyright © 2017–2020 Eclipse Foundation. All rights reserved.