|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.lib.conf.ConfigurationImpl
org.apache.openjpa.conf.OpenJPAConfigurationImpl
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl
public class JDBCConfigurationImpl
Default implementation of the JDBCConfiguration
interface.
Field Summary | |
---|---|
org.apache.openjpa.lib.conf.ObjectValue |
connectionDecoratorPlugins
|
org.apache.openjpa.lib.conf.PluginValue |
dbdictionaryPlugin
|
org.apache.openjpa.lib.conf.PluginValue |
driverDataSourcePlugin
|
FetchModeValue |
eagerFetchMode
|
org.apache.openjpa.lib.conf.IntValue |
fetchDirection
|
org.apache.openjpa.lib.conf.ObjectValue |
jdbcListenerPlugins
|
org.apache.openjpa.lib.conf.IntValue |
lrsSize
|
org.apache.openjpa.lib.conf.ObjectValue |
mappingDefaultsPlugin
|
MappingFactoryValue |
mappingFactoryPlugin
|
org.apache.openjpa.lib.conf.IntValue |
resultSetType
|
org.apache.openjpa.lib.conf.StringValue |
schema
|
org.apache.openjpa.lib.conf.ObjectValue |
schemaFactoryPlugin
|
org.apache.openjpa.lib.conf.StringListValue |
schemas
|
org.apache.openjpa.lib.conf.ObjectValue |
sqlFactoryPlugin
|
FetchModeValue |
subclassFetchMode
|
org.apache.openjpa.lib.conf.StringValue |
synchronizeMappings
|
org.apache.openjpa.lib.conf.IntValue |
transactionIsolation
|
org.apache.openjpa.lib.conf.ObjectValue |
updateManagerPlugin
|
Fields inherited from class org.apache.openjpa.conf.OpenJPAConfigurationImpl |
---|
aggregateListenerPlugins, autoClear, autoDetach, brokerFactoryPlugin, brokerPlugin, classResolverPlugin, compatibilityPlugin, connection2DriverName, connection2Password, connection2Properties, connection2URL, connection2UserName, connectionDriverName, connectionFactory, connectionFactory2, connectionFactory2Name, connectionFactory2Properties, connectionFactoryMode, connectionFactoryName, connectionFactoryProperties, connectionPassword, connectionProperties, connectionRetainMode, connectionURL, connectionUserName, dataCacheManagerPlugin, dataCachePlugin, dataCacheTimeout, detachStatePlugin, dynamicDataStructs, fetchBatchSize, fetchGroups, filterListenerPlugins, flushBeforeQueries, ignoreChanges, inverseManagerPlugin, lockManagerPlugin, lockTimeout, managedRuntimePlugin, mapping, maxFetchDepth, metaFactoryPlugin, metaRepository, metaRepositoryPlugin, multithreaded, nontransactionalRead, nontransactionalWrite, optimistic, orphanedKeyPlugin, proxyManagerPlugin, queryCachePlugin, readLockLevel, remoteEventManager, remoteProviderPlugin, restoreState, retainState, retryClassRegistration, savepointManagerPlugin, seqPlugin, transactionMode, writeLockLevel |
Fields inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl |
---|
logFactoryPlugin |
Fields inherited from interface org.apache.openjpa.jdbc.conf.JDBCConfiguration |
---|
LOG_JDBC, LOG_SCHEMA, LOG_SQL |
Fields inherited from interface org.apache.openjpa.conf.OpenJPAConfiguration |
---|
LOG_DATACACHE, LOG_ENHANCE, LOG_METADATA, LOG_QUERY, LOG_RUNTIME, LOG_TOOL, OPTION_DATASTORE_CONNECTION, OPTION_EMBEDDED_COLLECTION_RELATION, OPTION_EMBEDDED_MAP_RELATION, OPTION_EMBEDDED_RELATION, OPTION_ID_APPLICATION, OPTION_ID_DATASTORE, OPTION_INC_FLUSH, OPTION_JDBC_CONNECTION, OPTION_NONTRANS_READ, OPTION_NULL_CONTAINER, OPTION_OPTIMISTIC, OPTION_QUERY_SQL, OPTION_TYPE_ARRAY, OPTION_TYPE_COLLECTION, OPTION_TYPE_MAP, OPTION_VALUE_AUTOASSIGN, OPTION_VALUE_INCREMENT |
Fields inherited from interface org.apache.openjpa.lib.conf.Configuration |
---|
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_INTERFACE, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE, ATTRIBUTE_XML |
Fields inherited from interface java.beans.BeanInfo |
---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Constructor Summary | |
---|---|
JDBCConfigurationImpl()
Default constructor. |
|
JDBCConfigurationImpl(boolean loadDefaults)
Constructor. |
|
JDBCConfigurationImpl(boolean derivations,
boolean loadDefaults)
Constructor. |
|
JDBCConfigurationImpl(JDBCConfiguration conf)
Copy constructor |
Method Summary | |
---|---|
void |
close()
Free the data sources. |
org.apache.openjpa.lib.jdbc.ConnectionDecorator[] |
getConnectionDecoratorInstances()
The ConnectionDecorator s to use. |
java.lang.String |
getConnectionDecorators()
A comma-separated list of the ConnectionDecorator for adding
functionality to JDBC connections. |
java.lang.Object |
getConnectionFactory()
|
java.lang.Object |
getConnectionFactory2()
|
javax.sql.DataSource |
getDataSource(org.apache.openjpa.kernel.StoreContext ctx)
Return the primary data source to use. |
javax.sql.DataSource |
getDataSource2(org.apache.openjpa.kernel.StoreContext ctx)
Return the non-enlisted data source to use. |
java.lang.String |
getDBDictionary()
The DBDictionary to use to define the RDBMS SQL information. |
DBDictionary |
getDBDictionaryInstance()
The DBDictionary to use. |
java.lang.String |
getDriverDataSource()
The DriverDataSource to use for creating a DataSource
from a JDBC Driver . |
java.lang.String |
getEagerFetchMode()
Specifies the default eager fetch mode to use. |
int |
getEagerFetchModeConstant()
Return the eager fetch mode as one of the following symbolic constants: EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
|
java.lang.String |
getFetchDirection()
The JDBC fetch direction. |
int |
getFetchDirectionConstant()
Return the result set constant for the fetch direction. |
org.apache.openjpa.lib.jdbc.JDBCListener[] |
getJDBCListenerInstances()
The JDBCListener s to use. |
java.lang.String |
getJDBCListeners()
A comma-separated list of the JDBCListener plugins for
listening to JDBCEvent s. |
java.lang.String |
getLRSSize()
How to obtain the size of large result sets. |
int |
getLRSSizeConstant()
Return the LRSSizes constant for the large result set size
setting. |
java.lang.String |
getMappingDefaults()
A plugin string describing the MappingDefaults to use. |
MappingDefaults |
getMappingDefaultsInstance()
The MappingDefaults to use with a repository. |
java.lang.String |
getMappingFactory()
A plugin string describing the MetaDataFactory to use for
loading and storing object-relational mapping data. |
MappingRepository |
getMappingRepositoryInstance()
Return the mapping repository. |
java.lang.String |
getResultSetType()
The JDBC result set type. |
int |
getResultSetTypeConstant()
Return the result set constant for the result set type. |
java.lang.String |
getSchema()
Default schema for unqualified tables. |
java.lang.String |
getSchemaFactory()
The plugin string for the SchemaFactory to use to provide
schema information during system initialization. |
SchemaFactory |
getSchemaFactoryInstance()
The SchemaFactory to use for schema information. |
java.lang.String |
getSchemas()
Comma-separated list of modifiable schemas for persistent instances. |
java.lang.String[] |
getSchemasList()
Modificable schema components. |
java.lang.String |
getSQLFactory()
The SQL factory to use for SQL constructs. |
SQLFactory |
getSQLFactoryInstance()
The SQL factory to use for SQL constructs. |
java.lang.String |
getSubclassFetchMode()
Specifies the default subclass fetch mode to use. |
int |
getSubclassFetchModeConstant()
Return the subclass fetch mode as one of the following symbolic constants: EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
|
java.lang.String |
getSynchronizeMappings()
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema. |
java.lang.String |
getTransactionIsolation()
The transaction isolation level to use at the database level. |
int |
getTransactionIsolationConstant()
Return the proper transaction isolation level constant from Connection , or -1 for the default level. |
java.lang.String |
getUpdateManager()
The UpdateManager to use for managing SQL updates. |
UpdateManager |
getUpdateManagerInstance()
The UpdateManager for runtime data store interaction. |
protected boolean |
isInvalidProperty(java.lang.String propName)
|
org.apache.openjpa.kernel.BrokerImpl |
newBrokerInstance(java.lang.String user,
java.lang.String pass)
|
DriverDataSource |
newDriverDataSourceInstance()
Create an instance of the DriverDataSource to use
for creating a DataSource from a JDBC Driver . |
MappingRepository |
newMappingRepositoryInstance()
Return a new empty mapping repository of the configured type. |
org.apache.openjpa.meta.MetaDataFactory |
newMetaDataFactoryInstance()
|
void |
setConnectionDecorators(org.apache.openjpa.lib.jdbc.ConnectionDecorator[] decorators)
The ConnectionDecorator s to use. |
void |
setConnectionDecorators(java.lang.String connectionDecorators)
A comma-separated list of the ConnectionDecorator for
adding functionality to JDBC connections. |
void |
setConnectionFactory(java.lang.Object factory)
|
void |
setConnectionFactory2(java.lang.Object factory)
|
void |
setDBDictionary(DBDictionary dbdictionary)
The DBDictionary to use. |
void |
setDBDictionary(java.lang.String dbdictionary)
The DBDictionary to use to define the RDBMS SQL information. |
void |
setDriverDataSource(java.lang.String driverDataSource)
The DriverDataSource to use for creating a DataSource
from a JDBC Driver . |
void |
setEagerFetchMode(int eagerFetchMode)
Set the eager fetch mode as one of the following symbolic constants: EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
|
void |
setEagerFetchMode(java.lang.String eagerFetchMode)
Specifies the default eager fetch mode to use. |
void |
setFetchDirection(int fetchDirection)
Set the result set fetch direction constant. |
void |
setFetchDirection(java.lang.String fetchDirection)
The JDBC fetch direction. |
void |
setJDBCListeners(org.apache.openjpa.lib.jdbc.JDBCListener[] listeners)
The JDBCListener s to use. |
void |
setJDBCListeners(java.lang.String jdbcListeners)
A comma-separated list of the JDBCListener plugins for
listening to JDBCEvent s. |
void |
setLRSSize(int lrsSize)
Set the fetch configuration large result set size constant. |
void |
setLRSSize(java.lang.String lrsSize)
How to obtain the size of large result sets. |
void |
setMappingDefaults(MappingDefaults mapping)
The MappingDefaults to use with a repository. |
void |
setMappingDefaults(java.lang.String mapping)
A plugin string describing the MappingDefaults to use. |
void |
setMappingFactory(java.lang.String mapping)
A plugin string describing the MetaDataFactory to use for
loading and storing object-relational mapping data. |
void |
setResultSetType(int resultSetType)
Set the result set constant type. |
void |
setResultSetType(java.lang.String resultSetType)
The JDBC result set type. |
void |
setSchema(java.lang.String schema)
Default schema for unqualified tables. |
void |
setSchemaFactory(SchemaFactory schemaFactory)
The SchemaFactory to use for schema information. |
void |
setSchemaFactory(java.lang.String schemaFactory)
The plugin string for the SchemaFactory to use to provide
schema information during system initialization. |
void |
setSchemas(java.lang.String schemas)
Comma-separated list of modifiable schemas for persistent instances. |
void |
setSchemas(java.lang.String[] schemas)
Modifiable schema components. |
void |
setSQLFactory(SQLFactory sqlFactory)
The SQL factory to use for SQL constructs. |
void |
setSQLFactory(java.lang.String sqlFactory)
The SQL factory to use for SQL constructs. |
void |
setSubclassFetchMode(int subclassFetchMode)
Set the subclass fetch mode as one of the following symbolic constants: EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
|
void |
setSubclassFetchMode(java.lang.String subclassFetchMode)
Specifies the default subclass fetch mode to use. |
void |
setSynchronizeMappings(java.lang.String synchronizeMappings)
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema. |
void |
setTransactionIsolation(int transactionIsolation)
Set the proper transaction isolation level constant from Connection , or -1 for the default level. |
void |
setTransactionIsolation(java.lang.String transactionIsolation)
The transaction isolation level to use at the database level. |
void |
setUpdateManager(java.lang.String updateManager)
The UpdateManager to use for managing SQL updates. |
void |
setUpdateManager(UpdateManager updateManager)
The UpdateManager for runtime data store interaction. |
Methods inherited from class org.apache.openjpa.conf.OpenJPAConfigurationImpl |
---|
getAggregateListenerInstances, getAggregateListeners, getAutoClear, getAutoClearConstant, getAutoDetach, getAutoDetachConstant, getBrokerFactory, getBrokerImpl, getClassResolver, getClassResolverInstance, getCompatibility, getCompatibilityInstance, getConfigurationLog, getConnection2DriverName, getConnection2Password, getConnection2Properties, getConnection2URL, getConnection2UserName, getConnectionDriverName, getConnectionFactory2Name, getConnectionFactory2Properties, getConnectionFactoryMode, getConnectionFactoryName, getConnectionFactoryProperties, getConnectionPassword, getConnectionProperties, getConnectionRetainMode, getConnectionRetainModeConstant, getConnectionURL, getConnectionUserName, getDataCache, getDataCacheManager, getDataCacheManagerInstance, getDataCacheTimeout, getDetachState, getDetachStateInstance, getDynamicDataStructs, getFetchBatchSize, getFetchGroups, getFetchGroupsList, getFilterListenerInstances, getFilterListeners, getFlushBeforeQueries, getFlushBeforeQueriesConstant, getIgnoreChanges, getInverseManager, getLockManager, getLockTimeout, getManagedRuntime, getManagedRuntimeInstance, getMapping, getMaxFetchDepth, getMetaDataFactory, getMetaDataRepository, getMetaDataRepositoryInstance, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getOrphanedKeyAction, getOrphanedKeyActionInstance, getProxyManager, getProxyManagerInstance, getQueryCache, getReadLockLevel, getReadLockLevelConstant, getRemoteCommitEventManager, getRemoteCommitProvider, getRestoreState, getRestoreStateConstant, getRetainState, getRetryClassRegistration, getSavepointManager, getSavepointManagerInstance, getSequence, getSequenceInstance, getSpecification, getStoreFacadeTypeRegistry, getTransactionMode, getWriteLockLevel, getWriteLockLevelConstant, instantiateAll, isConnectionFactoryModeManaged, isTransactionModeManaged, newInverseManagerInstance, newLockManagerInstance, newMetaDataRepositoryInstance, newRemoteCommitProviderInstance, setAggregateListeners, setAggregateListeners, setAutoClear, setAutoClear, setAutoDetach, setAutoDetach, setBrokerFactory, setBrokerImpl, setClassResolver, setClassResolver, setCompatibility, setConnection2DriverName, setConnection2Password, setConnection2Properties, setConnection2URL, setConnection2UserName, setConnectionDriverName, setConnectionFactory2Name, setConnectionFactory2Properties, setConnectionFactoryMode, setConnectionFactoryModeManaged, setConnectionFactoryName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionRetainMode, setConnectionRetainMode, setConnectionURL, setConnectionUserName, setDataCache, setDataCacheManager, setDataCacheManager, setDataCacheTimeout, setDataCacheTimeout, setDetachState, setDetachState, setDynamicDataStructs, setDynamicDataStructs, setFetchBatchSize, setFetchBatchSize, setFetchGroups, setFetchGroups, setFilterListeners, setFilterListeners, setFlushBeforeQueries, setFlushBeforeQueries, setIgnoreChanges, setIgnoreChanges, setInverseManager, setLockManager, setLockTimeout, setLockTimeout, setManagedRuntime, setManagedRuntime, setMapping, setMaxFetchDepth, setMaxFetchDepth, setMetaDataFactory, setMetaDataRepository, setMetaDataRepository, setMultithreaded, setMultithreaded, setNontransactionalRead, setNontransactionalRead, setNontransactionalWrite, setNontransactionalWrite, setOptimistic, setOptimistic, setOrphanedKeyAction, setOrphanedKeyAction, setProxyManager, setProxyManager, setQueryCache, setReadLockLevel, setReadLockLevel, setRemoteCommitEventManager, setRemoteCommitProvider, setRestoreState, setRestoreState, setRetainState, setRetainState, setRetryClassRegistration, setRetryClassRegistration, setSavepointManager, setSequence, setSequence, setSpecification, setTransactionMode, setTransactionModeManaged, setWriteLockLevel, setWriteLockLevel, supportedOptions |
Methods inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl |
---|
addBoolean, addDouble, addFile, addInt, addObject, addPlugin, addPluginList, addPropertyChangeListener, addPropertyPrefix, addString, addStringList, addValue, assertNotReadOnly, clone, equals, fromProperties, getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getLog, getLog, getLogFactory, getMethodDescriptors, getProductName, getPropertyDescriptors, getValue, getValues, hashCode, isReadOnly, loadDefaults, readExternal, removePropertyChangeListener, removeValue, setLog, setLogFactory, setProductName, setProperties, setPropertiesFile, setReadOnly, toProperties, toXMLName, valueChanged, writeExternal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.conf.OpenJPAConfiguration |
---|
getAggregateListenerInstances, getAggregateListeners, getAutoClear, getAutoClearConstant, getAutoDetach, getAutoDetachConstant, getBrokerFactory, getBrokerImpl, getClassResolver, getClassResolverInstance, getCompatibility, getCompatibilityInstance, getConnection2DriverName, getConnection2Password, getConnection2Properties, getConnection2URL, getConnection2UserName, getConnectionDriverName, getConnectionFactory2Name, getConnectionFactory2Properties, getConnectionFactoryMode, getConnectionFactoryName, getConnectionFactoryProperties, getConnectionPassword, getConnectionProperties, getConnectionRetainMode, getConnectionRetainModeConstant, getConnectionURL, getConnectionUserName, getDataCache, getDataCacheManager, getDataCacheManagerInstance, getDataCacheTimeout, getDetachStateInstance, getDynamicDataStructs, getFetchBatchSize, getFetchGroups, getFetchGroupsList, getFilterListenerInstances, getFilterListeners, getFlushBeforeQueries, getFlushBeforeQueriesConstant, getIgnoreChanges, getInverseManager, getLockManager, getLockTimeout, getManagedRuntime, getManagedRuntimeInstance, getMapping, getMaxFetchDepth, getMetaDataFactory, getMetaDataRepository, getMetaDataRepositoryInstance, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getOrphanedKeyAction, getOrphanedKeyActionInstance, getProxyManager, getProxyManagerInstance, getQueryCache, getReadLockLevel, getReadLockLevelConstant, getRemoteCommitEventManager, getRemoteCommitProvider, getRestoreState, getRestoreStateConstant, getRetainState, getRetryClassRegistration, getSavepointManager, getSavepointManagerInstance, getSequence, getSequenceInstance, getSpecification, getStoreFacadeTypeRegistry, getTransactionMode, getWriteLockLevel, getWriteLockLevelConstant, isConnectionFactoryModeManaged, isTransactionModeManaged, newInverseManagerInstance, newLockManagerInstance, newMetaDataRepositoryInstance, newRemoteCommitProviderInstance, setAggregateListeners, setAggregateListeners, setAutoClear, setAutoClear, setAutoDetach, setAutoDetach, setBrokerFactory, setBrokerImpl, setClassResolver, setClassResolver, setCompatibility, setConnection2DriverName, setConnection2Password, setConnection2Properties, setConnection2URL, setConnection2UserName, setConnectionDriverName, setConnectionFactory2Name, setConnectionFactory2Properties, setConnectionFactoryMode, setConnectionFactoryModeManaged, setConnectionFactoryName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionRetainMode, setConnectionRetainMode, setConnectionURL, setConnectionUserName, setDataCache, setDataCacheManager, setDataCacheManager, setDataCacheTimeout, setDataCacheTimeout, setDetachState, setDetachState, setDynamicDataStructs, setDynamicDataStructs, setFetchBatchSize, setFetchBatchSize, setFetchGroups, setFetchGroups, setFilterListeners, setFilterListeners, setFlushBeforeQueries, setFlushBeforeQueries, setIgnoreChanges, setIgnoreChanges, setInverseManager, setLockManager, setLockTimeout, setLockTimeout, setManagedRuntime, setManagedRuntime, setMapping, setMaxFetchDepth, setMaxFetchDepth, setMetaDataFactory, setMetaDataRepository, setMetaDataRepository, setMultithreaded, setMultithreaded, setNontransactionalRead, setNontransactionalRead, setNontransactionalWrite, setNontransactionalWrite, setOptimistic, setOptimistic, setOrphanedKeyAction, setOrphanedKeyAction, setProxyManager, setProxyManager, setQueryCache, setReadLockLevel, setReadLockLevel, setRemoteCommitEventManager, setRemoteCommitProvider, setRestoreState, setRestoreState, setRetainState, setRetainState, setRetryClassRegistration, setRetryClassRegistration, setSavepointManager, setSequence, setSequence, setSpecification, setTransactionMode, setTransactionModeManaged, setWriteLockLevel, setWriteLockLevel, supportedOptions |
Methods inherited from interface org.apache.openjpa.lib.conf.Configuration |
---|
addPropertyChangeListener, addPropertyPrefix, addValue, clone, fromProperties, getConfigurationLog, getLog, getLog, getLogFactory, getProductName, getValue, getValues, instantiateAll, isReadOnly, removePropertyChangeListener, removeValue, setLog, setLogFactory, setProductName, setReadOnly, toProperties |
Methods inherited from interface java.beans.BeanInfo |
---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
Field Detail |
---|
public org.apache.openjpa.lib.conf.StringValue schema
public org.apache.openjpa.lib.conf.StringListValue schemas
public org.apache.openjpa.lib.conf.IntValue transactionIsolation
public org.apache.openjpa.lib.conf.IntValue resultSetType
public org.apache.openjpa.lib.conf.IntValue fetchDirection
public FetchModeValue eagerFetchMode
public FetchModeValue subclassFetchMode
public org.apache.openjpa.lib.conf.IntValue lrsSize
public org.apache.openjpa.lib.conf.StringValue synchronizeMappings
public org.apache.openjpa.lib.conf.ObjectValue jdbcListenerPlugins
public org.apache.openjpa.lib.conf.ObjectValue connectionDecoratorPlugins
public org.apache.openjpa.lib.conf.PluginValue dbdictionaryPlugin
public org.apache.openjpa.lib.conf.ObjectValue updateManagerPlugin
public org.apache.openjpa.lib.conf.ObjectValue schemaFactoryPlugin
public org.apache.openjpa.lib.conf.ObjectValue sqlFactoryPlugin
public org.apache.openjpa.lib.conf.ObjectValue mappingDefaultsPlugin
public org.apache.openjpa.lib.conf.PluginValue driverDataSourcePlugin
public MappingFactoryValue mappingFactoryPlugin
Constructor Detail |
---|
public JDBCConfigurationImpl()
public JDBCConfigurationImpl(boolean loadDefaults)
loadDefaults
- whether to attempt to load the default
org.apache.openjpa.properties
resourcepublic JDBCConfigurationImpl(boolean derivations, boolean loadDefaults)
derivations
- whether to apply product derivationsloadDefaults
- whether to attempt to load the default propertiespublic JDBCConfigurationImpl(JDBCConfiguration conf)
Method Detail |
---|
public void setSchema(java.lang.String schema)
JDBCConfiguration
setSchema
in interface JDBCConfiguration
public java.lang.String getSchema()
JDBCConfiguration
getSchema
in interface JDBCConfiguration
public void setSchemas(java.lang.String schemas)
JDBCConfiguration
setSchemas
in interface JDBCConfiguration
public java.lang.String getSchemas()
JDBCConfiguration
getSchemas
in interface JDBCConfiguration
public void setSchemas(java.lang.String[] schemas)
JDBCConfiguration
setSchemas
in interface JDBCConfiguration
public java.lang.String[] getSchemasList()
JDBCConfiguration
getSchemasList
in interface JDBCConfiguration
public void setTransactionIsolation(java.lang.String transactionIsolation)
JDBCConfiguration
default
: The JDBC driver's default isolation level.none
: The standard JDBC
Connection.TRANSACTION_NONE
level.read-committed
: The standard JDBC
Connection.TRANSACTION_READ_COMMITTED
level.read-uncommitted
: The standard JDBC
Connection.TRANSACTION_READ_UNCOMMITTED
level.repeatable-read
: The standard JDBC
Connection.TRANSACTION_REPEATABLE_READ
level.serializable
: The standard JDBC
Connection.TRANSACTION_SERIALIZABLE
level.
setTransactionIsolation
in interface JDBCConfiguration
public java.lang.String getTransactionIsolation()
JDBCConfiguration
default
: The JDBC driver's default isolation level.none
: The standard JDBC
Connection.TRANSACTION_NONE
level.read-committed
: The standard JDBC
Connection.TRANSACTION_READ_COMMITTED
level.read-uncommitted
: The standard JDBC
Connection.TRANSACTION_READ_UNCOMMITTED
level.repeatable-read
: The standard JDBC
Connection.TRANSACTION_REPEATABLE_READ
level.serializable
: The standard JDBC
Connection.TRANSACTION_SERIALIZABLE
level.
getTransactionIsolation
in interface JDBCConfiguration
public void setTransactionIsolation(int transactionIsolation)
JDBCConfiguration
Connection
, or -1 for the default level.
setTransactionIsolation
in interface JDBCConfiguration
public int getTransactionIsolationConstant()
JDBCConfiguration
Connection
, or -1 for the default level.
getTransactionIsolationConstant
in interface JDBCConfiguration
public void setResultSetType(java.lang.String resultSetType)
JDBCConfiguration
forward-only
.
forward-only
: The standard JDBC
ResultSet.TYPE_FORWARD_ONLY
type.scroll-sensitive
: The standard JDBC
ResultSet.TYPE_SCROLL_SENSITIVE
type.scroll-insensitive
: The standard JDBC
ResultSet.TYPE_SCROLL_INSENSITIVE
type.
setResultSetType
in interface JDBCConfiguration
public java.lang.String getResultSetType()
JDBCConfiguration
forward-only
.
forward-only
: The standard JDBC
ResultSet.TYPE_FORWARD_ONLY
type.scroll-sensitive
: The standard JDBC
ResultSet.TYPE_SCROLL_SENSITIVE
type.scroll-insensitive
: The standard JDBC
ResultSet.TYPE_SCROLL_INSENSITIVE
type.
getResultSetType
in interface JDBCConfiguration
public void setResultSetType(int resultSetType)
JDBCConfiguration
setResultSetType
in interface JDBCConfiguration
public int getResultSetTypeConstant()
JDBCConfiguration
getResultSetTypeConstant
in interface JDBCConfiguration
public void setFetchDirection(java.lang.String fetchDirection)
JDBCConfiguration
forward
.
forward
: The standard JDBC
ResultSet.FETCH_FORWARD
direction.reverse
: The standard JDBC
ResultSet.FETCH_REVERSE
direction.unknown
: The standard JDBC
ResultSet.FETCH_UNKNOWN
direction.
setFetchDirection
in interface JDBCConfiguration
public java.lang.String getFetchDirection()
JDBCConfiguration
forward
.
forward
: The standard JDBC
ResultSet.FETCH_FORWARD
direction.reverse
: The standard JDBC
ResultSet.FETCH_REVERSE
direction.unknown
: The standard JDBC
ResultSet.FETCH_UNKNOWN
direction.
getFetchDirection
in interface JDBCConfiguration
public void setFetchDirection(int fetchDirection)
JDBCConfiguration
setFetchDirection
in interface JDBCConfiguration
public int getFetchDirectionConstant()
JDBCConfiguration
getFetchDirectionConstant
in interface JDBCConfiguration
public void setEagerFetchMode(java.lang.String eagerFetchMode)
JDBCConfiguration
parallel
unless the query is by-oid. Possible values are:
none
: When querying for an object, do not try to
select for related objects at the same time.join
: When querying for objects, also select for
1-1 relations in the configured fetch groups using joins.parallel
: When querying for objects, also select for
both 1-1 relations using joins and to-many relations using batched
selects.
setEagerFetchMode
in interface JDBCConfiguration
public java.lang.String getEagerFetchMode()
JDBCConfiguration
parallel
unless the query is by-oid. Possible values are:
none
: When querying for an object, do not try to
select for related objects at the same time.join
: When querying for objects, also select for
1-1 relations in the configured fetch groups using joins.parallel
: When querying for objects, also select for
both 1-1 relations using joins and to-many relations using batched
selects.
getEagerFetchMode
in interface JDBCConfiguration
public void setEagerFetchMode(int eagerFetchMode)
JDBCConfiguration
setEagerFetchMode
in interface JDBCConfiguration
public int getEagerFetchModeConstant()
JDBCConfiguration
getEagerFetchModeConstant
in interface JDBCConfiguration
public void setSubclassFetchMode(java.lang.String subclassFetchMode)
JDBCConfiguration
join
unless the query is by-oid. Possible values are:
none
: Only select base class data.join
: Select both base class and all possible subclass
data using joins.parallel
: Select for each possible subclass
separately.
setSubclassFetchMode
in interface JDBCConfiguration
public java.lang.String getSubclassFetchMode()
JDBCConfiguration
join
unless the query is by-oid. Possible values are:
none
: Only select base class data.join
: Select both base class and all possible subclass
data using joins.parallel
: Select for each possible subclass
separately.
getSubclassFetchMode
in interface JDBCConfiguration
public void setSubclassFetchMode(int subclassFetchMode)
JDBCConfiguration
setSubclassFetchMode
in interface JDBCConfiguration
public int getSubclassFetchModeConstant()
JDBCConfiguration
getSubclassFetchModeConstant
in interface JDBCConfiguration
public void setLRSSize(java.lang.String lrsSize)
JDBCConfiguration
unknown
.
unknown
: Do not attempt to calculate the size of
large result sets; return Integer.MAX_VALUE
.last
: For result sets that support random access,
calculate the size using ResultSet.last()
.query
: Use a separate COUNT query to calculate the
size of the results.
setLRSSize
in interface JDBCConfiguration
public java.lang.String getLRSSize()
JDBCConfiguration
unknown
.
unknown
: Do not attempt to calculate the size of
large result sets; return Integer.MAX_VALUE
.last
: For result sets that support random access,
calculate the size using ResultSet.last()
.query
: Use a separate COUNT query to calculate the
size of the results.
getLRSSize
in interface JDBCConfiguration
public void setLRSSize(int lrsSize)
JDBCConfiguration
setLRSSize
in interface JDBCConfiguration
public int getLRSSizeConstant()
JDBCConfiguration
LRSSizes
constant for the large result set size
setting.
getLRSSizeConstant
in interface JDBCConfiguration
public void setSynchronizeMappings(java.lang.String synchronizeMappings)
JDBCConfiguration
setSynchronizeMappings
in interface JDBCConfiguration
public java.lang.String getSynchronizeMappings()
JDBCConfiguration
getSynchronizeMappings
in interface JDBCConfiguration
public void setJDBCListeners(java.lang.String jdbcListeners)
JDBCConfiguration
JDBCListener
plugins for
listening to JDBCEvent
s.
setJDBCListeners
in interface JDBCConfiguration
public java.lang.String getJDBCListeners()
JDBCConfiguration
JDBCListener
plugins for
listening to JDBCEvent
s.
getJDBCListeners
in interface JDBCConfiguration
public void setJDBCListeners(org.apache.openjpa.lib.jdbc.JDBCListener[] listeners)
JDBCConfiguration
JDBCListener
s to use.
setJDBCListeners
in interface JDBCConfiguration
public org.apache.openjpa.lib.jdbc.JDBCListener[] getJDBCListenerInstances()
JDBCConfiguration
JDBCListener
s to use.
getJDBCListenerInstances
in interface JDBCConfiguration
public void setConnectionDecorators(java.lang.String connectionDecorators)
JDBCConfiguration
ConnectionDecorator
for
adding functionality to JDBC connections.
setConnectionDecorators
in interface JDBCConfiguration
public java.lang.String getConnectionDecorators()
JDBCConfiguration
ConnectionDecorator
for adding
functionality to JDBC connections.
getConnectionDecorators
in interface JDBCConfiguration
public void setConnectionDecorators(org.apache.openjpa.lib.jdbc.ConnectionDecorator[] decorators)
JDBCConfiguration
ConnectionDecorator
s to use.
setConnectionDecorators
in interface JDBCConfiguration
public org.apache.openjpa.lib.jdbc.ConnectionDecorator[] getConnectionDecoratorInstances()
JDBCConfiguration
ConnectionDecorator
s to use.
getConnectionDecoratorInstances
in interface JDBCConfiguration
public void setDBDictionary(java.lang.String dbdictionary)
JDBCConfiguration
DBDictionary
to use to define the RDBMS SQL information.
setDBDictionary
in interface JDBCConfiguration
public java.lang.String getDBDictionary()
JDBCConfiguration
DBDictionary
to use to define the RDBMS SQL information.
getDBDictionary
in interface JDBCConfiguration
public void setDBDictionary(DBDictionary dbdictionary)
JDBCConfiguration
DBDictionary
to use.
setDBDictionary
in interface JDBCConfiguration
public DBDictionary getDBDictionaryInstance()
JDBCConfiguration
DBDictionary
to use.
getDBDictionaryInstance
in interface JDBCConfiguration
public void setUpdateManager(java.lang.String updateManager)
JDBCConfiguration
UpdateManager
to use for managing SQL updates.
setUpdateManager
in interface JDBCConfiguration
public java.lang.String getUpdateManager()
JDBCConfiguration
UpdateManager
to use for managing SQL updates.
getUpdateManager
in interface JDBCConfiguration
public void setUpdateManager(UpdateManager updateManager)
JDBCConfiguration
UpdateManager
for runtime data store interaction.
setUpdateManager
in interface JDBCConfiguration
public UpdateManager getUpdateManagerInstance()
JDBCConfiguration
UpdateManager
for runtime data store interaction.
getUpdateManagerInstance
in interface JDBCConfiguration
public void setDriverDataSource(java.lang.String driverDataSource)
JDBCConfiguration
DriverDataSource
to use for creating a DataSource
from a JDBC Driver
.
setDriverDataSource
in interface JDBCConfiguration
public java.lang.String getDriverDataSource()
JDBCConfiguration
DriverDataSource
to use for creating a DataSource
from a JDBC Driver
.
getDriverDataSource
in interface JDBCConfiguration
public DriverDataSource newDriverDataSourceInstance()
JDBCConfiguration
DriverDataSource
to use
for creating a DataSource
from a JDBC Driver
.
newDriverDataSourceInstance
in interface JDBCConfiguration
public void setSchemaFactory(java.lang.String schemaFactory)
JDBCConfiguration
SchemaFactory
to use to provide
schema information during system initialization.
setSchemaFactory
in interface JDBCConfiguration
public java.lang.String getSchemaFactory()
JDBCConfiguration
SchemaFactory
to use to provide
schema information during system initialization.
getSchemaFactory
in interface JDBCConfiguration
public void setSchemaFactory(SchemaFactory schemaFactory)
JDBCConfiguration
SchemaFactory
to use for schema information.
setSchemaFactory
in interface JDBCConfiguration
public SchemaFactory getSchemaFactoryInstance()
JDBCConfiguration
SchemaFactory
to use for schema information.
getSchemaFactoryInstance
in interface JDBCConfiguration
public void setSQLFactory(java.lang.String sqlFactory)
JDBCConfiguration
setSQLFactory
in interface JDBCConfiguration
public java.lang.String getSQLFactory()
JDBCConfiguration
getSQLFactory
in interface JDBCConfiguration
public void setSQLFactory(SQLFactory sqlFactory)
JDBCConfiguration
setSQLFactory
in interface JDBCConfiguration
public SQLFactory getSQLFactoryInstance()
JDBCConfiguration
getSQLFactoryInstance
in interface JDBCConfiguration
public java.lang.String getMappingFactory()
JDBCConfiguration
MetaDataFactory
to use for
loading and storing object-relational mapping data.
getMappingFactory
in interface JDBCConfiguration
public void setMappingFactory(java.lang.String mapping)
JDBCConfiguration
MetaDataFactory
to use for
loading and storing object-relational mapping data.
setMappingFactory
in interface JDBCConfiguration
public org.apache.openjpa.meta.MetaDataFactory newMetaDataFactoryInstance()
newMetaDataFactoryInstance
in interface org.apache.openjpa.conf.OpenJPAConfiguration
newMetaDataFactoryInstance
in class org.apache.openjpa.conf.OpenJPAConfigurationImpl
public void setMappingDefaults(java.lang.String mapping)
JDBCConfiguration
MappingDefaults
to use.
setMappingDefaults
in interface JDBCConfiguration
public java.lang.String getMappingDefaults()
JDBCConfiguration
MappingDefaults
to use.
getMappingDefaults
in interface JDBCConfiguration
public void setMappingDefaults(MappingDefaults mapping)
JDBCConfiguration
MappingDefaults
to use with a repository.
setMappingDefaults
in interface JDBCConfiguration
public MappingDefaults getMappingDefaultsInstance()
JDBCConfiguration
MappingDefaults
to use with a repository.
getMappingDefaultsInstance
in interface JDBCConfiguration
public MappingRepository getMappingRepositoryInstance()
JDBCConfiguration
getMappingRepositoryInstance
in interface JDBCConfiguration
public MappingRepository newMappingRepositoryInstance()
JDBCConfiguration
newMappingRepositoryInstance
in interface JDBCConfiguration
public org.apache.openjpa.kernel.BrokerImpl newBrokerInstance(java.lang.String user, java.lang.String pass)
newBrokerInstance
in interface org.apache.openjpa.conf.OpenJPAConfiguration
newBrokerInstance
in class org.apache.openjpa.conf.OpenJPAConfigurationImpl
public java.lang.Object getConnectionFactory()
getConnectionFactory
in interface org.apache.openjpa.conf.OpenJPAConfiguration
getConnectionFactory
in class org.apache.openjpa.conf.OpenJPAConfigurationImpl
public void setConnectionFactory(java.lang.Object factory)
setConnectionFactory
in interface org.apache.openjpa.conf.OpenJPAConfiguration
setConnectionFactory
in class org.apache.openjpa.conf.OpenJPAConfigurationImpl
public java.lang.Object getConnectionFactory2()
getConnectionFactory2
in interface org.apache.openjpa.conf.OpenJPAConfiguration
getConnectionFactory2
in class org.apache.openjpa.conf.OpenJPAConfigurationImpl
public void setConnectionFactory2(java.lang.Object factory)
setConnectionFactory2
in interface org.apache.openjpa.conf.OpenJPAConfiguration
setConnectionFactory2
in class org.apache.openjpa.conf.OpenJPAConfigurationImpl
public javax.sql.DataSource getDataSource(org.apache.openjpa.kernel.StoreContext ctx)
JDBCConfiguration
DataSource.getConnection()
. If the given context is null, the
data source will use the configuration's default connection user name
and password. If those too are null and the first context has been
obtained already, then the user name and password for that context
will be used, as we know they represent a valid combination. This
method avoids casting the result of
OpenJPAConfiguration.getConnectionFactory()
, and avoids having to
pass in the user name and password to obtain connections.
getDataSource
in interface JDBCConfiguration
public javax.sql.DataSource getDataSource2(org.apache.openjpa.kernel.StoreContext ctx)
JDBCConfiguration
DataSource.getConnection()
will be the specificed connection 2
user name and password. If those are null and the given context is
non-null, its user name password will be used instead. If the context
is null too, then the user name and password used to retrieve the first
context will be used. If there is no second connection factory the
primary connection factory is used.
getDataSource2
in interface JDBCConfiguration
JDBCConfiguration.getDataSource(org.apache.openjpa.kernel.StoreContext)
public void close()
close
in interface org.apache.openjpa.lib.conf.Configuration
close
in interface org.apache.openjpa.lib.util.Closeable
close
in class org.apache.openjpa.conf.OpenJPAConfigurationImpl
protected boolean isInvalidProperty(java.lang.String propName)
isInvalidProperty
in class org.apache.openjpa.lib.conf.ConfigurationImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |