public class SQLPersistenceManagerFactory extends Object implements PersistenceManagerFactory
| Constructor and Description |
|---|
SQLPersistenceManagerFactory()
Creates new
SQLPersistenceManagerFactory without any user info |
SQLPersistenceManagerFactory(Object connectionFactory)
Creates new
SQLPersistenceManagerFactory with user info |
SQLPersistenceManagerFactory(PersistenceManagerFactory persistenceManagerFactory)
Creates new
SQLPersistenceManagerFactory with user parameters |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines whether obj is a SQLPersistenceManagerFactory with the same configuration
|
String |
getConnectionDriverName()
Returns JDBC driver name
|
Object |
getConnectionFactory()
Returns ConnectionFactory
|
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 specific
info.
|
PersistenceManager |
getPersistenceManager(String username,
char[] password)
Creates new PersistenceManager with specific
username and password.
|
PersistenceManagerFactory |
getPersistenceManagerFactory()
Returns instance of PersistenceManagerFactory
|
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.
|
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.
|
VersionConsistencyCache |
getVersionConsistencyCache()
Creates if necessary, and returns, this PMF's instance of its
VersionConsistencyCache.
|
int |
hashCode()
Computes the hash code of this PersistenceManagerFactory.
|
void |
registerPersistenceManager(PersistenceManager pm,
Transaction t)
Registers PersistenceManager in the transactional cache in
managed environment in case of BMT with JDO Transaction.
|
void |
releasePersistenceManager(PersistenceManager pm,
Transaction t)
Releases closed PersistenceManager that is not in use
|
void |
setConnectionDriverName(String driverName)
Sets JDBC driver name
|
void |
setConnectionFactory(Object cf)
Sets ConnectionFactory
|
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 connection URL
|
void |
setConnectionUserName(String userName)
Sets database user name
|
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.
|
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.
|
public SQLPersistenceManagerFactory()
SQLPersistenceManagerFactory without any user infopublic SQLPersistenceManagerFactory(Object connectionFactory)
SQLPersistenceManagerFactory with user infoconnectionFactory - Connection Factory as java.lang.Objectpublic SQLPersistenceManagerFactory(PersistenceManagerFactory persistenceManagerFactory)
SQLPersistenceManagerFactory with user parameterspersistenceManagerFactory - PersistenceManagerFactory instancepublic void setConnectionUserName(String userName)
setConnectionUserName in interface PersistenceManagerFactoryuserName - user namepublic String getConnectionUserName()
getConnectionUserName in interface PersistenceManagerFactorypublic void setConnectionPassword(char[] password)
setConnectionPassword in interface PersistenceManagerFactorypassword - user passwordpublic void setConnectionURL(String url)
setConnectionURL in interface PersistenceManagerFactoryurl - connection URLpublic String getConnectionURL()
getConnectionURL in interface PersistenceManagerFactorypublic void setConnectionDriverName(String driverName)
setConnectionDriverName in interface PersistenceManagerFactorydriverName - driver namepublic String getConnectionDriverName()
getConnectionDriverName in interface PersistenceManagerFactorypublic void setConnectionFactory(Object cf)
setConnectionFactory in interface PersistenceManagerFactorycf - as java.lang.Objectpublic Object getConnectionFactory()
getConnectionFactory in interface PersistenceManagerFactorypublic void setOptimistic(boolean flag)
setOptimistic in interface PersistenceManagerFactoryflag - boolean optimistic flagpublic boolean getOptimistic()
getOptimistic in interface PersistenceManagerFactorypublic void setRetainValues(boolean flag)
setRetainValues in interface PersistenceManagerFactoryflag - boolean flag passedpublic boolean getRetainValues()
getRetainValues in interface PersistenceManagerFactorypublic void setNontransactionalRead(boolean flag)
setNontransactionalRead in interface PersistenceManagerFactoryflag - boolean flag passedpublic boolean getNontransactionalRead()
getNontransactionalRead in interface PersistenceManagerFactorypublic void setIgnoreCache(boolean flag)
setIgnoreCache in interface PersistenceManagerFactoryflag - boolean flag passedpublic boolean getIgnoreCache()
getIgnoreCache in interface PersistenceManagerFactorypublic void setQueryTimeout(int timeout)
setQueryTimeout in interface PersistenceManagerFactorytimeout - new timout value in seconds; zero means unlimitedpublic int getQueryTimeout()
getQueryTimeout in interface PersistenceManagerFactorypublic void setConnectionMaxPool(int MaxPool)
setConnectionMaxPool in interface PersistenceManagerFactoryMaxPool - maximum number of connectionspublic int getConnectionMaxPool()
getConnectionMaxPool in interface PersistenceManagerFactorypublic void setConnectionMinPool(int MinPool)
setConnectionMinPool in interface PersistenceManagerFactoryMinPool - minimum number of connectionspublic int getConnectionMinPool()
getConnectionMinPool in interface PersistenceManagerFactorypublic void setConnectionMsWait(int MsWait)
setConnectionMsWait in interface PersistenceManagerFactoryMsWait - number in millisecondspublic int getConnectionMsWait()
getConnectionMsWait in interface PersistenceManagerFactorypublic void setConnectionMsInterval(int MsInterval)
setConnectionMsInterval in interface PersistenceManagerFactoryMsInterval - the interval between attempts to get a database
connection, in milliseconds.public int getConnectionMsInterval()
getConnectionMsInterval in interface PersistenceManagerFactorypublic void setConnectionLoginTimeout(int LoginTimeout)
setConnectionLoginTimeout in interface PersistenceManagerFactoryLoginTimeout - wait time in secondspublic int getConnectionLoginTimeout()
getConnectionLoginTimeout in interface PersistenceManagerFactorypublic void setConnectionLogWriter(PrintWriter pw)
setConnectionLogWriter in interface PersistenceManagerFactorypw - LogWriterpublic PrintWriter getConnectionLogWriter()
getConnectionLogWriter in interface PersistenceManagerFactorypublic void setConnectionTransactionIsolation(int level)
setConnectionTransactionIsolation in interface PersistenceManagerFactorylevel - - one of the java.sql.Connection.TRANSACTION_* isolation valuespublic int getConnectionTransactionIsolation()
getConnectionTransactionIsolation in interface PersistenceManagerFactorypublic void setConnectionFactoryName(String connectionFactoryName)
setConnectionFactoryName in interface PersistenceManagerFactoryconnectionFactoryName - ConnectionFactory namepublic String getConnectionFactoryName()
getConnectionFactoryName in interface PersistenceManagerFactorypublic void setIdentifier(String identifier)
setIdentifier in interface PersistenceManagerFactoryidentifier - public String getIdentifier()
getIdentifier in interface PersistenceManagerFactorypublic int getMaxPool()
getMaxPool in interface PersistenceManagerFactorypublic void setMaxPool(int MaxPool)
setMaxPool in interface PersistenceManagerFactoryMaxPool - maximum number of PersistenceManager instancespublic int getMinPool()
getMinPool in interface PersistenceManagerFactorypublic void setMinPool(int MinPool)
setMinPool in interface PersistenceManagerFactoryMinPool - minimum number of PersistenceManager instancespublic void setUpdateTimeout(int timeout)
setUpdateTimeout in interface PersistenceManagerFactorytimeout - new timout value in seconds; zero means unlimitedpublic int getUpdateTimeout()
getUpdateTimeout in interface PersistenceManagerFactorypublic boolean getSupersedeDeletedInstance()
getSupersedeDeletedInstance in interface PersistenceManagerFactorypublic void setSupersedeDeletedInstance(boolean flag)
setSupersedeDeletedInstance in interface PersistenceManagerFactoryflag - boolean supersedeDeletedInstance flagpublic boolean getRequireCopyObjectId()
PersistenceManager.getObjectId(Object pc)
and PersistenceManager.getObjectById(Object oid) requests.getRequireCopyObjectId in interface PersistenceManagerFactoryPersistenceManager.getObjectId(Object pc),
PersistenceManager.getObjectById(Object oid)public void setRequireCopyObjectId(boolean flag)
PersistenceManager.getObjectId(Object pc)
and PersistenceManager.getObjectById(Object oid) requests.setRequireCopyObjectId in interface PersistenceManagerFactoryflag - boolean requireCopyObjectId flagPersistenceManager.getObjectId(Object pc),
PersistenceManager.getObjectById(Object oid)public boolean getRequireTrackedSCO()
getRequireTrackedSCO in interface PersistenceManagerFactorypublic void setRequireTrackedSCO(boolean flag)
setRequireTrackedSCO in interface PersistenceManagerFactoryflag - boolean requireTrackedSCO flagpublic PersistenceManager getPersistenceManager()
getPersistenceManager in interface PersistenceManagerFactoryJDOUserException - if data source info is not setpublic PersistenceManager getPersistenceManager(String username, char[] password)
getPersistenceManager in interface PersistenceManagerFactoryusername - datasource userpassword - datasource user passwordJDOUserException - if data source info is not setpublic Properties getProperties()
getProperties in interface PersistenceManagerFactorypublic PersistenceManagerFactory getPersistenceManagerFactory()
public void registerPersistenceManager(PersistenceManager pm, Transaction t)
public void releasePersistenceManager(PersistenceManager pm, Transaction t)
public boolean equals(Object obj)
public int hashCode()
public VersionConsistencyCache getVersionConsistencyCache()
Copyright © 2019. All rights reserved.