|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PersistenceManagerFactory
| Method Summary | |
|---|---|
java.lang.String |
getConnectionDriverName()
Returns JDBC driver name |
java.lang.Object |
getConnectionFactory()
Returns Connection Factory object that can be one of ConnectionFactory or javax.sql.DataSource |
java.lang.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 |
java.io.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. |
java.lang.String |
getConnectionURL()
Returns connection URL |
java.lang.String |
getConnectionUserName()
Returns database user name |
java.lang.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(java.lang.String username,
java.lang.String password)
Creates new PersistenceManager with specific username and password. |
java.util.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(java.lang.String driverName)
Sets JDBC driver name |
void |
setConnectionFactory(java.lang.Object cf)
Sets Connection Factory as ConnectionFactory or javax.sql.DataSource |
void |
setConnectionFactoryName(java.lang.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(java.io.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(java.lang.String password)
Sets database user password |
void |
setConnectionTransactionIsolation(int level)
Sets transaction isolation level for all connections of this PersistenceManagerFactory. |
void |
setConnectionURL(java.lang.String URL)
Sets JDBC connection URL |
void |
setConnectionUserName(java.lang.String userName)
Sets database user |
void |
setIdentifier(java.lang.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. |
| Method Detail |
|---|
void setConnectionDriverName(java.lang.String driverName)
driverName - JDBC driver namejava.lang.String getConnectionDriverName()
void setConnectionUserName(java.lang.String userName)
userName - database userjava.lang.String getConnectionUserName()
void setConnectionPassword(java.lang.String 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(java.lang.String URL)
URL - connection URLjava.lang.String getConnectionURL()
void setConnectionFactory(java.lang.Object cf)
cf - as java.lang.Objectjava.lang.Object getConnectionFactory()
void setConnectionLogWriter(java.io.PrintWriter pw)
pw - LogWriterjava.io.PrintWriter getConnectionLogWriter()
void setConnectionTransactionIsolation(int level)
level - - one of the java.sql.Connection.TRANSACTION_* isolation valuesint getConnectionTransactionIsolation()
void setConnectionFactoryName(java.lang.String connectionFactoryName)
connectionFactoryName - ConnectionFactory namejava.lang.String getConnectionFactoryName()
void setIdentifier(java.lang.String identifier)
identifier - java.lang.String getIdentifier()
PersistenceManager getPersistenceManager()
PersistenceManager getPersistenceManager(java.lang.String username,
java.lang.String password)
username - datasource userpassword - datasource user password
void 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()
java.util.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 flag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||