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:
java.beans.BeanInfo
,java.io.Externalizable
,java.io.Serializable
,java.lang.Cloneable
,OpenJPAConfiguration
,JDBCConfiguration
,Configuration
,ValueListener
,Closeable
- Direct Known Subclasses:
DistributedJDBCConfigurationImpl
public class JDBCConfigurationImpl extends OpenJPAConfigurationImpl implements JDBCConfiguration
Default implementation of theJDBCConfiguration
interface.- Author:
- Marc Prud'hommeaux, Abe White
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields 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
Constructors Constructor Description JDBCConfigurationImpl()
Default constructor.JDBCConfigurationImpl(boolean loadGlobals)
Constructor.JDBCConfigurationImpl(boolean derivations, boolean loadGlobals)
Constructor.JDBCConfigurationImpl(JDBCConfiguration conf)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecoratingDataSource
createConnectionFactory()
Create the connection factory if necessary.ConnectionDecorator[]
getConnectionDecoratorInstances()
TheConnectionDecorator
s to use.java.lang.String
getConnectionDecorators()
A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.java.lang.Object
getConnectionFactory()
The connection factory, possibly from JNDI.java.lang.Object
getConnectionFactory2()
The non-XA connection factory.javax.sql.DataSource
getDataSource(StoreContext ctx)
Return the primary data source to use.javax.sql.DataSource
getDataSource2(StoreContext ctx)
Return the non-enlisted data source to use.java.lang.String
getDBDictionary()
TheDBDictionary
to use to define the RDBMS SQL information.DBDictionary
getDBDictionaryInstance()
TheDBDictionary
to use.java.lang.String
getDriverDataSource()
java.lang.String
getEagerFetchMode()
Specifies the default eager fetch mode to use.int
getEagerFetchModeConstant()
Return the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
java.lang.String
getFetchDirection()
The JDBC fetch direction.int
getFetchDirectionConstant()
Return the result set constant for the fetch direction.java.lang.String
getIdentifierUtil()
Gets the String constant that matches theIdentifierUtil
DBIdentifierUtil
getIdentifierUtilInstance()
Gets theDBIdentifierUtil
JDBCListener[]
getJDBCListenerInstances()
TheJDBCListener
s to use.java.lang.String
getJDBCListeners()
A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.java.lang.String
getLRSSize()
How to obtain the size of large result sets.int
getLRSSizeConstant()
Return theLRSSizes
constant for the large result set size setting.java.lang.String
getMappingDefaults()
A plugin string describing theMappingDefaults
to use.MappingDefaults
getMappingDefaultsInstance()
TheMappingDefaults
to use with a repository.java.lang.String
getMappingFactory()
A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data.MappingRepository
getMappingRepositoryInstance()
Return the mapping repository.java.lang.String
getResultSetType()
The JDBC result set type.int
getResultSetTypeConstant()
Return the result set constant for the result set type.java.lang.String
getSchema()
Default schema for unqualified tables.java.lang.String
getSchemaFactory()
The plugin string for theSchemaFactory
to use to provide schema information during system initialization.SchemaFactory
getSchemaFactoryInstance()
TheSchemaFactory
to use for schema information.java.lang.String
getSchemas()
Comma-separated list of modifiable schemas for persistent instances.java.lang.String[]
getSchemasList()
Modificable schema components.java.lang.String
getSQLFactory()
The SQL factory to use for SQL constructs.SQLFactory
getSQLFactoryInstance()
The SQL factory to use for SQL constructs.java.lang.String
getSubclassFetchMode()
Specifies the default subclass fetch mode to use.int
getSubclassFetchModeConstant()
Return the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
java.lang.String
getSynchronizeMappings()
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.java.lang.String
getTransactionIsolation()
The transaction isolation level to use at the database level.int
getTransactionIsolationConstant()
Return the proper transaction isolation level constant fromConnection
, or -1 for the default level.java.lang.String
getUpdateManager()
TheUpdateManager
to use for managing SQL updates.UpdateManager
getUpdateManagerInstance()
TheUpdateManager
for runtime data store interaction.protected boolean
isInvalidProperty(java.lang.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(java.lang.String user, java.lang.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 newMetaDataFactory
to use with a repository.protected void
preClose()
Free the data sources.void
setConnectionDecorators(java.lang.String connectionDecorators)
A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.void
setConnectionDecorators(ConnectionDecorator[] decorators)
TheConnectionDecorator
s to use.void
setConnectionFactory(java.lang.Object factory)
The connection factory.void
setConnectionFactory2(java.lang.Object factory)
The non-XA connection factory.void
setDBDictionary(java.lang.String dbdictionary)
TheDBDictionary
to use to define the RDBMS SQL information.void
setDBDictionary(DBDictionary dbdictionary)
TheDBDictionary
to use.void
setDriverDataSource(java.lang.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(java.lang.String eagerFetchMode)
Specifies the default eager fetch mode to use.void
setFetchDirection(int fetchDirection)
Set the result set fetch direction constant.void
setFetchDirection(java.lang.String fetchDirection)
The JDBC fetch direction.void
setIdentifierUtil(DBIdentifierUtil util)
Sets theDBIdentifierUtil
void
setJDBCListeners(java.lang.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(java.lang.String lrsSize)
How to obtain the size of large result sets.void
setMappingDefaults(java.lang.String mapping)
A plugin string describing theMappingDefaults
to use.void
setMappingDefaults(MappingDefaults mapping)
TheMappingDefaults
to use with a repository.void
setMappingFactory(java.lang.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(java.lang.String resultSetType)
The JDBC result set type.void
setSchema(java.lang.String schema)
Default schema for unqualified tables.void
setSchemaFactory(java.lang.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(java.lang.String schemas)
Comma-separated list of modifiable schemas for persistent instances.void
setSchemas(java.lang.String[] schemas)
Modifiable schema components.void
setSQLFactory(java.lang.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(java.lang.String subclassFetchMode)
Specifies the default subclass fetch mode to use.void
setSynchronizeMappings(java.lang.String synchronizeMappings)
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.void
setTransactionIsolation(int transactionIsolation)
Set the proper transaction isolation level constant fromConnection
, or -1 for the default level.void
setTransactionIsolation(java.lang.String transactionIsolation)
The transaction isolation level to use at the database level.void
setUpdateManager(java.lang.String updateManager)
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 Detail
-
schema
public StringValue schema
-
schemas
public StringListValue schemas
-
transactionIsolation
public IntValue transactionIsolation
-
resultSetType
public IntValue resultSetType
-
fetchDirection
public IntValue fetchDirection
-
eagerFetchMode
public FetchModeValue eagerFetchMode
-
subclassFetchMode
public FetchModeValue subclassFetchMode
-
lrsSize
public IntValue lrsSize
-
synchronizeMappings
public StringValue synchronizeMappings
-
jdbcListenerPlugins
public ObjectValue jdbcListenerPlugins
-
connectionDecoratorPlugins
public ObjectValue connectionDecoratorPlugins
-
dbdictionaryPlugin
public PluginValue dbdictionaryPlugin
-
updateManagerPlugin
public ObjectValue updateManagerPlugin
-
schemaFactoryPlugin
public ObjectValue schemaFactoryPlugin
-
sqlFactoryPlugin
public ObjectValue sqlFactoryPlugin
-
mappingDefaultsPlugin
public ObjectValue mappingDefaultsPlugin
-
driverDataSourcePlugin
public PluginValue driverDataSourcePlugin
-
mappingFactoryPlugin
public MappingFactoryValue mappingFactoryPlugin
-
identifierUtilPlugin
public ObjectValue identifierUtilPlugin
-
-
Constructor Detail
-
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
public JDBCConfigurationImpl(JDBCConfiguration conf)
Copy constructor
-
-
Method Detail
-
setSchema
public void setSchema(java.lang.String schema)
Description copied from interface:JDBCConfiguration
Default schema for unqualified tables.- Specified by:
setSchema
in interfaceJDBCConfiguration
-
getSchema
public java.lang.String getSchema()
Description copied from interface:JDBCConfiguration
Default schema for unqualified tables.- Specified by:
getSchema
in interfaceJDBCConfiguration
-
setSchemas
public void setSchemas(java.lang.String schemas)
Description copied from interface:JDBCConfiguration
Comma-separated list of modifiable schemas for persistent instances.- Specified by:
setSchemas
in interfaceJDBCConfiguration
-
getSchemas
public java.lang.String getSchemas()
Description copied from interface:JDBCConfiguration
Comma-separated list of modifiable schemas for persistent instances.- Specified by:
getSchemas
in interfaceJDBCConfiguration
-
setSchemas
public void setSchemas(java.lang.String[] schemas)
Description copied from interface:JDBCConfiguration
Modifiable schema components.- Specified by:
setSchemas
in interfaceJDBCConfiguration
-
getSchemasList
public java.lang.String[] getSchemasList()
Description copied from interface:JDBCConfiguration
Modificable schema components.- Specified by:
getSchemasList
in interfaceJDBCConfiguration
-
setTransactionIsolation
public void setTransactionIsolation(java.lang.String transactionIsolation)
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
public java.lang.String 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
public void setResultSetType(java.lang.String resultSetType)
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
public java.lang.String 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
public void setFetchDirection(java.lang.String fetchDirection)
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
public java.lang.String 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
public void setEagerFetchMode(java.lang.String eagerFetchMode)
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
public java.lang.String 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
public void setSubclassFetchMode(java.lang.String subclassFetchMode)
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
public java.lang.String 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
public void setLRSSize(java.lang.String lrsSize)
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
public java.lang.String 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
public void setSynchronizeMappings(java.lang.String synchronizeMappings)
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
public java.lang.String 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
public void setJDBCListeners(java.lang.String jdbcListeners)
Description copied from interface:JDBCConfiguration
A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.- Specified by:
setJDBCListeners
in interfaceJDBCConfiguration
-
getJDBCListeners
public java.lang.String getJDBCListeners()
Description copied from interface:JDBCConfiguration
A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.- Specified by:
getJDBCListeners
in interfaceJDBCConfiguration
-
setJDBCListeners
public void setJDBCListeners(JDBCListener[] listeners)
Description copied from interface:JDBCConfiguration
TheJDBCListener
s to use.- Specified by:
setJDBCListeners
in interfaceJDBCConfiguration
-
getJDBCListenerInstances
public JDBCListener[] getJDBCListenerInstances()
Description copied from interface:JDBCConfiguration
TheJDBCListener
s to use.- Specified by:
getJDBCListenerInstances
in interfaceJDBCConfiguration
-
setConnectionDecorators
public void setConnectionDecorators(java.lang.String connectionDecorators)
Description copied from interface:JDBCConfiguration
A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.- Specified by:
setConnectionDecorators
in interfaceJDBCConfiguration
-
getConnectionDecorators
public java.lang.String getConnectionDecorators()
Description copied from interface:JDBCConfiguration
A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.- Specified by:
getConnectionDecorators
in interfaceJDBCConfiguration
-
setConnectionDecorators
public void setConnectionDecorators(ConnectionDecorator[] decorators)
Description copied from interface:JDBCConfiguration
TheConnectionDecorator
s to use.- Specified by:
setConnectionDecorators
in interfaceJDBCConfiguration
-
getConnectionDecoratorInstances
public ConnectionDecorator[] getConnectionDecoratorInstances()
Description copied from interface:JDBCConfiguration
TheConnectionDecorator
s to use.- Specified by:
getConnectionDecoratorInstances
in interfaceJDBCConfiguration
-
setDBDictionary
public void setDBDictionary(java.lang.String dbdictionary)
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use to define the RDBMS SQL information.- Specified by:
setDBDictionary
in interfaceJDBCConfiguration
-
getDBDictionary
public java.lang.String getDBDictionary()
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use to define the RDBMS SQL information.- Specified by:
getDBDictionary
in interfaceJDBCConfiguration
-
setDBDictionary
public void setDBDictionary(DBDictionary dbdictionary)
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use.- Specified by:
setDBDictionary
in interfaceJDBCConfiguration
-
getDBDictionaryInstance
public DBDictionary getDBDictionaryInstance()
Description copied from interface:JDBCConfiguration
TheDBDictionary
to use.- Specified by:
getDBDictionaryInstance
in interfaceJDBCConfiguration
-
setUpdateManager
public void setUpdateManager(java.lang.String updateManager)
Description copied from interface:JDBCConfiguration
TheUpdateManager
to use for managing SQL updates.- Specified by:
setUpdateManager
in interfaceJDBCConfiguration
-
getUpdateManager
public java.lang.String getUpdateManager()
Description copied from interface:JDBCConfiguration
TheUpdateManager
to use for managing SQL updates.- Specified by:
getUpdateManager
in interfaceJDBCConfiguration
-
setUpdateManager
public void setUpdateManager(UpdateManager updateManager)
Description copied from interface:JDBCConfiguration
TheUpdateManager
for runtime data store interaction.- Specified by:
setUpdateManager
in interfaceJDBCConfiguration
-
getUpdateManagerInstance
public UpdateManager getUpdateManagerInstance()
Description copied from interface:JDBCConfiguration
TheUpdateManager
for runtime data store interaction.- Specified by:
getUpdateManagerInstance
in interfaceJDBCConfiguration
-
setDriverDataSource
public void setDriverDataSource(java.lang.String driverDataSource)
Description copied from interface:JDBCConfiguration
- Specified by:
setDriverDataSource
in interfaceJDBCConfiguration
-
getDriverDataSource
public java.lang.String getDriverDataSource()
Description copied from interface:JDBCConfiguration
- Specified by:
getDriverDataSource
in interfaceJDBCConfiguration
-
newDriverDataSourceInstance
public DriverDataSource newDriverDataSourceInstance()
Description copied from interface:JDBCConfiguration
- Specified by:
newDriverDataSourceInstance
in interfaceJDBCConfiguration
-
setSchemaFactory
public void setSchemaFactory(java.lang.String schemaFactory)
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
public java.lang.String 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
public void setSchemaFactory(SchemaFactory schemaFactory)
Description copied from interface:JDBCConfiguration
TheSchemaFactory
to use for schema information.- Specified by:
setSchemaFactory
in interfaceJDBCConfiguration
-
getSchemaFactoryInstance
public SchemaFactory getSchemaFactoryInstance()
Description copied from interface:JDBCConfiguration
TheSchemaFactory
to use for schema information.- Specified by:
getSchemaFactoryInstance
in interfaceJDBCConfiguration
-
setSQLFactory
public void setSQLFactory(java.lang.String sqlFactory)
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
setSQLFactory
in interfaceJDBCConfiguration
-
getSQLFactory
public java.lang.String getSQLFactory()
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
getSQLFactory
in interfaceJDBCConfiguration
-
setSQLFactory
public void setSQLFactory(SQLFactory sqlFactory)
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
setSQLFactory
in interfaceJDBCConfiguration
-
getSQLFactoryInstance
public SQLFactory getSQLFactoryInstance()
Description copied from interface:JDBCConfiguration
The SQL factory to use for SQL constructs.- Specified by:
getSQLFactoryInstance
in interfaceJDBCConfiguration
-
getMappingFactory
public java.lang.String 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
public void setMappingFactory(java.lang.String mapping)
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
public MetaDataFactory newMetaDataFactoryInstance()
Description copied from interface:OpenJPAConfiguration
Create a newMetaDataFactory
to use with a repository.- Specified by:
newMetaDataFactoryInstance
in interfaceOpenJPAConfiguration
- Overrides:
newMetaDataFactoryInstance
in classOpenJPAConfigurationImpl
-
setMappingDefaults
public void setMappingDefaults(java.lang.String mapping)
Description copied from interface:JDBCConfiguration
A plugin string describing theMappingDefaults
to use.- Specified by:
setMappingDefaults
in interfaceJDBCConfiguration
-
getMappingDefaults
public java.lang.String getMappingDefaults()
Description copied from interface:JDBCConfiguration
A plugin string describing theMappingDefaults
to use.- Specified by:
getMappingDefaults
in interfaceJDBCConfiguration
-
setMappingDefaults
public void setMappingDefaults(MappingDefaults mapping)
Description copied from interface:JDBCConfiguration
TheMappingDefaults
to use with a repository.- Specified by:
setMappingDefaults
in interfaceJDBCConfiguration
-
getMappingDefaultsInstance
public MappingDefaults getMappingDefaultsInstance()
Description copied from interface:JDBCConfiguration
TheMappingDefaults
to use with a repository.- Specified by:
getMappingDefaultsInstance
in interfaceJDBCConfiguration
-
getMappingRepositoryInstance
public MappingRepository 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
public MappingRepository 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
public BrokerImpl newBrokerInstance(java.lang.String user, java.lang.String pass)
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
public java.lang.Object getConnectionFactory()
Description copied from interface:OpenJPAConfiguration
The connection factory, possibly from JNDI.- Specified by:
getConnectionFactory
in interfaceOpenJPAConfiguration
- Overrides:
getConnectionFactory
in classOpenJPAConfigurationImpl
-
setConnectionFactory
public void setConnectionFactory(java.lang.Object factory)
Description copied from interface:OpenJPAConfiguration
The connection factory.- Specified by:
setConnectionFactory
in interfaceOpenJPAConfiguration
- Overrides:
setConnectionFactory
in classOpenJPAConfigurationImpl
-
getConnectionFactory2
public java.lang.Object getConnectionFactory2()
Description copied from interface:OpenJPAConfiguration
The non-XA connection factory.- Specified by:
getConnectionFactory2
in interfaceOpenJPAConfiguration
- Overrides:
getConnectionFactory2
in classOpenJPAConfigurationImpl
-
setConnectionFactory2
public void setConnectionFactory2(java.lang.Object factory)
Description copied from interface:OpenJPAConfiguration
The non-XA connection factory.- Specified by:
setConnectionFactory2
in interfaceOpenJPAConfiguration
- Overrides:
setConnectionFactory2
in classOpenJPAConfigurationImpl
-
createConnectionFactory
public DecoratingDataSource createConnectionFactory()
Create the connection factory if necessary.
-
getDataSource
public javax.sql.DataSource getDataSource(StoreContext ctx)
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
public javax.sql.DataSource getDataSource2(StoreContext ctx)
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:
JDBCConfiguration.getDataSource(org.apache.openjpa.kernel.StoreContext)
-
preClose
protected void preClose()
Free the data sources.- Overrides:
preClose
in classOpenJPAConfigurationImpl
-
isInvalidProperty
protected boolean isInvalidProperty(java.lang.String propName)
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
public java.lang.String 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
public DBIdentifierUtil getIdentifierUtilInstance()
Description copied from interface:JDBCConfiguration
Gets theDBIdentifierUtil
- Specified by:
getIdentifierUtilInstance
in interfaceJDBCConfiguration
- Returns:
- DBIdentifierUtil
-
setIdentifierUtil
public void setIdentifierUtil(DBIdentifierUtil util)
Description copied from interface:JDBCConfiguration
Sets theDBIdentifierUtil
- Specified by:
setIdentifierUtil
in interfaceJDBCConfiguration
- Parameters:
util
- instance of the identifier utility
-
-