public class PersistenceManagerFactoryImpl extends Object implements PersistenceManagerFactory
| Constructor and Description |
|---|
PersistenceManagerFactoryImpl()
Creates new
PersistenceManagerFactoryImpl without any user info |
PersistenceManagerFactoryImpl(String URL,
String userName,
char[] password,
String driverName)
Creates new
PersistenceManagerFactoryImpl with user info |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines whether obj is a PersistenceManagerFactoryImpl 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 extra info
|
PersistenceManager |
getPersistenceManager(String username,
char[] passwd)
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 PersistenceManagerFactoryImpl.
|
boolean |
getRequireTrackedSCO()
Returns the boolean value of the requireTrackedSCO flag.
|
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.
|
int |
hashCode()
Computes the hash code of this PersistenceManagerFactory.
|
void |
setBooleanProperty(String name,
boolean value)
Sets default value of a known boolean property.
|
void |
setConnectionDriverName(String driverName)
Sets JDBC driver name
|
void |
setConnectionFactory(Object connectionFactory)
Sets ConnectionFactory that can be one of two types:
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 |
setIgnoreCache(String flag)
Sets the IgnoreCache flag for all PersistenceManagers
|
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 |
setNontransactionalRead(String flag)
Sets the NontransactionalRead flag for all PersistenceManagers
|
void |
setOptimistic(boolean flag)
Sets the optimistic flag for all PersistenceManagers
|
void |
setOptimistic(String 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 |
setQueryTimeout(String timeout)
Sets the queryTimeout for all PersistenceManagers
|
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 |
setRetainValues(String flag)
Sets the RetainValues flag for all PersistenceManagers
|
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 |
setUpdateTimeout(String timeout)
Sets the updateTimeout for all PersistenceManagers
|
public PersistenceManagerFactoryImpl()
PersistenceManagerFactoryImpl without any user infopublic PersistenceManagerFactoryImpl(String URL, String userName, char[] password, String driverName)
PersistenceManagerFactoryImpl with user infoURL - connection URLuserName - database userpassword - database user passworddriverName - driver namepublic void setConnectionUserName(String userName)
setConnectionUserName in interface PersistenceManagerFactoryuserName - database userpublic String getConnectionUserName()
getConnectionUserName in interface PersistenceManagerFactorypublic void setConnectionPassword(char[] password)
setConnectionPassword in interface PersistenceManagerFactorypassword - database 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 - JDBC driver namepublic String getConnectionDriverName()
getConnectionDriverName in interface PersistenceManagerFactorypublic void setConnectionFactory(Object connectionFactory)
setConnectionFactory in interface PersistenceManagerFactoryconnectionFactory - as java.lang.Objectpublic Object getConnectionFactory()
getConnectionFactory 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 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 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 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 setQueryTimeout(String timeout)
timeout - the timout to be setpublic void setQueryTimeout(int timeout)
setQueryTimeout in interface PersistenceManagerFactorytimeout - new timout value in seconds; zero means unlimitedpublic int getQueryTimeout()
getQueryTimeout in interface PersistenceManagerFactorypublic void setUpdateTimeout(String timeout)
timeout - the timout to be setpublic void setUpdateTimeout(int timeout)
setUpdateTimeout in interface PersistenceManagerFactorytimeout - new timout value in seconds; zero means unlimitedpublic int getUpdateTimeout()
getUpdateTimeout 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 setOptimistic(String flag)
flag - String optimistic flagpublic void setOptimistic(boolean flag)
setOptimistic in interface PersistenceManagerFactoryflag - boolean optimistic flagpublic boolean getOptimistic()
getOptimistic in interface PersistenceManagerFactorypublic void setRetainValues(String flag)
flag - String RetainValues flagpublic void setRetainValues(boolean flag)
setRetainValues in interface PersistenceManagerFactoryflag - boolean flag passedpublic boolean getRetainValues()
getRetainValues in interface PersistenceManagerFactorypublic void setNontransactionalRead(String flag)
flag - String NontransactionalRead flagpublic void setNontransactionalRead(boolean flag)
setNontransactionalRead in interface PersistenceManagerFactoryflag - boolean flag passedpublic boolean getNontransactionalRead()
getNontransactionalRead in interface PersistenceManagerFactorypublic void setIgnoreCache(String flag)
flag - String IgnoreCache flagpublic void setIgnoreCache(boolean flag)
setIgnoreCache in interface PersistenceManagerFactoryflag - boolean flag passedpublic boolean getIgnoreCache()
getIgnoreCache in interface PersistenceManagerFactorypublic Properties getProperties()
getProperties in interface PersistenceManagerFactorypublic PersistenceManager getPersistenceManager()
getPersistenceManager 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(String username, char[] passwd)
getPersistenceManager in interface PersistenceManagerFactoryusername - datasource userpasswd - datasource user passwordpublic void setBooleanProperty(String name, boolean value)
name - the name of the property to be set.value - the default boolean value.public boolean equals(Object obj)
Copyright © 2019. All rights reserved.