Package org.apache.openjpa.jdbc.conf
Class JDBCConfigurationImpl
java.lang.Object
org.apache.openjpa.lib.conf.ConfigurationImpl
org.apache.openjpa.conf.OpenJPAConfigurationImpl
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl
- All Implemented Interfaces:
BeanInfo
,Externalizable
,Serializable
,Cloneable
,OpenJPAConfiguration
,JDBCConfiguration
,Configuration
,ValueListener
,Closeable
- Direct Known Subclasses:
DistributedJDBCConfigurationImpl
Default implementation of the
JDBCConfiguration
interface.- Author:
- Marc Prud'hommeaux, Abe White
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class org.apache.openjpa.conf.OpenJPAConfigurationImpl
aggregateListenerPlugins, auditorPlugin, autoClear, autoDetach, brokerFactoryPlugin, brokerPlugin, cacheDistributionPolicyPlugin, cacheMarshallerPlugins, callbackPlugin, classResolverPlugin, compatibilityPlugin, connection2DriverName, connection2Password, connection2Properties, connection2URL, connection2UserName, connectionDriverName, connectionFactory, connectionFactory2, connectionFactory2Name, connectionFactory2Properties, connectionFactoryMode, connectionFactoryName, connectionFactoryProperties, connectionPassword, connectionProperties, connectionRetainMode, connectionURL, connectionUserName, createScriptSource, createScriptTarget, createSource, databaseAction, dataCacheManagerPlugin, dataCacheMode, dataCachePlugin, dataCacheTimeout, detachStatePlugin, dropScriptSource, dropScriptTarget, dropSource, dynamicDataStructs, dynamicEnhancementAgent, eagerInitialization, encryptionProvider, fetchBatchSize, fetchGroups, filterListenerPlugins, finderCachePlugin, flushBeforeQueries, ignoreChanges, instrumentationManager, instrumentationProviders, inverseManagerPlugin, lifecycleEventManager, loadScriptSource, lockManagerPlugin, lockTimeout, managedRuntimePlugin, mapping, maxFetchDepth, metaFactoryPlugin, metaRepository, metaRepositoryPlugin, multithreaded, nontransactionalRead, nontransactionalWrite, optimistic, optimizeIdCopy, orphanedKeyPlugin, postLoadOnMerge, preparedQueryCachePlugin, proxyManagerPlugin, queryCachePlugin, queryCompilationCachePlugin, queryTimeout, readLockLevel, refreshFromDataCache, remoteEventManager, remoteProviderPlugin, restoreState, retainState, retryClassRegistration, runtimeUnenhancedClasses, savepointManagerPlugin, scriptsAction, seqPlugin, specification, transactionMode, typesWithoutEnhancement, useTcclForSelectNew, validationFactory, validationGroupPrePersist, validationGroupPreRemove, validationGroupPreUpdate, validationMode, validator, writeLockLevel
Fields inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl
id, logFactoryPlugin
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
Fields inherited from interface org.apache.openjpa.lib.conf.Configuration
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_INTERFACE, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE, ATTRIBUTE_XML, INIT_STATE_FREEZING, INIT_STATE_FROZEN, INIT_STATE_LIQUID
Fields inherited from interface org.apache.openjpa.jdbc.conf.JDBCConfiguration
LOG_DIAG, 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_POSTLOAD_ON_MERGE, OPTION_QUERY_SQL, OPTION_TYPE_ARRAY, OPTION_TYPE_COLLECTION, OPTION_TYPE_MAP, OPTION_USE_TCCL_IN_SELECT_NEW, OPTION_VALUE_AUTOASSIGN, OPTION_VALUE_INCREMENT
-
Constructor Summary
ConstructorDescriptionDefault constructor.JDBCConfigurationImpl
(boolean loadGlobals) Constructor.JDBCConfigurationImpl
(boolean derivations, boolean loadGlobals) Constructor.Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionCreate the connection factory if necessary.TheConnectionDecorator
s to use.A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.The connection factory, possibly from JNDI.The non-XA connection factory.Return the primary data source to use.Return the non-enlisted data source to use.TheDBDictionary
to use to define the RDBMS SQL information.TheDBDictionary
to use.Specifies the default eager fetch mode to use.int
Return the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
The JDBC fetch direction.int
Return the result set constant for the fetch direction.Gets the String constant that matches theIdentifierUtil
Gets theDBIdentifierUtil
TheJDBCListener
s to use.A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.How to obtain the size of large result sets.int
Return theLRSSizes
constant for the large result set size setting.A plugin string describing theMappingDefaults
to use.TheMappingDefaults
to use with a repository.A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data.Return the mapping repository.The JDBC result set type.int
Return the result set constant for the result set type.Default schema for unqualified tables.The plugin string for theSchemaFactory
to use to provide schema information during system initialization.TheSchemaFactory
to use for schema information.Comma-separated list of modifiable schemas for persistent instances.String[]
Modificable schema components.The SQL factory to use for SQL constructs.The SQL factory to use for SQL constructs.Specifies the default subclass fetch mode to use.int
Return the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.The transaction isolation level to use at the database level.int
Return the proper transaction isolation level constant fromConnection
, or -1 for the default level.TheUpdateManager
to use for managing SQL updates.TheUpdateManager
for runtime data store interaction.protected boolean
isInvalidProperty
(String propName) Returns true if the specified property name should raise a warning if it is not found in the list of known properties.newBrokerInstance
(String user, String pass) Create a new broker instance with the configured plugin data.Return a new empty mapping repository of the configured type.Create a newMetaDataFactory
to use with a repository.protected void
preClose()
Free the data sources.void
setConnectionDecorators
(String connectionDecorators) A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.void
setConnectionDecorators
(ConnectionDecorator[] decorators) TheConnectionDecorator
s to use.void
setConnectionFactory
(Object factory) The connection factory.void
setConnectionFactory2
(Object factory) The non-XA connection factory.void
setDBDictionary
(String dbdictionary) TheDBDictionary
to use to define the RDBMS SQL information.void
setDBDictionary
(DBDictionary dbdictionary) TheDBDictionary
to use.void
setDriverDataSource
(String driverDataSource) 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
(String eagerFetchMode) Specifies the default eager fetch mode to use.void
setFetchDirection
(int fetchDirection) Set the result set fetch direction constant.void
setFetchDirection
(String fetchDirection) The JDBC fetch direction.void
Sets theDBIdentifierUtil
void
setJDBCListeners
(String jdbcListeners) A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.void
setJDBCListeners
(JDBCListener[] listeners) TheJDBCListener
s to use.void
setLRSSize
(int lrsSize) Set the fetch configuration large result set size constant.void
setLRSSize
(String lrsSize) How to obtain the size of large result sets.void
setMappingDefaults
(String mapping) A plugin string describing theMappingDefaults
to use.void
setMappingDefaults
(MappingDefaults mapping) TheMappingDefaults
to use with a repository.void
setMappingFactory
(String mapping) A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data.void
setResultSetType
(int resultSetType) Set the result set constant type.void
setResultSetType
(String resultSetType) The JDBC result set type.void
Default schema for unqualified tables.void
setSchemaFactory
(String schemaFactory) The plugin string for theSchemaFactory
to use to provide schema information during system initialization.void
setSchemaFactory
(SchemaFactory schemaFactory) TheSchemaFactory
to use for schema information.void
setSchemas
(String schemas) Comma-separated list of modifiable schemas for persistent instances.void
setSchemas
(String[] schemas) Modifiable schema components.void
setSQLFactory
(String sqlFactory) The SQL factory to use for SQL constructs.void
setSQLFactory
(SQLFactory 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
(String subclassFetchMode) Specifies the default subclass fetch mode to use.void
setSynchronizeMappings
(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 fromConnection
, or -1 for the default level.void
setTransactionIsolation
(String transactionIsolation) The transaction isolation level to use at the database level.void
setUpdateManager
(String updateManager) TheUpdateManager
to use for managing SQL updates.void
setUpdateManager
(UpdateManager updateManager) TheUpdateManager
for runtime data store interaction.Methods inherited from class org.apache.openjpa.conf.OpenJPAConfigurationImpl
getAggregateListenerInstances, getAggregateListeners, getAuditor, getAuditorInstance, getAutoClear, getAutoClearConstant, getAutoDetach, getAutoDetachConstant, getBrokerFactory, getBrokerFactoryEventManager, getBrokerImpl, getCacheDistributionPolicy, getCacheDistributionPolicyInstance, getCacheMarshallerInstances, getCacheMarshallers, getCallbackOptions, getCallbackOptionsInstance, getClassResolver, getClassResolverInstance, getCompatibility, getCompatibilityInstance, getConfigurationLog, getConnection2DriverName, getConnection2Password, getConnection2Properties, getConnection2URL, getConnection2UserName, getConnectionDriverName, getConnectionFactory2Name, getConnectionFactory2Properties, getConnectionFactoryMode, getConnectionFactoryName, getConnectionFactoryProperties, getConnectionPassword, getConnectionProperties, getConnectionRetainMode, getConnectionRetainModeConstant, getConnectionURL, getConnectionUserName, getCreateScriptSource, getCreateScriptTarget, getCreateSource, getCreateSourceConstant, getDatabaseAction, getDatabaseActionConstant, getDataCache, getDataCacheManager, getDataCacheManagerInstance, getDataCacheMode, getDataCacheTimeout, getDetachState, getDetachStateInstance, getDropScriptSource, getDropScriptTarget, getDropSource, getDropSourceConstant, getDynamicDataStructs, getDynamicEnhancementAgent, getEncryptionProvider, getFetchBatchSize, getFetchGroups, getFetchGroupsList, getFilterListenerInstances, getFilterListeners, getFinderCache, getFinderCacheInstance, getFlushBeforeQueries, getFlushBeforeQueriesConstant, getIgnoreChanges, getInstrumentation, getInstrumentationInstances, getInstrumentationManager, getInstrumentationManagerInstance, getInverseManager, getLifecycleEventManager, getLifecycleEventManagerInstance, getLoadScriptSource, getLockManager, getLockTimeout, getManagedRuntime, getManagedRuntimeInstance, getMapping, getMaxFetchDepth, getMetaDataFactory, getMetaDataRepository, getMetaDataRepositoryInstance, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getOptimizeIdCopy, getOrphanedKeyAction, getOrphanedKeyActionInstance, getPersistenceEnvironment, getPostLoadOnMerge, getProxyManager, getProxyManagerInstance, getQueryCache, getQueryCompilationCache, getQueryCompilationCacheInstance, getQuerySQLCache, getQuerySQLCacheInstance, getQueryTimeout, getReadLockLevel, getReadLockLevelConstant, getRefreshFromDataCache, getRemoteCommitEventManager, getRemoteCommitProvider, getRestoreState, getRestoreStateConstant, getRetainState, getRetryClassRegistration, getRuntimeUnenhancedClasses, getRuntimeUnenhancedClassesConstant, getSavepointManager, getSavepointManagerInstance, getScriptsAction, getScriptsActionConstant, getSequence, getSequenceInstance, getSpecification, getSpecificationInstance, getStoreFacadeTypeRegistry, getTransactionMode, getTypesWithoutEnhancement, getUseTCCLinSelectNew, getValidationFactoryInstance, getValidationGroupPrePersist, getValidationGroupPreRemove, getValidationGroupPreUpdate, getValidationMode, getValidatorInstance, getWriteLockLevel, getWriteLockLevelConstant, instantiateAll, isConnectionFactoryModeManaged, isInitializeEagerly, isTransactionModeManaged, metaDataRepositoryAvailable, newInverseManagerInstance, newLockManagerInstance, newMetaDataRepositoryInstance, newRemoteCommitProviderInstance, setAggregateListeners, setAggregateListeners, setAuditor, setAuditorInstance, setAutoClear, setAutoClear, setAutoDetach, setAutoDetach, setBrokerFactory, setBrokerImpl, setCacheDistributionPolicy, setCacheDistributionPolicyInstance, setCacheMarshallers, setCallbackOptions, setClassResolver, setClassResolver, setCompatibility, setConnection2DriverName, setConnection2Password, setConnection2Properties, setConnection2URL, setConnection2UserName, setConnectionDriverName, setConnectionFactory2Name, setConnectionFactory2Properties, setConnectionFactoryMode, setConnectionFactoryModeManaged, setConnectionFactoryName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionRetainMode, setConnectionRetainMode, setConnectionURL, setConnectionUserName, setDataCache, setDataCacheManager, setDataCacheManager, setDataCacheMode, setDataCacheTimeout, setDataCacheTimeout, setDetachState, setDetachState, setDynamicDataStructs, setDynamicDataStructs, setDynamicEnhancementAgent, setEncryptionProvider, setFetchBatchSize, setFetchBatchSize, setFetchGroups, setFetchGroups, setFilterListeners, setFilterListeners, setFinderCache, setFlushBeforeQueries, setFlushBeforeQueries, setIgnoreChanges, setIgnoreChanges, setInitializeEagerly, setInstrumentation, setInstrumentationManager, setInstrumentationManager, setInverseManager, setLifecycleEventManager, setLockManager, setLockTimeout, setLockTimeout, setManagedRuntime, setManagedRuntime, setMapping, setMaxFetchDepth, setMaxFetchDepth, setMetaDataFactory, setMetaDataRepository, setMetaDataRepository, setMultithreaded, setMultithreaded, setNontransactionalRead, setNontransactionalRead, setNontransactionalWrite, setNontransactionalWrite, setOptimistic, setOptimistic, setOptimizeIdCopy, setOptimizeIdCopy, setOrphanedKeyAction, setOrphanedKeyAction, setPersistenceEnvironment, setPostLoadOnMerge, setPostLoadOnMerge, setProxyManager, setProxyManager, setQueryCache, setQueryCompilationCache, setQuerySQLCache, setQuerySQLCache, setQueryTimeout, setReadLockLevel, setReadLockLevel, setRefreshFromDataCache, setRefreshFromDataCache, setRemoteCommitEventManager, setRemoteCommitProvider, setRestoreState, setRestoreState, setRetainState, setRetainState, setRetryClassRegistration, setRetryClassRegistration, setRuntimeUnenhancedClasses, setRuntimeUnenhancedClasses, setSavepointManager, setSequence, setSequence, setSpecification, setSpecification, setTransactionMode, setTransactionModeManaged, setTypesWithoutEnhancement, setUseTCCLinSelectNew, setUseTCCLinSelectNew, setValidationFactory, setValidationGroupPrePersist, setValidationGroupPreRemove, setValidationGroupPreUpdate, setValidationMode, setValidatorInstance, setWriteLockLevel, setWriteLockLevel, supportedOptions
Methods inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl
addBoolean, addDouble, addFile, addInt, addObject, addPlugin, addPluginList, addPropertyChangeListener, addString, addStringList, addValue, clone, close, equals, fromProperties, getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getId, getLog, getLog, getLogFactory, getMethodDescriptors, getProductName, getPropertiesResource, getPropertyDescriptors, getPropertyKeys, getPropertyKeys, getUserClassLoader, getValue, getValues, hashCode, isDeferResourceLoading, isReadOnly, loadGlobals, readExternal, removePropertyChangeListener, removeValue, setDeferResourceLoading, setId, setLog, setLogFactory, setProductName, setProperties, setPropertiesFile, setReadOnly, setUserClassLoader, toProperties, toXMLName, valueChanged, writeExternal
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.beans.BeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors
Methods inherited from interface org.apache.openjpa.lib.conf.Configuration
addPropertyChangeListener, addValue, clone, close, fromProperties, getConfigurationLog, getId, getLog, getLog, getLogFactory, getProductName, getPropertyKeys, getPropertyKeys, getUserClassLoader, getValue, getValues, instantiateAll, isReadOnly, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setReadOnly, setUserClassLoader, toProperties
Methods inherited from interface org.apache.openjpa.conf.OpenJPAConfiguration
getAggregateListenerInstances, getAggregateListeners, getAuditor, getAuditorInstance, getAutoClear, getAutoClearConstant, getAutoDetach, getAutoDetachConstant, getBrokerFactory, getBrokerFactoryEventManager, getBrokerImpl, getCacheDistributionPolicy, getCacheDistributionPolicyInstance, getCacheMarshallerInstances, getCacheMarshallers, getCallbackOptions, getCallbackOptionsInstance, getClassResolver, getClassResolverInstance, getCompatibility, getCompatibilityInstance, getConnection2DriverName, getConnection2Password, getConnection2Properties, getConnection2URL, getConnection2UserName, getConnectionDriverName, getConnectionFactory2Name, getConnectionFactory2Properties, getConnectionFactoryMode, getConnectionFactoryName, getConnectionFactoryProperties, getConnectionPassword, getConnectionProperties, getConnectionRetainMode, getConnectionRetainModeConstant, getConnectionURL, getConnectionUserName, getCreateScriptSource, getCreateScriptTarget, getCreateSource, getCreateSourceConstant, getDatabaseAction, getDatabaseActionConstant, getDataCache, getDataCacheManager, getDataCacheManagerInstance, getDataCacheMode, getDataCacheTimeout, getDetachStateInstance, getDropScriptSource, getDropScriptTarget, getDropSource, getDropSourceConstant, getDynamicDataStructs, getDynamicEnhancementAgent, getEncryptionProvider, getFetchBatchSize, getFetchGroups, getFetchGroupsList, getFilterListenerInstances, getFilterListeners, getFinderCache, getFinderCacheInstance, getFlushBeforeQueries, getFlushBeforeQueriesConstant, getIgnoreChanges, getInstrumentation, getInstrumentationManagerInstance, getInverseManager, getLifecycleEventManager, getLifecycleEventManagerInstance, getLoadScriptSource, getLockManager, getLockTimeout, getManagedRuntime, getManagedRuntimeInstance, getMapping, getMaxFetchDepth, getMetaDataFactory, getMetaDataRepository, getMetaDataRepositoryInstance, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getOptimizeIdCopy, getOrphanedKeyAction, getOrphanedKeyActionInstance, getPostLoadOnMerge, getProxyManager, getProxyManagerInstance, getQueryCache, getQueryCompilationCache, getQueryCompilationCacheInstance, getQuerySQLCache, getQuerySQLCacheInstance, getQueryTimeout, getReadLockLevel, getReadLockLevelConstant, getRefreshFromDataCache, getRemoteCommitEventManager, getRemoteCommitProvider, getRestoreState, getRestoreStateConstant, getRetainState, getRetryClassRegistration, getRuntimeUnenhancedClasses, getRuntimeUnenhancedClassesConstant, getSavepointManager, getSavepointManagerInstance, getScriptsAction, getScriptsActionConstant, getSequence, getSequenceInstance, getSpecification, getSpecificationInstance, getStoreFacadeTypeRegistry, getTransactionMode, getTypesWithoutEnhancement, getUseTCCLinSelectNew, getValidationFactoryInstance, getValidationGroupPrePersist, getValidationGroupPreRemove, getValidationGroupPreUpdate, getValidationMode, getValidatorInstance, getWriteLockLevel, getWriteLockLevelConstant, isConnectionFactoryModeManaged, isInitializeEagerly, isTransactionModeManaged, metaDataRepositoryAvailable, newInverseManagerInstance, newLockManagerInstance, newMetaDataRepositoryInstance, newRemoteCommitProviderInstance, setAggregateListeners, setAggregateListeners, setAuditor, setAuditorInstance, setAutoClear, setAutoClear, setAutoDetach, setAutoDetach, setBrokerFactory, setBrokerImpl, setCacheDistributionPolicy, setCacheDistributionPolicyInstance, setCacheMarshallers, setCallbackOptions, setClassResolver, setClassResolver, setCompatibility, setConnection2DriverName, setConnection2Password, setConnection2Properties, setConnection2URL, setConnection2UserName, setConnectionDriverName, setConnectionFactory2Name, setConnectionFactory2Properties, setConnectionFactoryMode, setConnectionFactoryModeManaged, setConnectionFactoryName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionRetainMode, setConnectionRetainMode, setConnectionURL, setConnectionUserName, setDataCache, setDataCacheManager, setDataCacheManager, setDataCacheMode, setDataCacheTimeout, setDataCacheTimeout, setDetachState, setDetachState, setDynamicDataStructs, setDynamicDataStructs, setDynamicEnhancementAgent, setEncryptionProvider, setFetchBatchSize, setFetchBatchSize, setFetchGroups, setFetchGroups, setFilterListeners, setFilterListeners, setFinderCache, setFlushBeforeQueries, setFlushBeforeQueries, setIgnoreChanges, setIgnoreChanges, setInitializeEagerly, setInstrumentation, setInverseManager, setLifecycleEventManager, setLockManager, setLockTimeout, setLockTimeout, setManagedRuntime, setManagedRuntime, setMapping, setMaxFetchDepth, setMaxFetchDepth, setMetaDataFactory, setMetaDataRepository, setMetaDataRepository, setMultithreaded, setMultithreaded, setNontransactionalRead, setNontransactionalRead, setNontransactionalWrite, setNontransactionalWrite, setOptimistic, setOptimistic, setOptimizeIdCopy, setOptimizeIdCopy, setOrphanedKeyAction, setOrphanedKeyAction, setPostLoadOnMerge, setPostLoadOnMerge, setProxyManager, setProxyManager, setQueryCache, setQueryCompilationCache, setQuerySQLCache, setQuerySQLCache, setQueryTimeout, setReadLockLevel, setReadLockLevel, setRefreshFromDataCache, setRefreshFromDataCache, setRemoteCommitEventManager, setRemoteCommitProvider, setRestoreState, setRestoreState, setRetainState, setRetainState, setRetryClassRegistration, setRetryClassRegistration, setRuntimeUnenhancedClasses, setRuntimeUnenhancedClasses, setSavepointManager, setSequence, setSequence, setSpecification, setSpecification, setTransactionMode, setTransactionModeManaged, setTypesWithoutEnhancement, setUseTCCLinSelectNew, setUseTCCLinSelectNew, setValidationFactory, setValidationGroupPrePersist, setValidationGroupPreRemove, setValidationGroupPreUpdate, setValidationMode, setValidatorInstance, setWriteLockLevel, setWriteLockLevel, supportedOptions
-
Field Details
-
schema
-
schemas
-
transactionIsolation
-
resultSetType
-
fetchDirection
-
eagerFetchMode
-
subclassFetchMode
-
lrsSize
-
synchronizeMappings
-
jdbcListenerPlugins
-
connectionDecoratorPlugins
-
dbdictionaryPlugin
-
updateManagerPlugin
-
schemaFactoryPlugin
-
sqlFactoryPlugin
-
mappingDefaultsPlugin
-
driverDataSourcePlugin
-
mappingFactoryPlugin
-
identifierUtilPlugin
-
-
Constructor Details
-
JDBCConfigurationImpl
public JDBCConfigurationImpl()Default constructor. Attempts to load default properties. -
JDBCConfigurationImpl
public JDBCConfigurationImpl(boolean loadGlobals) Constructor.- Parameters:
loadGlobals
- whether to attempt to load the global properties
-
JDBCConfigurationImpl
public JDBCConfigurationImpl(boolean derivations, boolean loadGlobals) Constructor.- Parameters:
derivations
- whether to apply product derivationsloadGlobals
- whether to attempt to load the global properties
-
JDBCConfigurationImpl
Copy constructor
-
-
Method Details
-
setSchema
Description copied from interface:JDBCConfiguration
Default schema for unqualified tables.- Specified by:
setSchema
in interfaceJDBCConfiguration
-
getSchema
Description copied from interface:JDBCConfiguration
Default schema for unqualified tables.- Specified by:
getSchema
in interfaceJDBCConfiguration
-
setSchemas
Description copied from interface:JDBCConfiguration
Comma-separated list of modifiable schemas for persistent instances.- Specified by:
setSchemas
in interfaceJDBCConfiguration
-
getSchemas
Description copied from interface:JDBCConfiguration
Comma-separated list of modifiable schemas for persistent instances.- Specified by:
getSchemas
in interfaceJDBCConfiguration
-
setSchemas
Description copied from interface:JDBCConfiguration
Modifiable schema components.- Specified by:
setSchemas
in interfaceJDBCConfiguration
-
getSchemasList
Description copied from interface:JDBCConfiguration
Modificable schema components.- Specified by:
getSchemasList
in interfaceJDBCConfiguration
-
setTransactionIsolation
Description copied from interface:JDBCConfiguration
The transaction isolation level to use at the database level. Possible values are:default
: The JDBC driver's default isolation level.none
: The standard JDBCConnection.TRANSACTION_NONE
level.read-committed
: The standard JDBCConnection.TRANSACTION_READ_COMMITTED
level.read-uncommitted
: The standard JDBCConnection.TRANSACTION_READ_UNCOMMITTED
level.repeatable-read
: The standard JDBCConnection.TRANSACTION_REPEATABLE_READ
level.serializable
: The standard JDBCConnection.TRANSACTION_SERIALIZABLE
level.
- Specified by:
setTransactionIsolation
in interfaceJDBCConfiguration
-
getTransactionIsolation
Description copied from interface:JDBCConfiguration
The transaction isolation level to use at the database level. Possible values are:default
: The JDBC driver's default isolation level.none
: The standard JDBCConnection.TRANSACTION_NONE
level.read-committed
: The standard JDBCConnection.TRANSACTION_READ_COMMITTED
level.read-uncommitted
: The standard JDBCConnection.TRANSACTION_READ_UNCOMMITTED
level.repeatable-read
: The standard JDBCConnection.TRANSACTION_REPEATABLE_READ
level.serializable
: The standard JDBCConnection.TRANSACTION_SERIALIZABLE
level.
- Specified by:
getTransactionIsolation
in interfaceJDBCConfiguration
-
setTransactionIsolation
public void setTransactionIsolation(int transactionIsolation) Description copied from interface:JDBCConfiguration
Set the proper transaction isolation level constant fromConnection
, or -1 for the default level.- Specified by:
setTransactionIsolation
in interfaceJDBCConfiguration
-
getTransactionIsolationConstant
public int getTransactionIsolationConstant()Description copied from interface:JDBCConfiguration
Return the proper transaction isolation level constant fromConnection
, or -1 for the default level.- Specified by:
getTransactionIsolationConstant
in interfaceJDBCConfiguration
-
setResultSetType
Description copied from interface:JDBCConfiguration
The JDBC result set type. Defaults toforward-only
.forward-only
: The standard JDBCResultSet.TYPE_FORWARD_ONLY
type.scroll-sensitive
: The standard JDBCResultSet.TYPE_SCROLL_SENSITIVE
type.scroll-insensitive
: The standard JDBCResultSet.TYPE_SCROLL_INSENSITIVE
type.
- Specified by:
setResultSetType
in interfaceJDBCConfiguration
-
getResultSetType
Description copied from interface:JDBCConfiguration
The JDBC result set type. Defaults toforward-only
.forward-only
: The standard JDBCResultSet.TYPE_FORWARD_ONLY
type.scroll-sensitive
: The standard JDBCResultSet.TYPE_SCROLL_SENSITIVE
type.scroll-insensitive
: The standard JDBCResultSet.TYPE_SCROLL_INSENSITIVE
type.
- Specified by:
getResultSetType
in interfaceJDBCConfiguration
-
setResultSetType
public void setResultSetType(int resultSetType) Description copied from interface:JDBCConfiguration
Set the result set constant type.- Specified by:
setResultSetType
in interfaceJDBCConfiguration
-
getResultSetTypeConstant
public int getResultSetTypeConstant()Description copied from interface:JDBCConfiguration
Return the result set constant for the result set type.- Specified by:
getResultSetTypeConstant
in interfaceJDBCConfiguration
-
setFetchDirection
Description copied from interface:JDBCConfiguration
The JDBC fetch direction. Defaults toforward
.forward
: The standard JDBCResultSet.FETCH_FORWARD
direction.reverse
: The standard JDBCResultSet.FETCH_REVERSE
direction.unknown
: The standard JDBCResultSet.FETCH_UNKNOWN
direction.
- Specified by:
setFetchDirection
in interfaceJDBCConfiguration
-
getFetchDirection
Description copied from interface:JDBCConfiguration
The JDBC fetch direction. Defaults toforward
.forward
: The standard JDBCResultSet.FETCH_FORWARD
direction.reverse
: The standard JDBCResultSet.FETCH_REVERSE
direction.unknown
: The standard JDBCResultSet.FETCH_UNKNOWN
direction.
- Specified by:
getFetchDirection
in interfaceJDBCConfiguration
-
setFetchDirection
public void setFetchDirection(int fetchDirection) Description copied from interface:JDBCConfiguration
Set the result set fetch direction constant.- Specified by:
setFetchDirection
in interfaceJDBCConfiguration
-
getFetchDirectionConstant
public int getFetchDirectionConstant()Description copied from interface:JDBCConfiguration
Return the result set constant for the fetch direction.- Specified by:
getFetchDirectionConstant
in interfaceJDBCConfiguration
-
setEagerFetchMode
Description copied from interface:JDBCConfiguration
Specifies the default eager fetch mode to use. Defaults toparallel
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.
- Specified by:
setEagerFetchMode
in interfaceJDBCConfiguration
-
getEagerFetchMode
Description copied from interface:JDBCConfiguration
Specifies the default eager fetch mode to use. Defaults toparallel
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.
- Specified by:
getEagerFetchMode
in interfaceJDBCConfiguration
-
setEagerFetchMode
public void setEagerFetchMode(int eagerFetchMode) Description copied from interface:JDBCConfiguration
Set the eager fetch mode as one of the following symbolic constants:- Specified by:
setEagerFetchMode
in interfaceJDBCConfiguration
-
getEagerFetchModeConstant
public int getEagerFetchModeConstant()Description copied from interface:JDBCConfiguration
Return the eager fetch mode as one of the following symbolic constants:- Specified by:
getEagerFetchModeConstant
in interfaceJDBCConfiguration
-
setSubclassFetchMode
Description copied from interface:JDBCConfiguration
Specifies the default subclass fetch mode to use. Defaults tojoin
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.
- Specified by:
setSubclassFetchMode
in interfaceJDBCConfiguration
-
getSubclassFetchMode
Description copied from interface:JDBCConfiguration
Specifies the default subclass fetch mode to use. Defaults tojoin
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.
- Specified by:
getSubclassFetchMode
in interfaceJDBCConfiguration
-
setSubclassFetchMode
public void setSubclassFetchMode(int subclassFetchMode) Description copied from interface:JDBCConfiguration
Set the subclass fetch mode as one of the following symbolic constants:- Specified by:
setSubclassFetchMode
in interfaceJDBCConfiguration
-
getSubclassFetchModeConstant
public int getSubclassFetchModeConstant()Description copied from interface:JDBCConfiguration
Return the subclass fetch mode as one of the following symbolic constants:- Specified by:
getSubclassFetchModeConstant
in interfaceJDBCConfiguration
-
setLRSSize
Description copied from interface:JDBCConfiguration
How to obtain the size of large result sets. Defaults tounknown
.unknown
: Do not attempt to calculate the size of large result sets; returnInteger.MAX_VALUE
.last
: For result sets that support random access, calculate the size usingResultSet.last()
.query
: Use a separate COUNT query to calculate the size of the results.
- Specified by:
setLRSSize
in interfaceJDBCConfiguration
-
getLRSSize
Description copied from interface:JDBCConfiguration
How to obtain the size of large result sets. Defaults tounknown
.unknown
: Do not attempt to calculate the size of large result sets; returnInteger.MAX_VALUE
.last
: For result sets that support random access, calculate the size usingResultSet.last()
.query
: Use a separate COUNT query to calculate the size of the results.
- Specified by:
getLRSSize
in interfaceJDBCConfiguration
-
setLRSSize
public void setLRSSize(int lrsSize) Description copied from interface:JDBCConfiguration
Set the fetch configuration large result set size constant.- Specified by:
setLRSSize
in interfaceJDBCConfiguration
-
getLRSSizeConstant
public int getLRSSizeConstant()Description copied from interface:JDBCConfiguration
Return theLRSSizes
constant for the large result set size setting.- Specified by:
getLRSSizeConstant
in interfaceJDBCConfiguration
-
setSynchronizeMappings
Description copied from interface:JDBCConfiguration
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.- Specified by:
setSynchronizeMappings
in interfaceJDBCConfiguration
-
getSynchronizeMappings
Description copied from interface:JDBCConfiguration
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.- Specified by:
getSynchronizeMappings
in interfaceJDBCConfiguration
-
setJDBCListeners
Description copied from interface:JDBCConfiguration
A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.- Specified by:
setJDBCListeners
in interfaceJDBCConfiguration
-
getJDBCListeners
Description copied from interface:JDBCConfiguration
A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.- Specified by:
getJDBCListeners
in interfaceJDBCConfiguration
-
setJDBCListeners
Description copied from interface:JDBCConfiguration
TheJDBCListener
s to use.- Specified by:
setJDBCListeners
in interfaceJDBCConfiguration
-
getJDBCListenerInstances
Description copied from interface:JDBCConfiguration
TheJDBCListener
s to use.- Specified by:
getJDBCListenerInstances
in interfaceJDBCConfiguration
-
setConnectionDecorators
Description copied from interface:JDBCConfiguration
A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.- Specified by:
setConnectionDecorators
in interfaceJDBCConfiguration
-
getConnectionDecorators
Description copied from interface:JDBCConfiguration
A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.- Specified by:
getConnectionDecorators
in interfaceJDBCConfiguration
-
setConnectionDecorators
Description copied from interface:JDBCConfiguration
TheConnectionDecorator
s to use.- Specified by:
setConnectionDecorators
in interfaceJDBCConfiguration
-
getConnectionDecoratorInstances
Description copied from interface:JDBCConfiguration
TheConnectionDecorator
s to use.- Specified by:
getConnectionDecoratorInstances
in interfaceJDBCConfiguration
-
setDBDictionary
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use to define the RDBMS SQL information.- Specified by:
setDBDictionary
in interfaceJDBCConfiguration
-
getDBDictionary
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use to define the RDBMS SQL information.- Specified by:
getDBDictionary
in interfaceJDBCConfiguration
-
setDBDictionary
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use.- Specified by:
setDBDictionary
in interfaceJDBCConfiguration
-
getDBDictionaryInstance
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use.- Specified by:
getDBDictionaryInstance
in interfaceJDBCConfiguration
-
setUpdateManager
Description copied from interface:JDBCConfiguration
TheUpdateManager
to use for managing SQL updates.- Specified by:
setUpdateManager
in interfaceJDBCConfiguration
-
getUpdateManager
Description copied from interface:JDBCConfiguration
TheUpdateManager
to use for managing SQL updates.- Specified by:
getUpdateManager
in interfaceJDBCConfiguration
-
setUpdateManager
Description copied from interface:JDBCConfiguration
TheUpdateManager
for runtime data store interaction.- Specified by:
setUpdateManager
in interfaceJDBCConfiguration
-
getUpdateManagerInstance
Description copied from interface:JDBCConfiguration
TheUpdateManager
for runtime data store interaction.- Specified by:
getUpdateManagerInstance
in interfaceJDBCConfiguration
-
setDriverDataSource
Description copied from interface:JDBCConfiguration
- Specified by:
setDriverDataSource
in interfaceJDBCConfiguration
-
getDriverDataSource
Description copied from interface:JDBCConfiguration
- Specified by:
getDriverDataSource
in interfaceJDBCConfiguration
-
newDriverDataSourceInstance
Description copied from interface:JDBCConfiguration
- Specified by:
newDriverDataSourceInstance
in interfaceJDBCConfiguration
-
setSchemaFactory
Description copied from interface:JDBCConfiguration
The plugin string for theSchemaFactory
to use to provide schema information during system initialization.- Specified by:
setSchemaFactory
in interfaceJDBCConfiguration
-
getSchemaFactory
Description copied from interface:JDBCConfiguration
The plugin string for theSchemaFactory
to use to provide schema information during system initialization.- Specified by:
getSchemaFactory
in interfaceJDBCConfiguration
-
setSchemaFactory
Description copied from interface:JDBCConfiguration
TheSchemaFactory
to use for schema information.- Specified by:
setSchemaFactory
in interfaceJDBCConfiguration
-
getSchemaFactoryInstance
Description copied from interface:JDBCConfiguration
TheSchemaFactory
to use for schema information.- Specified by:
getSchemaFactoryInstance
in interfaceJDBCConfiguration
-
setSQLFactory
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
setSQLFactory
in interfaceJDBCConfiguration
-
getSQLFactory
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
getSQLFactory
in interfaceJDBCConfiguration
-
setSQLFactory
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
setSQLFactory
in interfaceJDBCConfiguration
-
getSQLFactoryInstance
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
getSQLFactoryInstance
in interfaceJDBCConfiguration
-
getMappingFactory
Description copied from interface:JDBCConfiguration
A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data.- Specified by:
getMappingFactory
in interfaceJDBCConfiguration
-
setMappingFactory
Description copied from interface:JDBCConfiguration
A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data.- Specified by:
setMappingFactory
in interfaceJDBCConfiguration
-
newMetaDataFactoryInstance
Description copied from interface:OpenJPAConfiguration
Create a newMetaDataFactory
to use with a repository.- Specified by:
newMetaDataFactoryInstance
in interfaceOpenJPAConfiguration
- Overrides:
newMetaDataFactoryInstance
in classOpenJPAConfigurationImpl
-
setMappingDefaults
Description copied from interface:JDBCConfiguration
A plugin string describing theMappingDefaults
to use.- Specified by:
setMappingDefaults
in interfaceJDBCConfiguration
-
getMappingDefaults
Description copied from interface:JDBCConfiguration
A plugin string describing theMappingDefaults
to use.- Specified by:
getMappingDefaults
in interfaceJDBCConfiguration
-
setMappingDefaults
Description copied from interface:JDBCConfiguration
TheMappingDefaults
to use with a repository.- Specified by:
setMappingDefaults
in interfaceJDBCConfiguration
-
getMappingDefaultsInstance
Description copied from interface:JDBCConfiguration
TheMappingDefaults
to use with a repository.- Specified by:
getMappingDefaultsInstance
in interfaceJDBCConfiguration
-
getMappingRepositoryInstance
Description copied from interface:JDBCConfiguration
Return the mapping repository. Convenience method to cast from the internal metadata repository.- Specified by:
getMappingRepositoryInstance
in interfaceJDBCConfiguration
-
newMappingRepositoryInstance
Description copied from interface:JDBCConfiguration
Return a new empty mapping repository of the configured type. Convenience method to cast from metadata repository.- Specified by:
newMappingRepositoryInstance
in interfaceJDBCConfiguration
-
newBrokerInstance
Description copied from interface:OpenJPAConfiguration
Create a new broker instance with the configured plugin data.- Specified by:
newBrokerInstance
in interfaceOpenJPAConfiguration
- Overrides:
newBrokerInstance
in classOpenJPAConfigurationImpl
-
getConnectionFactory
Description copied from interface:OpenJPAConfiguration
The connection factory, possibly from JNDI.- Specified by:
getConnectionFactory
in interfaceOpenJPAConfiguration
- Overrides:
getConnectionFactory
in classOpenJPAConfigurationImpl
-
setConnectionFactory
Description copied from interface:OpenJPAConfiguration
The connection factory.- Specified by:
setConnectionFactory
in interfaceOpenJPAConfiguration
- Overrides:
setConnectionFactory
in classOpenJPAConfigurationImpl
-
getConnectionFactory2
Description copied from interface:OpenJPAConfiguration
The non-XA connection factory.- Specified by:
getConnectionFactory2
in interfaceOpenJPAConfiguration
- Overrides:
getConnectionFactory2
in classOpenJPAConfigurationImpl
-
setConnectionFactory2
Description copied from interface:OpenJPAConfiguration
The non-XA connection factory.- Specified by:
setConnectionFactory2
in interfaceOpenJPAConfiguration
- Overrides:
setConnectionFactory2
in classOpenJPAConfigurationImpl
-
createConnectionFactory
Create the connection factory if necessary. -
getDataSource
Description copied from interface:JDBCConfiguration
Return the primary data source to use. The data source will automatically use the given context's user name and password on calls toDataSource.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 ofOpenJPAConfiguration.getConnectionFactory()
, and avoids having to pass in the user name and password to obtain connections.- Specified by:
getDataSource
in interfaceJDBCConfiguration
-
getDataSource2
Description copied from interface:JDBCConfiguration
Return the non-enlisted data source to use. If there is a valid non-xa connection factory configured, then it will be returned. Its default user name and password on calls toDataSource.getConnection()
will be the specified 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.- Specified by:
getDataSource2
in interfaceJDBCConfiguration
- See Also:
-
preClose
protected void preClose()Free the data sources.- Overrides:
preClose
in classOpenJPAConfigurationImpl
-
isInvalidProperty
Description copied from class:ConfigurationImpl
Returns true if the specified property name should raise a warning if it is not found in the list of known properties.- Overrides:
isInvalidProperty
in classConfigurationImpl
-
getIdentifierUtil
Description copied from interface:JDBCConfiguration
Gets the String constant that matches theIdentifierUtil
- Specified by:
getIdentifierUtil
in interfaceJDBCConfiguration
- Returns:
- String-based name of the
IdentifierUtil
-
getIdentifierUtilInstance
Description copied from interface:JDBCConfiguration
Gets theDBIdentifierUtil
- Specified by:
getIdentifierUtilInstance
in interfaceJDBCConfiguration
- Returns:
- DBIdentifierUtil
-
setIdentifierUtil
Description copied from interface:JDBCConfiguration
Sets theDBIdentifierUtil
- Specified by:
setIdentifierUtil
in interfaceJDBCConfiguration
- Parameters:
util
- instance of the identifier utility
-