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
FieldsModifier 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, writeLockLevelFields inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl
id, logFactoryPluginFields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32Fields 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_LIQUIDFields inherited from interface org.apache.openjpa.jdbc.conf.JDBCConfiguration
LOG_DIAG, LOG_JDBC, LOG_SCHEMA, LOG_SQLFields 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
ConstructorsConstructorDescriptionDefault constructor.JDBCConfigurationImpl(boolean loadGlobals) Constructor.JDBCConfigurationImpl(boolean derivations, boolean loadGlobals) Constructor.Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionCreate the connection factory if necessary.TheConnectionDecorators to use.A comma-separated list of theConnectionDecoratorfor 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.TheDBDictionaryto use to define the RDBMS SQL information.TheDBDictionaryto use.Specifies the default eager fetch mode to use.intReturn the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELThe JDBC fetch direction.intReturn the result set constant for the fetch direction.Gets the String constant that matches theIdentifierUtilGets theDBIdentifierUtilTheJDBCListeners to use.A comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.How to obtain the size of large result sets.intReturn theLRSSizesconstant for the large result set size setting.A plugin string describing theMappingDefaultsto use.TheMappingDefaultsto use with a repository.A plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.Return the mapping repository.The JDBC result set type.intReturn the result set constant for the result set type.Default schema for unqualified tables.The plugin string for theSchemaFactoryto use to provide schema information during system initialization.TheSchemaFactoryto 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.intReturn the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELWhether OpenJPA should try to automatically refresh O/R mapping information and the database schema.The transaction isolation level to use at the database level.intReturn the proper transaction isolation level constant fromConnection, or -1 for the default level.TheUpdateManagerto use for managing SQL updates.TheUpdateManagerfor runtime data store interaction.protected booleanisInvalidProperty(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 newMetaDataFactoryto use with a repository.protected voidpreClose()Free the data sources.voidsetConnectionDecorators(String connectionDecorators) A comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.voidsetConnectionDecorators(ConnectionDecorator[] decorators) TheConnectionDecorators to use.voidsetConnectionFactory(Object factory) The connection factory.voidsetConnectionFactory2(Object factory) The non-XA connection factory.voidsetDBDictionary(String dbdictionary) TheDBDictionaryto use to define the RDBMS SQL information.voidsetDBDictionary(DBDictionary dbdictionary) TheDBDictionaryto use.voidsetDriverDataSource(String driverDataSource) voidsetEagerFetchMode(int eagerFetchMode) Set the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELvoidsetEagerFetchMode(String eagerFetchMode) Specifies the default eager fetch mode to use.voidsetFetchDirection(int fetchDirection) Set the result set fetch direction constant.voidsetFetchDirection(String fetchDirection) The JDBC fetch direction.voidSets theDBIdentifierUtilvoidsetJDBCListeners(String jdbcListeners) A comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.voidsetJDBCListeners(JDBCListener[] listeners) TheJDBCListeners to use.voidsetLRSSize(int lrsSize) Set the fetch configuration large result set size constant.voidsetLRSSize(String lrsSize) How to obtain the size of large result sets.voidsetMappingDefaults(String mapping) A plugin string describing theMappingDefaultsto use.voidsetMappingDefaults(MappingDefaults mapping) TheMappingDefaultsto use with a repository.voidsetMappingFactory(String mapping) A plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.voidsetResultSetType(int resultSetType) Set the result set constant type.voidsetResultSetType(String resultSetType) The JDBC result set type.voidDefault schema for unqualified tables.voidsetSchemaFactory(String schemaFactory) The plugin string for theSchemaFactoryto use to provide schema information during system initialization.voidsetSchemaFactory(SchemaFactory schemaFactory) TheSchemaFactoryto use for schema information.voidsetSchemas(String schemas) Comma-separated list of modifiable schemas for persistent instances.voidsetSchemas(String[] schemas) Modifiable schema components.voidsetSQLFactory(String sqlFactory) The SQL factory to use for SQL constructs.voidsetSQLFactory(SQLFactory sqlFactory) The SQL factory to use for SQL constructs.voidsetSubclassFetchMode(int subclassFetchMode) Set the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELvoidsetSubclassFetchMode(String subclassFetchMode) Specifies the default subclass fetch mode to use.voidsetSynchronizeMappings(String synchronizeMappings) Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.voidsetTransactionIsolation(int transactionIsolation) Set the proper transaction isolation level constant fromConnection, or -1 for the default level.voidsetTransactionIsolation(String transactionIsolation) The transaction isolation level to use at the database level.voidsetUpdateManager(String updateManager) TheUpdateManagerto use for managing SQL updates.voidsetUpdateManager(UpdateManager updateManager) TheUpdateManagerfor 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, supportedOptionsMethods 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, writeExternalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.beans.BeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptorsMethods 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, toPropertiesMethods 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:JDBCConfigurationDefault schema for unqualified tables.- Specified by:
setSchemain interfaceJDBCConfiguration
-
getSchema
Description copied from interface:JDBCConfigurationDefault schema for unqualified tables.- Specified by:
getSchemain interfaceJDBCConfiguration
-
setSchemas
Description copied from interface:JDBCConfigurationComma-separated list of modifiable schemas for persistent instances.- Specified by:
setSchemasin interfaceJDBCConfiguration
-
getSchemas
Description copied from interface:JDBCConfigurationComma-separated list of modifiable schemas for persistent instances.- Specified by:
getSchemasin interfaceJDBCConfiguration
-
setSchemas
Description copied from interface:JDBCConfigurationModifiable schema components.- Specified by:
setSchemasin interfaceJDBCConfiguration
-
getSchemasList
Description copied from interface:JDBCConfigurationModificable schema components.- Specified by:
getSchemasListin interfaceJDBCConfiguration
-
setTransactionIsolation
Description copied from interface:JDBCConfigurationThe 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_NONElevel.read-committed: The standard JDBCConnection.TRANSACTION_READ_COMMITTEDlevel.read-uncommitted: The standard JDBCConnection.TRANSACTION_READ_UNCOMMITTEDlevel.repeatable-read: The standard JDBCConnection.TRANSACTION_REPEATABLE_READlevel.serializable: The standard JDBCConnection.TRANSACTION_SERIALIZABLElevel.
- Specified by:
setTransactionIsolationin interfaceJDBCConfiguration
-
getTransactionIsolation
Description copied from interface:JDBCConfigurationThe 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_NONElevel.read-committed: The standard JDBCConnection.TRANSACTION_READ_COMMITTEDlevel.read-uncommitted: The standard JDBCConnection.TRANSACTION_READ_UNCOMMITTEDlevel.repeatable-read: The standard JDBCConnection.TRANSACTION_REPEATABLE_READlevel.serializable: The standard JDBCConnection.TRANSACTION_SERIALIZABLElevel.
- Specified by:
getTransactionIsolationin interfaceJDBCConfiguration
-
setTransactionIsolation
public void setTransactionIsolation(int transactionIsolation) Description copied from interface:JDBCConfigurationSet the proper transaction isolation level constant fromConnection, or -1 for the default level.- Specified by:
setTransactionIsolationin interfaceJDBCConfiguration
-
getTransactionIsolationConstant
public int getTransactionIsolationConstant()Description copied from interface:JDBCConfigurationReturn the proper transaction isolation level constant fromConnection, or -1 for the default level.- Specified by:
getTransactionIsolationConstantin interfaceJDBCConfiguration
-
setResultSetType
Description copied from interface:JDBCConfigurationThe JDBC result set type. Defaults toforward-only.forward-only: The standard JDBCResultSet.TYPE_FORWARD_ONLYtype.scroll-sensitive: The standard JDBCResultSet.TYPE_SCROLL_SENSITIVEtype.scroll-insensitive: The standard JDBCResultSet.TYPE_SCROLL_INSENSITIVEtype.
- Specified by:
setResultSetTypein interfaceJDBCConfiguration
-
getResultSetType
Description copied from interface:JDBCConfigurationThe JDBC result set type. Defaults toforward-only.forward-only: The standard JDBCResultSet.TYPE_FORWARD_ONLYtype.scroll-sensitive: The standard JDBCResultSet.TYPE_SCROLL_SENSITIVEtype.scroll-insensitive: The standard JDBCResultSet.TYPE_SCROLL_INSENSITIVEtype.
- Specified by:
getResultSetTypein interfaceJDBCConfiguration
-
setResultSetType
public void setResultSetType(int resultSetType) Description copied from interface:JDBCConfigurationSet the result set constant type.- Specified by:
setResultSetTypein interfaceJDBCConfiguration
-
getResultSetTypeConstant
public int getResultSetTypeConstant()Description copied from interface:JDBCConfigurationReturn the result set constant for the result set type.- Specified by:
getResultSetTypeConstantin interfaceJDBCConfiguration
-
setFetchDirection
Description copied from interface:JDBCConfigurationThe JDBC fetch direction. Defaults toforward.forward: The standard JDBCResultSet.FETCH_FORWARDdirection.reverse: The standard JDBCResultSet.FETCH_REVERSEdirection.unknown: The standard JDBCResultSet.FETCH_UNKNOWNdirection.
- Specified by:
setFetchDirectionin interfaceJDBCConfiguration
-
getFetchDirection
Description copied from interface:JDBCConfigurationThe JDBC fetch direction. Defaults toforward.forward: The standard JDBCResultSet.FETCH_FORWARDdirection.reverse: The standard JDBCResultSet.FETCH_REVERSEdirection.unknown: The standard JDBCResultSet.FETCH_UNKNOWNdirection.
- Specified by:
getFetchDirectionin interfaceJDBCConfiguration
-
setFetchDirection
public void setFetchDirection(int fetchDirection) Description copied from interface:JDBCConfigurationSet the result set fetch direction constant.- Specified by:
setFetchDirectionin interfaceJDBCConfiguration
-
getFetchDirectionConstant
public int getFetchDirectionConstant()Description copied from interface:JDBCConfigurationReturn the result set constant for the fetch direction.- Specified by:
getFetchDirectionConstantin interfaceJDBCConfiguration
-
setEagerFetchMode
Description copied from interface:JDBCConfigurationSpecifies the default eager fetch mode to use. Defaults toparallelunless 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:
setEagerFetchModein interfaceJDBCConfiguration
-
getEagerFetchMode
Description copied from interface:JDBCConfigurationSpecifies the default eager fetch mode to use. Defaults toparallelunless 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:
getEagerFetchModein interfaceJDBCConfiguration
-
setEagerFetchMode
public void setEagerFetchMode(int eagerFetchMode) Description copied from interface:JDBCConfigurationSet the eager fetch mode as one of the following symbolic constants:- Specified by:
setEagerFetchModein interfaceJDBCConfiguration
-
getEagerFetchModeConstant
public int getEagerFetchModeConstant()Description copied from interface:JDBCConfigurationReturn the eager fetch mode as one of the following symbolic constants:- Specified by:
getEagerFetchModeConstantin interfaceJDBCConfiguration
-
setSubclassFetchMode
Description copied from interface:JDBCConfigurationSpecifies the default subclass fetch mode to use. Defaults tojoinunless 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:
setSubclassFetchModein interfaceJDBCConfiguration
-
getSubclassFetchMode
Description copied from interface:JDBCConfigurationSpecifies the default subclass fetch mode to use. Defaults tojoinunless 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:
getSubclassFetchModein interfaceJDBCConfiguration
-
setSubclassFetchMode
public void setSubclassFetchMode(int subclassFetchMode) Description copied from interface:JDBCConfigurationSet the subclass fetch mode as one of the following symbolic constants:- Specified by:
setSubclassFetchModein interfaceJDBCConfiguration
-
getSubclassFetchModeConstant
public int getSubclassFetchModeConstant()Description copied from interface:JDBCConfigurationReturn the subclass fetch mode as one of the following symbolic constants:- Specified by:
getSubclassFetchModeConstantin interfaceJDBCConfiguration
-
setLRSSize
Description copied from interface:JDBCConfigurationHow 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:
setLRSSizein interfaceJDBCConfiguration
-
getLRSSize
Description copied from interface:JDBCConfigurationHow 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:
getLRSSizein interfaceJDBCConfiguration
-
setLRSSize
public void setLRSSize(int lrsSize) Description copied from interface:JDBCConfigurationSet the fetch configuration large result set size constant.- Specified by:
setLRSSizein interfaceJDBCConfiguration
-
getLRSSizeConstant
public int getLRSSizeConstant()Description copied from interface:JDBCConfigurationReturn theLRSSizesconstant for the large result set size setting.- Specified by:
getLRSSizeConstantin interfaceJDBCConfiguration
-
setSynchronizeMappings
Description copied from interface:JDBCConfigurationWhether OpenJPA should try to automatically refresh O/R mapping information and the database schema.- Specified by:
setSynchronizeMappingsin interfaceJDBCConfiguration
-
getSynchronizeMappings
Description copied from interface:JDBCConfigurationWhether OpenJPA should try to automatically refresh O/R mapping information and the database schema.- Specified by:
getSynchronizeMappingsin interfaceJDBCConfiguration
-
setJDBCListeners
Description copied from interface:JDBCConfigurationA comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.- Specified by:
setJDBCListenersin interfaceJDBCConfiguration
-
getJDBCListeners
Description copied from interface:JDBCConfigurationA comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.- Specified by:
getJDBCListenersin interfaceJDBCConfiguration
-
setJDBCListeners
Description copied from interface:JDBCConfigurationTheJDBCListeners to use.- Specified by:
setJDBCListenersin interfaceJDBCConfiguration
-
getJDBCListenerInstances
Description copied from interface:JDBCConfigurationTheJDBCListeners to use.- Specified by:
getJDBCListenerInstancesin interfaceJDBCConfiguration
-
setConnectionDecorators
Description copied from interface:JDBCConfigurationA comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.- Specified by:
setConnectionDecoratorsin interfaceJDBCConfiguration
-
getConnectionDecorators
Description copied from interface:JDBCConfigurationA comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.- Specified by:
getConnectionDecoratorsin interfaceJDBCConfiguration
-
setConnectionDecorators
Description copied from interface:JDBCConfigurationTheConnectionDecorators to use.- Specified by:
setConnectionDecoratorsin interfaceJDBCConfiguration
-
getConnectionDecoratorInstances
Description copied from interface:JDBCConfigurationTheConnectionDecorators to use.- Specified by:
getConnectionDecoratorInstancesin interfaceJDBCConfiguration
-
setDBDictionary
Description copied from interface:JDBCConfigurationTheDBDictionaryto use to define the RDBMS SQL information.- Specified by:
setDBDictionaryin interfaceJDBCConfiguration
-
getDBDictionary
Description copied from interface:JDBCConfigurationTheDBDictionaryto use to define the RDBMS SQL information.- Specified by:
getDBDictionaryin interfaceJDBCConfiguration
-
setDBDictionary
Description copied from interface:JDBCConfigurationTheDBDictionaryto use.- Specified by:
setDBDictionaryin interfaceJDBCConfiguration
-
getDBDictionaryInstance
Description copied from interface:JDBCConfigurationTheDBDictionaryto use.- Specified by:
getDBDictionaryInstancein interfaceJDBCConfiguration
-
setUpdateManager
Description copied from interface:JDBCConfigurationTheUpdateManagerto use for managing SQL updates.- Specified by:
setUpdateManagerin interfaceJDBCConfiguration
-
getUpdateManager
Description copied from interface:JDBCConfigurationTheUpdateManagerto use for managing SQL updates.- Specified by:
getUpdateManagerin interfaceJDBCConfiguration
-
setUpdateManager
Description copied from interface:JDBCConfigurationTheUpdateManagerfor runtime data store interaction.- Specified by:
setUpdateManagerin interfaceJDBCConfiguration
-
getUpdateManagerInstance
Description copied from interface:JDBCConfigurationTheUpdateManagerfor runtime data store interaction.- Specified by:
getUpdateManagerInstancein interfaceJDBCConfiguration
-
setDriverDataSource
Description copied from interface:JDBCConfiguration- Specified by:
setDriverDataSourcein interfaceJDBCConfiguration
-
getDriverDataSource
Description copied from interface:JDBCConfiguration- Specified by:
getDriverDataSourcein interfaceJDBCConfiguration
-
newDriverDataSourceInstance
Description copied from interface:JDBCConfiguration- Specified by:
newDriverDataSourceInstancein interfaceJDBCConfiguration
-
setSchemaFactory
Description copied from interface:JDBCConfigurationThe plugin string for theSchemaFactoryto use to provide schema information during system initialization.- Specified by:
setSchemaFactoryin interfaceJDBCConfiguration
-
getSchemaFactory
Description copied from interface:JDBCConfigurationThe plugin string for theSchemaFactoryto use to provide schema information during system initialization.- Specified by:
getSchemaFactoryin interfaceJDBCConfiguration
-
setSchemaFactory
Description copied from interface:JDBCConfigurationTheSchemaFactoryto use for schema information.- Specified by:
setSchemaFactoryin interfaceJDBCConfiguration
-
getSchemaFactoryInstance
Description copied from interface:JDBCConfigurationTheSchemaFactoryto use for schema information.- Specified by:
getSchemaFactoryInstancein interfaceJDBCConfiguration
-
setSQLFactory
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
setSQLFactoryin interfaceJDBCConfiguration
-
getSQLFactory
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
getSQLFactoryin interfaceJDBCConfiguration
-
setSQLFactory
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
setSQLFactoryin interfaceJDBCConfiguration
-
getSQLFactoryInstance
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
getSQLFactoryInstancein interfaceJDBCConfiguration
-
getMappingFactory
Description copied from interface:JDBCConfigurationA plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.- Specified by:
getMappingFactoryin interfaceJDBCConfiguration
-
setMappingFactory
Description copied from interface:JDBCConfigurationA plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.- Specified by:
setMappingFactoryin interfaceJDBCConfiguration
-
newMetaDataFactoryInstance
Description copied from interface:OpenJPAConfigurationCreate a newMetaDataFactoryto use with a repository.- Specified by:
newMetaDataFactoryInstancein interfaceOpenJPAConfiguration- Overrides:
newMetaDataFactoryInstancein classOpenJPAConfigurationImpl
-
setMappingDefaults
Description copied from interface:JDBCConfigurationA plugin string describing theMappingDefaultsto use.- Specified by:
setMappingDefaultsin interfaceJDBCConfiguration
-
getMappingDefaults
Description copied from interface:JDBCConfigurationA plugin string describing theMappingDefaultsto use.- Specified by:
getMappingDefaultsin interfaceJDBCConfiguration
-
setMappingDefaults
Description copied from interface:JDBCConfigurationTheMappingDefaultsto use with a repository.- Specified by:
setMappingDefaultsin interfaceJDBCConfiguration
-
getMappingDefaultsInstance
Description copied from interface:JDBCConfigurationTheMappingDefaultsto use with a repository.- Specified by:
getMappingDefaultsInstancein interfaceJDBCConfiguration
-
getMappingRepositoryInstance
Description copied from interface:JDBCConfigurationReturn the mapping repository. Convenience method to cast from the internal metadata repository.- Specified by:
getMappingRepositoryInstancein interfaceJDBCConfiguration
-
newMappingRepositoryInstance
Description copied from interface:JDBCConfigurationReturn a new empty mapping repository of the configured type. Convenience method to cast from metadata repository.- Specified by:
newMappingRepositoryInstancein interfaceJDBCConfiguration
-
newBrokerInstance
Description copied from interface:OpenJPAConfigurationCreate a new broker instance with the configured plugin data.- Specified by:
newBrokerInstancein interfaceOpenJPAConfiguration- Overrides:
newBrokerInstancein classOpenJPAConfigurationImpl
-
getConnectionFactory
Description copied from interface:OpenJPAConfigurationThe connection factory, possibly from JNDI.- Specified by:
getConnectionFactoryin interfaceOpenJPAConfiguration- Overrides:
getConnectionFactoryin classOpenJPAConfigurationImpl
-
setConnectionFactory
Description copied from interface:OpenJPAConfigurationThe connection factory.- Specified by:
setConnectionFactoryin interfaceOpenJPAConfiguration- Overrides:
setConnectionFactoryin classOpenJPAConfigurationImpl
-
getConnectionFactory2
Description copied from interface:OpenJPAConfigurationThe non-XA connection factory.- Specified by:
getConnectionFactory2in interfaceOpenJPAConfiguration- Overrides:
getConnectionFactory2in classOpenJPAConfigurationImpl
-
setConnectionFactory2
Description copied from interface:OpenJPAConfigurationThe non-XA connection factory.- Specified by:
setConnectionFactory2in interfaceOpenJPAConfiguration- Overrides:
setConnectionFactory2in classOpenJPAConfigurationImpl
-
createConnectionFactory
Create the connection factory if necessary. -
getDataSource
Description copied from interface:JDBCConfigurationReturn 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:
getDataSourcein interfaceJDBCConfiguration
-
getDataSource2
Description copied from interface:JDBCConfigurationReturn 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:
getDataSource2in interfaceJDBCConfiguration- See Also:
-
preClose
protected void preClose()Free the data sources.- Overrides:
preClosein classOpenJPAConfigurationImpl
-
isInvalidProperty
Description copied from class:ConfigurationImplReturns true if the specified property name should raise a warning if it is not found in the list of known properties.- Overrides:
isInvalidPropertyin classConfigurationImpl
-
getIdentifierUtil
Description copied from interface:JDBCConfigurationGets the String constant that matches theIdentifierUtil- Specified by:
getIdentifierUtilin interfaceJDBCConfiguration- Returns:
- String-based name of the
IdentifierUtil
-
getIdentifierUtilInstance
Description copied from interface:JDBCConfigurationGets theDBIdentifierUtil- Specified by:
getIdentifierUtilInstancein interfaceJDBCConfiguration- Returns:
- DBIdentifierUtil
-
setIdentifierUtil
Description copied from interface:JDBCConfigurationSets theDBIdentifierUtil- Specified by:
setIdentifierUtilin interfaceJDBCConfiguration- Parameters:
util- instance of the identifier utility
-