public class JDBCConfigurationImpl extends OpenJPAConfigurationImpl implements JDBCConfiguration
JDBCConfiguration interface.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, writeLockLevelid, logFactoryPluginLOG_DIAG, LOG_JDBC, LOG_SCHEMA, LOG_SQLLOG_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_INCREMENTATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_INTERFACE, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE, ATTRIBUTE_XML, INIT_STATE_FREEZING, INIT_STATE_FROZEN, INIT_STATE_LIQUIDICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32| Constructor and Description |
|---|
JDBCConfigurationImpl()
Default constructor.
|
JDBCConfigurationImpl(boolean loadGlobals)
Constructor.
|
JDBCConfigurationImpl(boolean derivations,
boolean loadGlobals)
Constructor.
|
JDBCConfigurationImpl(JDBCConfiguration conf)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
DecoratingDataSource |
createConnectionFactory()
Create the connection factory if necessary.
|
ConnectionDecorator[] |
getConnectionDecoratorInstances()
The
ConnectionDecorators to use. |
String |
getConnectionDecorators()
A comma-separated list of the
ConnectionDecorator for adding
functionality to JDBC connections. |
Object |
getConnectionFactory()
The connection factory, possibly from JNDI.
|
Object |
getConnectionFactory2()
The non-XA connection factory.
|
DataSource |
getDataSource(StoreContext ctx)
Return the primary data source to use.
|
DataSource |
getDataSource2(StoreContext ctx)
Return the non-enlisted data source to use.
|
String |
getDBDictionary()
The
DBDictionary to use to define the RDBMS SQL information. |
DBDictionary |
getDBDictionaryInstance()
The
DBDictionary to use. |
String |
getDriverDataSource()
|
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
|
String |
getFetchDirection()
The JDBC fetch direction.
|
int |
getFetchDirectionConstant()
Return the result set constant for the fetch direction.
|
String |
getIdentifierUtil()
Gets the String constant that matches the
IdentifierUtil |
DBIdentifierUtil |
getIdentifierUtilInstance()
Gets the
DBIdentifierUtil |
JDBCListener[] |
getJDBCListenerInstances()
The
JDBCListeners to use. |
String |
getJDBCListeners()
A comma-separated list of the
JDBCListener plugins for
listening to JDBCEvents. |
String |
getLRSSize()
How to obtain the size of large result sets.
|
int |
getLRSSizeConstant()
Return the
LRSSizes constant for the large result set size
setting. |
String |
getMappingDefaults()
A plugin string describing the
MappingDefaults to use. |
MappingDefaults |
getMappingDefaultsInstance()
The
MappingDefaults to use with a repository. |
String |
getMappingFactory()
A plugin string describing the
MetaDataFactory to use for
loading and storing object-relational mapping data. |
MappingRepository |
getMappingRepositoryInstance()
Return the mapping repository.
|
String |
getResultSetType()
The JDBC result set type.
|
int |
getResultSetTypeConstant()
Return the result set constant for the result set type.
|
String |
getSchema()
Default schema for unqualified tables.
|
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. |
String |
getSchemas()
Comma-separated list of modifiable schemas for persistent instances.
|
String[] |
getSchemasList()
Modificable schema components.
|
String |
getSQLFactory()
The SQL factory to use for SQL constructs.
|
SQLFactory |
getSQLFactoryInstance()
The SQL factory to use for SQL constructs.
|
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
|
String |
getSynchronizeMappings()
Whether OpenJPA should try to automatically refresh O/R mapping
information and the database schema.
|
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. |
String |
getUpdateManager()
The
UpdateManager to use for managing SQL updates. |
UpdateManager |
getUpdateManagerInstance()
The
UpdateManager 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.
|
BrokerImpl |
newBrokerInstance(String user,
String pass)
Create a new broker instance with the configured plugin data.
|
DriverDataSource |
newDriverDataSourceInstance()
|
MappingRepository |
newMappingRepositoryInstance()
Return a new empty mapping repository of the configured type.
|
MetaDataFactory |
newMetaDataFactoryInstance()
Create a new
MetaDataFactory to use with a repository. |
protected void |
preClose()
Free the data sources.
|
void |
setConnectionDecorators(ConnectionDecorator[] decorators)
The
ConnectionDecorators to use. |
void |
setConnectionDecorators(String connectionDecorators)
A comma-separated list of the
ConnectionDecorator for
adding functionality to JDBC connections. |
void |
setConnectionFactory(Object factory)
The connection factory.
|
void |
setConnectionFactory2(Object factory)
The non-XA connection factory.
|
void |
setDBDictionary(DBDictionary dbdictionary)
The
DBDictionary to use. |
void |
setDBDictionary(String dbdictionary)
The
DBDictionary to use to define the RDBMS SQL information. |
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 |
setIdentifierUtil(DBIdentifierUtil util)
Sets the
DBIdentifierUtil |
void |
setJDBCListeners(JDBCListener[] listeners)
The
JDBCListeners to use. |
void |
setJDBCListeners(String jdbcListeners)
A comma-separated list of the
JDBCListener plugins for
listening to JDBCEvents. |
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(MappingDefaults mapping)
The
MappingDefaults to use with a repository. |
void |
setMappingDefaults(String mapping)
A plugin string describing the
MappingDefaults to use. |
void |
setMappingFactory(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(String resultSetType)
The JDBC result set type.
|
void |
setSchema(String schema)
Default schema for unqualified tables.
|
void |
setSchemaFactory(SchemaFactory schemaFactory)
The
SchemaFactory to use for schema information. |
void |
setSchemaFactory(String schemaFactory)
The plugin string for the
SchemaFactory to use to provide
schema information during system initialization. |
void |
setSchemas(String schemas)
Comma-separated list of modifiable schemas for persistent instances.
|
void |
setSchemas(String[] schemas)
Modifiable schema components.
|
void |
setSQLFactory(SQLFactory sqlFactory)
The SQL factory to use for SQL constructs.
|
void |
setSQLFactory(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(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 from
Connection, or -1 for the default level. |
void |
setTransactionIsolation(String transactionIsolation)
The transaction isolation level to use at the database level.
|
void |
setUpdateManager(String updateManager)
The
UpdateManager to use for managing SQL updates. |
void |
setUpdateManager(UpdateManager updateManager)
The
UpdateManager for runtime data store interaction. |
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, supportedOptionsaddBoolean, 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, writeExternalfinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAggregateListenerInstances, 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, supportedOptionsaddPropertyChangeListener, 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, toPropertiesgetAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptorspublic StringValue schema
public StringListValue schemas
public IntValue transactionIsolation
public IntValue resultSetType
public IntValue fetchDirection
public FetchModeValue eagerFetchMode
public FetchModeValue subclassFetchMode
public IntValue lrsSize
public StringValue synchronizeMappings
public ObjectValue jdbcListenerPlugins
public ObjectValue connectionDecoratorPlugins
public PluginValue dbdictionaryPlugin
public ObjectValue updateManagerPlugin
public ObjectValue schemaFactoryPlugin
public ObjectValue sqlFactoryPlugin
public ObjectValue mappingDefaultsPlugin
public PluginValue driverDataSourcePlugin
public MappingFactoryValue mappingFactoryPlugin
public ObjectValue identifierUtilPlugin
public JDBCConfigurationImpl()
public JDBCConfigurationImpl(boolean loadGlobals)
loadGlobals - whether to attempt to load the global propertiespublic JDBCConfigurationImpl(boolean derivations,
boolean loadGlobals)
derivations - whether to apply product derivationsloadGlobals - whether to attempt to load the global propertiespublic JDBCConfigurationImpl(JDBCConfiguration conf)
public void setSchema(String schema)
JDBCConfigurationsetSchema in interface JDBCConfigurationpublic String getSchema()
JDBCConfigurationgetSchema in interface JDBCConfigurationpublic void setSchemas(String schemas)
JDBCConfigurationsetSchemas in interface JDBCConfigurationpublic String getSchemas()
JDBCConfigurationgetSchemas in interface JDBCConfigurationpublic void setSchemas(String[] schemas)
JDBCConfigurationsetSchemas in interface JDBCConfigurationpublic String[] getSchemasList()
JDBCConfigurationgetSchemasList in interface JDBCConfigurationpublic void setTransactionIsolation(String transactionIsolation)
JDBCConfigurationdefault: 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 JDBCConfigurationpublic String getTransactionIsolation()
JDBCConfigurationdefault: 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 JDBCConfigurationpublic void setTransactionIsolation(int transactionIsolation)
JDBCConfigurationConnection, or -1 for the default level.setTransactionIsolation in interface JDBCConfigurationpublic int getTransactionIsolationConstant()
JDBCConfigurationConnection, or -1 for the default level.getTransactionIsolationConstant in interface JDBCConfigurationpublic void setResultSetType(String resultSetType)
JDBCConfigurationforward-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 JDBCConfigurationpublic String getResultSetType()
JDBCConfigurationforward-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 JDBCConfigurationpublic void setResultSetType(int resultSetType)
JDBCConfigurationsetResultSetType in interface JDBCConfigurationpublic int getResultSetTypeConstant()
JDBCConfigurationgetResultSetTypeConstant in interface JDBCConfigurationpublic void setFetchDirection(String fetchDirection)
JDBCConfigurationforward.
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 JDBCConfigurationpublic String getFetchDirection()
JDBCConfigurationforward.
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 JDBCConfigurationpublic void setFetchDirection(int fetchDirection)
JDBCConfigurationsetFetchDirection in interface JDBCConfigurationpublic int getFetchDirectionConstant()
JDBCConfigurationgetFetchDirectionConstant in interface JDBCConfigurationpublic void setEagerFetchMode(String eagerFetchMode)
JDBCConfigurationparallel 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 JDBCConfigurationpublic String getEagerFetchMode()
JDBCConfigurationparallel 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 JDBCConfigurationpublic void setEagerFetchMode(int eagerFetchMode)
JDBCConfigurationsetEagerFetchMode in interface JDBCConfigurationpublic int getEagerFetchModeConstant()
JDBCConfigurationgetEagerFetchModeConstant in interface JDBCConfigurationpublic void setSubclassFetchMode(String subclassFetchMode)
JDBCConfigurationjoin 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 JDBCConfigurationpublic String getSubclassFetchMode()
JDBCConfigurationjoin 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 JDBCConfigurationpublic void setSubclassFetchMode(int subclassFetchMode)
JDBCConfigurationsetSubclassFetchMode in interface JDBCConfigurationpublic int getSubclassFetchModeConstant()
JDBCConfigurationgetSubclassFetchModeConstant in interface JDBCConfigurationpublic void setLRSSize(String lrsSize)
JDBCConfigurationunknown.
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 JDBCConfigurationpublic String getLRSSize()
JDBCConfigurationunknown.
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 JDBCConfigurationpublic void setLRSSize(int lrsSize)
JDBCConfigurationsetLRSSize in interface JDBCConfigurationpublic int getLRSSizeConstant()
JDBCConfigurationLRSSizes constant for the large result set size
setting.getLRSSizeConstant in interface JDBCConfigurationpublic void setSynchronizeMappings(String synchronizeMappings)
JDBCConfigurationsetSynchronizeMappings in interface JDBCConfigurationpublic String getSynchronizeMappings()
JDBCConfigurationgetSynchronizeMappings in interface JDBCConfigurationpublic void setJDBCListeners(String jdbcListeners)
JDBCConfigurationJDBCListener plugins for
listening to JDBCEvents.setJDBCListeners in interface JDBCConfigurationpublic String getJDBCListeners()
JDBCConfigurationJDBCListener plugins for
listening to JDBCEvents.getJDBCListeners in interface JDBCConfigurationpublic void setJDBCListeners(JDBCListener[] listeners)
JDBCConfigurationJDBCListeners to use.setJDBCListeners in interface JDBCConfigurationpublic JDBCListener[] getJDBCListenerInstances()
JDBCConfigurationJDBCListeners to use.getJDBCListenerInstances in interface JDBCConfigurationpublic void setConnectionDecorators(String connectionDecorators)
JDBCConfigurationConnectionDecorator for
adding functionality to JDBC connections.setConnectionDecorators in interface JDBCConfigurationpublic String getConnectionDecorators()
JDBCConfigurationConnectionDecorator for adding
functionality to JDBC connections.getConnectionDecorators in interface JDBCConfigurationpublic void setConnectionDecorators(ConnectionDecorator[] decorators)
JDBCConfigurationConnectionDecorators to use.setConnectionDecorators in interface JDBCConfigurationpublic ConnectionDecorator[] getConnectionDecoratorInstances()
JDBCConfigurationConnectionDecorators to use.getConnectionDecoratorInstances in interface JDBCConfigurationpublic void setDBDictionary(String dbdictionary)
JDBCConfigurationDBDictionary to use to define the RDBMS SQL information.setDBDictionary in interface JDBCConfigurationpublic String getDBDictionary()
JDBCConfigurationDBDictionary to use to define the RDBMS SQL information.getDBDictionary in interface JDBCConfigurationpublic void setDBDictionary(DBDictionary dbdictionary)
JDBCConfigurationDBDictionary to use.setDBDictionary in interface JDBCConfigurationpublic DBDictionary getDBDictionaryInstance()
JDBCConfigurationDBDictionary to use.getDBDictionaryInstance in interface JDBCConfigurationpublic void setUpdateManager(String updateManager)
JDBCConfigurationUpdateManager to use for managing SQL updates.setUpdateManager in interface JDBCConfigurationpublic String getUpdateManager()
JDBCConfigurationUpdateManager to use for managing SQL updates.getUpdateManager in interface JDBCConfigurationpublic void setUpdateManager(UpdateManager updateManager)
JDBCConfigurationUpdateManager for runtime data store interaction.setUpdateManager in interface JDBCConfigurationpublic UpdateManager getUpdateManagerInstance()
JDBCConfigurationUpdateManager for runtime data store interaction.getUpdateManagerInstance in interface JDBCConfigurationpublic void setDriverDataSource(String driverDataSource)
JDBCConfigurationsetDriverDataSource in interface JDBCConfigurationpublic String getDriverDataSource()
JDBCConfigurationgetDriverDataSource in interface JDBCConfigurationpublic DriverDataSource newDriverDataSourceInstance()
JDBCConfigurationnewDriverDataSourceInstance in interface JDBCConfigurationpublic void setSchemaFactory(String schemaFactory)
JDBCConfigurationSchemaFactory to use to provide
schema information during system initialization.setSchemaFactory in interface JDBCConfigurationpublic String getSchemaFactory()
JDBCConfigurationSchemaFactory to use to provide
schema information during system initialization.getSchemaFactory in interface JDBCConfigurationpublic void setSchemaFactory(SchemaFactory schemaFactory)
JDBCConfigurationSchemaFactory to use for schema information.setSchemaFactory in interface JDBCConfigurationpublic SchemaFactory getSchemaFactoryInstance()
JDBCConfigurationSchemaFactory to use for schema information.getSchemaFactoryInstance in interface JDBCConfigurationpublic void setSQLFactory(String sqlFactory)
JDBCConfigurationsetSQLFactory in interface JDBCConfigurationpublic String getSQLFactory()
JDBCConfigurationgetSQLFactory in interface JDBCConfigurationpublic void setSQLFactory(SQLFactory sqlFactory)
JDBCConfigurationsetSQLFactory in interface JDBCConfigurationpublic SQLFactory getSQLFactoryInstance()
JDBCConfigurationgetSQLFactoryInstance in interface JDBCConfigurationpublic String getMappingFactory()
JDBCConfigurationMetaDataFactory to use for
loading and storing object-relational mapping data.getMappingFactory in interface JDBCConfigurationpublic void setMappingFactory(String mapping)
JDBCConfigurationMetaDataFactory to use for
loading and storing object-relational mapping data.setMappingFactory in interface JDBCConfigurationpublic MetaDataFactory newMetaDataFactoryInstance()
OpenJPAConfigurationMetaDataFactory to use with a repository.newMetaDataFactoryInstance in interface OpenJPAConfigurationnewMetaDataFactoryInstance in class OpenJPAConfigurationImplpublic void setMappingDefaults(String mapping)
JDBCConfigurationMappingDefaults to use.setMappingDefaults in interface JDBCConfigurationpublic String getMappingDefaults()
JDBCConfigurationMappingDefaults to use.getMappingDefaults in interface JDBCConfigurationpublic void setMappingDefaults(MappingDefaults mapping)
JDBCConfigurationMappingDefaults to use with a repository.setMappingDefaults in interface JDBCConfigurationpublic MappingDefaults getMappingDefaultsInstance()
JDBCConfigurationMappingDefaults to use with a repository.getMappingDefaultsInstance in interface JDBCConfigurationpublic MappingRepository getMappingRepositoryInstance()
JDBCConfigurationgetMappingRepositoryInstance in interface JDBCConfigurationpublic MappingRepository newMappingRepositoryInstance()
JDBCConfigurationnewMappingRepositoryInstance in interface JDBCConfigurationpublic BrokerImpl newBrokerInstance(String user, String pass)
OpenJPAConfigurationnewBrokerInstance in interface OpenJPAConfigurationnewBrokerInstance in class OpenJPAConfigurationImplpublic Object getConnectionFactory()
OpenJPAConfigurationgetConnectionFactory in interface OpenJPAConfigurationgetConnectionFactory in class OpenJPAConfigurationImplpublic void setConnectionFactory(Object factory)
OpenJPAConfigurationsetConnectionFactory in interface OpenJPAConfigurationsetConnectionFactory in class OpenJPAConfigurationImplpublic Object getConnectionFactory2()
OpenJPAConfigurationgetConnectionFactory2 in interface OpenJPAConfigurationgetConnectionFactory2 in class OpenJPAConfigurationImplpublic void setConnectionFactory2(Object factory)
OpenJPAConfigurationsetConnectionFactory2 in interface OpenJPAConfigurationsetConnectionFactory2 in class OpenJPAConfigurationImplpublic DecoratingDataSource createConnectionFactory()
public DataSource getDataSource(StoreContext ctx)
JDBCConfigurationDataSource.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 JDBCConfigurationpublic DataSource getDataSource2(StoreContext ctx)
JDBCConfigurationDataSource.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.getDataSource2 in interface JDBCConfigurationJDBCConfiguration.getDataSource(org.apache.openjpa.kernel.StoreContext)protected void preClose()
preClose in class OpenJPAConfigurationImplprotected boolean isInvalidProperty(String propName)
ConfigurationImplisInvalidProperty in class ConfigurationImplpublic String getIdentifierUtil()
JDBCConfigurationIdentifierUtilgetIdentifierUtil in interface JDBCConfigurationIdentifierUtilpublic DBIdentifierUtil getIdentifierUtilInstance()
JDBCConfigurationDBIdentifierUtilgetIdentifierUtilInstance in interface JDBCConfigurationpublic void setIdentifierUtil(DBIdentifierUtil util)
JDBCConfigurationDBIdentifierUtilsetIdentifierUtil in interface JDBCConfigurationutil - instance of the identifier utilityCopyright © 2006–2020 Apache Software Foundation. All rights reserved.