|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.triactive.jdo.PersistenceManagerFactoryImpl
A factory used to obtain PersistenceManager
instances.
Constructor Summary | |
PersistenceManagerFactoryImpl()
Constructs a new PersistenceManagerFactoryImpl. |
|
PersistenceManagerFactoryImpl(java.util.Properties props)
Constructs a new PersistenceManagerFactoryImpl using a set of properties. |
Method Summary | |
void |
close()
|
boolean |
equals(java.lang.Object obj)
|
boolean |
getAutoCreateTables()
Returns whether or not to automatically create any missing database objects (tables, constraints, indexes, etc.). |
java.lang.String |
getConnectionDriverName()
Get the driver name for the data store connection. |
java.lang.Object |
getConnectionFactory()
Get the data store connection factory. |
java.lang.Object |
getConnectionFactory2()
Get the second data store connection factory. |
java.lang.String |
getConnectionFactory2Name()
Get the name for the second data store connection factory. |
java.lang.String |
getConnectionFactoryName()
Get the name for the data store connection factory. |
java.lang.String |
getConnectionURL()
Get the URL for the data store connection. |
java.lang.String |
getConnectionUserName()
Get the user name for the data store connection. |
int |
getFetchSize()
The default JDBC fetch size for all PersistenceManagers obtained from this factory. |
boolean |
getForceConnectionInit()
The ForceConnectionInit setting for all PersistenceManagers obtained from this factory. |
boolean |
getIgnoreCache()
Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getJdbcTrace()
The JDBC trace options for all PersistenceManagers obtained from this factory. |
int |
getMaxPool()
Get the MaxPool setting for the PersistenceManager pool for this factory. |
int |
getMinPool()
Get the MinPool setting for the PersistenceManager pool for this factory. |
int |
getMsWait()
Get the MsWait setting for the PersistenceManager pool for this factory. |
boolean |
getMultithreaded()
Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
javax.sql.DataSource |
getNontransactionalDataSource()
Returns the data source to be used for non-transactional access. |
boolean |
getNontransactionalRead()
Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalWrite()
Get the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
boolean |
getOptimistic()
Get the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager()
Get an instance of PersistenceManager from this factory. |
javax.jdo.PersistenceManager |
getPersistenceManager(java.lang.String userName,
java.lang.String password)
Get an instance of PersistenceManager from this factory. |
static javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory(java.util.Properties props)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties. |
java.util.Properties |
getProperties()
Return non-configurable properties of this PersistenceManagerFactory. |
boolean |
getRestoreValues()
Get the default RestoreValues setting for all PersistenceManager instances obtained from this factory. |
int |
getResultSetType()
The default result set type for all PersistenceManagers obtained from this factory. |
boolean |
getRetainValues()
Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
javax.sql.DataSource |
getTransactionalDataSource()
Returns the data source to be used for transactional access. |
int |
getTransactionIsolation()
The default transaction isolation level for all PersistenceManagers obtained from this factory. |
boolean |
getValidateConstraints()
Returns whether or not to automatically validate the existence of all appropriate foreign key constraints and indexes. |
boolean |
getValidateTables()
Returns whether or not to automatically validate the structure of all database tables to ensure they're compatible with the Java classes. |
int |
hashCode()
|
void |
setAutoCreateTables(boolean flag)
Sets whether or not to automatically create any missing database objects (tables, constraints, indexes, etc.). |
void |
setConnectionDriverName(java.lang.String driverName)
Set the driver name for the data store connection. |
void |
setConnectionFactory(java.lang.Object connectionFactory)
Set the data store connection factory. |
void |
setConnectionFactory2(java.lang.Object connectionFactory2)
Set the second data store connection factory. |
void |
setConnectionFactory2Name(java.lang.String connectionFactory2Name)
Set the name for the second data store connection factory. |
void |
setConnectionFactoryName(java.lang.String connectionFactoryName)
Set the name for the data store connection factory. |
void |
setConnectionPassword(java.lang.String password)
Set the password for the data store connection. |
void |
setConnectionURL(java.lang.String databaseUrl)
Set the URL for the data store connection. |
void |
setConnectionUserName(java.lang.String userName)
Set the user name for the data store connection. |
void |
setFetchSize(int fetchSize)
The default JDBC fetch size for all PersistenceManagers obtained from this factory. |
void |
setForceConnectionInit(boolean flag)
The ForceConnectionInit setting for all PersistenceManagers obtained from this factory. |
void |
setIgnoreCache(boolean flag)
Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
void |
setJdbcTrace(java.lang.String jdbcTrace)
The JDBC trace options for all PersistenceManagers obtained from this factory. |
void |
setMaxPool(int maxPool)
Set the MaxPool setting for the PersistenceManager pool for this factory. |
void |
setMinPool(int minPool)
Set the MinPool setting for the PersistenceManager pool for this factory. |
void |
setMsWait(int msWait)
Set the MsWait setting for the PersistenceManager pool for this factory. |
void |
setMultithreaded(boolean flag)
Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalRead(boolean flag)
Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalWrite(boolean flag)
Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
void |
setOptimistic(boolean flag)
Set the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
void |
setRestoreValues(boolean flag)
Set the default RestoreValues setting for all PersistenceManager instances obtained from this factory. |
void |
setResultSetType(int resultSetType)
The default result set type for all PersistenceManagers obtained from this factory. |
void |
setResultSetType(java.lang.String resultSetTypeName)
The default result set type for all PersistenceManagers obtained from this factory. |
void |
setRetainValues(boolean flag)
Set the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
void |
setTransactionIsolation(int isolationLevel)
The default transaction isolation level for all PersistenceManagers obtained from this factory. |
void |
setTransactionIsolation(java.lang.String isolationLevelName)
The default transaction isolation level for all PersistenceManagers obtained from this factory. |
void |
setValidateConstraints(boolean flag)
Sets whether or not to automatically validate the existence of all appropriate foreign key constraints and indexes. |
void |
setValidateTables(boolean flag)
Sets whether or not to automatically validate the structure of all database tables to ensure they're compatible with the Java classes. |
java.util.Collection |
supportedOptions()
The application can determine from the results of this method which optional features, and which query languages are supported by the JDO implementation. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersistenceManagerFactoryImpl()
public PersistenceManagerFactoryImpl(java.util.Properties props)
props
- configuration properties for the new factoryMethod Detail |
public static javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory(java.util.Properties props)
props
- configuration properties for the new factory
JDOHelper.getPersistenceManagerFactory(java.util.Properties)
public void close()
close
in interface javax.jdo.PersistenceManagerFactory
public boolean equals(java.lang.Object obj)
public int hashCode()
public javax.sql.DataSource getTransactionalDataSource()
public javax.sql.DataSource getNontransactionalDataSource()
public javax.jdo.PersistenceManager getPersistenceManager()
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager
in interface javax.jdo.PersistenceManagerFactory
public javax.jdo.PersistenceManager getPersistenceManager(java.lang.String userName, java.lang.String password)
After the first use of getPersistenceManager, no "set" methods will succeed.
getPersistenceManager
in interface javax.jdo.PersistenceManagerFactory
userName
- the user name for the connectionpassword
- the password for the connection
public java.lang.String getConnectionUserName()
getConnectionUserName
in interface javax.jdo.PersistenceManagerFactory
public void setConnectionUserName(java.lang.String userName)
setConnectionUserName
in interface javax.jdo.PersistenceManagerFactory
userName
- the user name for the data store connection.public void setConnectionPassword(java.lang.String password)
setConnectionPassword
in interface javax.jdo.PersistenceManagerFactory
password
- the password for the data store connection.public java.lang.String getConnectionURL()
getConnectionURL
in interface javax.jdo.PersistenceManagerFactory
public void setConnectionURL(java.lang.String databaseUrl)
setConnectionURL
in interface javax.jdo.PersistenceManagerFactory
databaseUrl
- the URL for the data store connection.public java.lang.String getConnectionDriverName()
getConnectionDriverName
in interface javax.jdo.PersistenceManagerFactory
public void setConnectionDriverName(java.lang.String driverName)
setConnectionDriverName
in interface javax.jdo.PersistenceManagerFactory
driverName
- the driver name for the data store connection.public java.lang.String getConnectionFactoryName()
getConnectionFactoryName
in interface javax.jdo.PersistenceManagerFactory
public void setConnectionFactoryName(java.lang.String connectionFactoryName)
setConnectionFactoryName
in interface javax.jdo.PersistenceManagerFactory
connectionFactoryName
- the name of the data store connection factory.public java.lang.Object getConnectionFactory()
getConnectionFactory
in interface javax.jdo.PersistenceManagerFactory
public void setConnectionFactory(java.lang.Object connectionFactory)
setConnectionFactory
in interface javax.jdo.PersistenceManagerFactory
connectionFactory
- the data store connection factory.public java.lang.String getConnectionFactory2Name()
getConnectionFactory2Name
in interface javax.jdo.PersistenceManagerFactory
public void setConnectionFactory2Name(java.lang.String connectionFactory2Name)
setConnectionFactory2Name
in interface javax.jdo.PersistenceManagerFactory
connectionFactory2Name
- the name of the data store connection factory.public java.lang.Object getConnectionFactory2()
getConnectionFactory2
in interface javax.jdo.PersistenceManagerFactory
public void setConnectionFactory2(java.lang.Object connectionFactory2)
setConnectionFactory2
in interface javax.jdo.PersistenceManagerFactory
connectionFactory2
- the data store connection factory.public boolean getMultithreaded()
getMultithreaded
in interface javax.jdo.PersistenceManagerFactory
public void setMultithreaded(boolean flag)
setMultithreaded
in interface javax.jdo.PersistenceManagerFactory
flag
- the default Multithreaded setting.public boolean getOptimistic()
getOptimistic
in interface javax.jdo.PersistenceManagerFactory
public void setOptimistic(boolean flag)
setOptimistic
in interface javax.jdo.PersistenceManagerFactory
flag
- the default Optimistic setting.public boolean getRetainValues()
getRetainValues
in interface javax.jdo.PersistenceManagerFactory
public void setRetainValues(boolean flag)
setRetainValues
in interface javax.jdo.PersistenceManagerFactory
flag
- the default RetainValues setting.public boolean getRestoreValues()
getRestoreValues
in interface javax.jdo.PersistenceManagerFactory
public void setRestoreValues(boolean flag)
setRestoreValues
in interface javax.jdo.PersistenceManagerFactory
flag
- the default RestoreValues setting.public boolean getNontransactionalRead()
getNontransactionalRead
in interface javax.jdo.PersistenceManagerFactory
public void setNontransactionalRead(boolean flag)
setNontransactionalRead
in interface javax.jdo.PersistenceManagerFactory
flag
- the default NontransactionalRead setting.public boolean getNontransactionalWrite()
getNontransactionalWrite
in interface javax.jdo.PersistenceManagerFactory
public void setNontransactionalWrite(boolean flag)
setNontransactionalWrite
in interface javax.jdo.PersistenceManagerFactory
flag
- the default NontransactionalWrite setting.public boolean getIgnoreCache()
getIgnoreCache
in interface javax.jdo.PersistenceManagerFactory
public void setIgnoreCache(boolean flag)
setIgnoreCache
in interface javax.jdo.PersistenceManagerFactory
flag
- the default IgnoreCache setting.public int getMaxPool()
public void setMaxPool(int maxPool)
maxPool
- the MaxPool setting.public int getMinPool()
public void setMinPool(int minPool)
minPool
- the MinPool setting.public int getMsWait()
public void setMsWait(int msWait)
msWait
- the MsWait setting.public boolean getValidateTables()
SchemaManagementOptions
getValidateTables
in interface SchemaManagementOptions
true
if tables should be validated.public void setValidateTables(boolean flag)
SchemaManagementOptions
setValidateTables
in interface SchemaManagementOptions
flag
- true
if tables should be validated.public boolean getValidateConstraints()
SchemaManagementOptions
getValidateConstraints
in interface SchemaManagementOptions
true
if constraints should be validated.public void setValidateConstraints(boolean flag)
SchemaManagementOptions
setValidateConstraints
in interface SchemaManagementOptions
flag
- true
if constraints should be validated.public boolean getAutoCreateTables()
SchemaManagementOptions
getAutoCreateTables
in interface SchemaManagementOptions
true
if missing objects should be auto-created.public void setAutoCreateTables(boolean flag)
SchemaManagementOptions
setAutoCreateTables
in interface SchemaManagementOptions
flag
- true
if missing objects should be auto-created.public int getTransactionIsolation()
PersistenceManagerFactory
getTransactionIsolation
in interface PersistenceManagerFactory
public void setTransactionIsolation(java.lang.String isolationLevelName)
PersistenceManagerFactory
setTransactionIsolation
in interface PersistenceManagerFactory
isolationLevelName
- One of the values "read uncommitted", "read committed", "repeatable
read", or "serializable". The name is case-insensitive, and spaces
and underscores are equivalent.public void setTransactionIsolation(int isolationLevel)
PersistenceManagerFactory
setTransactionIsolation
in interface PersistenceManagerFactory
isolationLevel
- the default transaction isolation level.public int getResultSetType()
PersistenceManagerFactory
getResultSetType
in interface PersistenceManagerFactory
public void setResultSetType(java.lang.String resultSetTypeName)
PersistenceManagerFactory
setResultSetType
in interface PersistenceManagerFactory
resultSetTypeName
- One of the values "forward only", "scroll insensitive", or "scroll
sensitive". The name is case-insensitive, and spaces and
underscores are equivalent.public void setResultSetType(int resultSetType)
PersistenceManagerFactory
setResultSetType
in interface PersistenceManagerFactory
resultSetType
- the default result set type.public int getFetchSize()
PersistenceManagerFactory
getFetchSize
in interface PersistenceManagerFactory
public void setFetchSize(int fetchSize)
PersistenceManagerFactory
setFetchSize
in interface PersistenceManagerFactory
fetchSize
- The default fetch size. Zero indicates no specific size.public boolean getForceConnectionInit()
PersistenceManagerFactory
getForceConnectionInit
in interface PersistenceManagerFactory
public void setForceConnectionInit(boolean flag)
PersistenceManagerFactory
setForceConnectionInit
in interface PersistenceManagerFactory
flag
- the ForceConnectionInit setting.public java.lang.String getJdbcTrace()
PersistenceManagerFactory
getJdbcTrace
in interface PersistenceManagerFactory
null
if tracing is disabled.PersistenceManagerFactory.setJdbcTrace(java.lang.String)
public void setJdbcTrace(java.lang.String jdbcTrace)
PersistenceManagerFactory
Each trace option is enabled by including its keyword.
Option keyword | Description |
---|---|
LogExecutionTimes | Logs every executed SQL statement and its execution time in milliseconds |
LogExecutionFailures | Logs every SQL statement whose execution throws a SQLException |
LogWarnings | Logs every SQLWarning produced by a Connection, Statement, or ResultSet |
setJdbcTrace
in interface PersistenceManagerFactory
jdbcTrace
- A comma-separated list of trace option keywords, or
null
to disable tracing entirely.InitializedConnectionFactory.setTraceOptions(java.lang.String)
public java.util.Properties getProperties()
getProperties
in interface javax.jdo.PersistenceManagerFactory
public java.util.Collection supportedOptions()
Each supported JDO optional feature is represented by a String with one of the following values. Features supported by TJDO are shown in bold.
javax.jdo.option.TransientTransactional javax.jdo.option.NontransactionalRead javax.jdo.option.NontransactionalWrite javax.jdo.option.RetainValues javax.jdo.option.Optimistic javax.jdo.option.ApplicationIdentity javax.jdo.option.DatastoreIdentity javax.jdo.option.NonDatastoreIdentity javax.jdo.option.ArrayList javax.jdo.option.HashMap javax.jdo.option.Hashtable javax.jdo.option.LinkedList javax.jdo.option.TreeMap javax.jdo.option.TreeSet javax.jdo.option.Vector javax.jdo.option.Map javax.jdo.option.List javax.jdo.option.Array javax.jdo.option.NullCollection javax.jdo.query.JDOQL
In addition, TJDO's direct SQL query language is represented by a String:
javax.jdo.query.TJDOQL
supportedOptions
in interface javax.jdo.PersistenceManagerFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |