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 theJDBCConfigurationinterface.- 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 DecoratingDataSourcecreateConnectionFactory()Create the connection factory if necessary.ConnectionDecorator[]getConnectionDecoratorInstances()TheConnectionDecorators to use.java.lang.StringgetConnectionDecorators()A comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.java.lang.ObjectgetConnectionFactory()The connection factory, possibly from JNDI.java.lang.ObjectgetConnectionFactory2()The non-XA connection factory.javax.sql.DataSourcegetDataSource(StoreContext ctx)Return the primary data source to use.javax.sql.DataSourcegetDataSource2(StoreContext ctx)Return the non-enlisted data source to use.java.lang.StringgetDBDictionary()TheDBDictionaryto use to define the RDBMS SQL information.DBDictionarygetDBDictionaryInstance()TheDBDictionaryto use.java.lang.StringgetDriverDataSource()java.lang.StringgetEagerFetchMode()Specifies the default eager fetch mode to use.intgetEagerFetchModeConstant()Return the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELjava.lang.StringgetFetchDirection()The JDBC fetch direction.intgetFetchDirectionConstant()Return the result set constant for the fetch direction.java.lang.StringgetIdentifierUtil()Gets the String constant that matches theIdentifierUtilDBIdentifierUtilgetIdentifierUtilInstance()Gets theDBIdentifierUtilJDBCListener[]getJDBCListenerInstances()TheJDBCListeners to use.java.lang.StringgetJDBCListeners()A comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.java.lang.StringgetLRSSize()How to obtain the size of large result sets.intgetLRSSizeConstant()Return theLRSSizesconstant for the large result set size setting.java.lang.StringgetMappingDefaults()A plugin string describing theMappingDefaultsto use.MappingDefaultsgetMappingDefaultsInstance()TheMappingDefaultsto use with a repository.java.lang.StringgetMappingFactory()A plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.MappingRepositorygetMappingRepositoryInstance()Return the mapping repository.java.lang.StringgetResultSetType()The JDBC result set type.intgetResultSetTypeConstant()Return the result set constant for the result set type.java.lang.StringgetSchema()Default schema for unqualified tables.java.lang.StringgetSchemaFactory()The plugin string for theSchemaFactoryto use to provide schema information during system initialization.SchemaFactorygetSchemaFactoryInstance()TheSchemaFactoryto use for schema information.java.lang.StringgetSchemas()Comma-separated list of modifiable schemas for persistent instances.java.lang.String[]getSchemasList()Modificable schema components.java.lang.StringgetSQLFactory()The SQL factory to use for SQL constructs.SQLFactorygetSQLFactoryInstance()The SQL factory to use for SQL constructs.java.lang.StringgetSubclassFetchMode()Specifies the default subclass fetch mode to use.intgetSubclassFetchModeConstant()Return the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELjava.lang.StringgetSynchronizeMappings()Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.java.lang.StringgetTransactionIsolation()The transaction isolation level to use at the database level.intgetTransactionIsolationConstant()Return the proper transaction isolation level constant fromConnection, or -1 for the default level.java.lang.StringgetUpdateManager()TheUpdateManagerto use for managing SQL updates.UpdateManagergetUpdateManagerInstance()TheUpdateManagerfor runtime data store interaction.protected booleanisInvalidProperty(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.BrokerImplnewBrokerInstance(java.lang.String user, java.lang.String pass)Create a new broker instance with the configured plugin data.DriverDataSourcenewDriverDataSourceInstance()MappingRepositorynewMappingRepositoryInstance()Return a new empty mapping repository of the configured type.MetaDataFactorynewMetaDataFactoryInstance()Create a newMetaDataFactoryto use with a repository.protected voidpreClose()Free the data sources.voidsetConnectionDecorators(java.lang.String connectionDecorators)A comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.voidsetConnectionDecorators(ConnectionDecorator[] decorators)TheConnectionDecorators to use.voidsetConnectionFactory(java.lang.Object factory)The connection factory.voidsetConnectionFactory2(java.lang.Object factory)The non-XA connection factory.voidsetDBDictionary(java.lang.String dbdictionary)TheDBDictionaryto use to define the RDBMS SQL information.voidsetDBDictionary(DBDictionary dbdictionary)TheDBDictionaryto use.voidsetDriverDataSource(java.lang.String driverDataSource)voidsetEagerFetchMode(int eagerFetchMode)Set the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELvoidsetEagerFetchMode(java.lang.String eagerFetchMode)Specifies the default eager fetch mode to use.voidsetFetchDirection(int fetchDirection)Set the result set fetch direction constant.voidsetFetchDirection(java.lang.String fetchDirection)The JDBC fetch direction.voidsetIdentifierUtil(DBIdentifierUtil util)Sets theDBIdentifierUtilvoidsetJDBCListeners(java.lang.String jdbcListeners)A comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.voidsetJDBCListeners(JDBCListener[] listeners)TheJDBCListeners to use.voidsetLRSSize(int lrsSize)Set the fetch configuration large result set size constant.voidsetLRSSize(java.lang.String lrsSize)How to obtain the size of large result sets.voidsetMappingDefaults(java.lang.String mapping)A plugin string describing theMappingDefaultsto use.voidsetMappingDefaults(MappingDefaults mapping)TheMappingDefaultsto use with a repository.voidsetMappingFactory(java.lang.String mapping)A plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.voidsetResultSetType(int resultSetType)Set the result set constant type.voidsetResultSetType(java.lang.String resultSetType)The JDBC result set type.voidsetSchema(java.lang.String schema)Default schema for unqualified tables.voidsetSchemaFactory(java.lang.String schemaFactory)The plugin string for theSchemaFactoryto use to provide schema information during system initialization.voidsetSchemaFactory(SchemaFactory schemaFactory)TheSchemaFactoryto use for schema information.voidsetSchemas(java.lang.String schemas)Comma-separated list of modifiable schemas for persistent instances.voidsetSchemas(java.lang.String[] schemas)Modifiable schema components.voidsetSQLFactory(java.lang.String sqlFactory)The SQL factory to use for SQL constructs.voidsetSQLFactory(SQLFactory sqlFactory)The SQL factory to use for SQL constructs.voidsetSubclassFetchMode(int subclassFetchMode)Set the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONEEagerFetchModes.EAGER_JOINEagerFetchModes.EAGER_PARALLELvoidsetSubclassFetchMode(java.lang.String subclassFetchMode)Specifies the default subclass fetch mode to use.voidsetSynchronizeMappings(java.lang.String synchronizeMappings)Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.voidsetTransactionIsolation(int transactionIsolation)Set the proper transaction isolation level constant fromConnection, or -1 for the default level.voidsetTransactionIsolation(java.lang.String transactionIsolation)The transaction isolation level to use at the database level.voidsetUpdateManager(java.lang.String updateManager)TheUpdateManagerto use for managing SQL updates.voidsetUpdateManager(UpdateManager updateManager)TheUpdateManagerfor runtime data store interaction.-
Methods inherited from class org.apache.openjpa.conf.OpenJPAConfigurationImpl
getAggregateListenerInstances, getAggregateListeners, getAuditor, getAuditorInstance, getAutoClear, getAutoClearConstant, getAutoDetach, getAutoDetachConstant, getBrokerFactory, getBrokerFactoryEventManager, getBrokerImpl, getCacheDistributionPolicy, getCacheDistributionPolicyInstance, getCacheMarshallerInstances, getCacheMarshallers, getCallbackOptions, getCallbackOptionsInstance, getClassResolver, getClassResolverInstance, getCompatibility, getCompatibilityInstance, getConfigurationLog, getConnection2DriverName, getConnection2Password, getConnection2Properties, getConnection2URL, getConnection2UserName, getConnectionDriverName, getConnectionFactory2Name, getConnectionFactory2Properties, getConnectionFactoryMode, getConnectionFactoryName, getConnectionFactoryProperties, getConnectionPassword, getConnectionProperties, getConnectionRetainMode, getConnectionRetainModeConstant, getConnectionURL, getConnectionUserName, getCreateScriptSource, getCreateScriptTarget, getCreateSource, getCreateSourceConstant, getDatabaseAction, getDatabaseActionConstant, getDataCache, getDataCacheManager, getDataCacheManagerInstance, getDataCacheMode, getDataCacheTimeout, getDetachState, getDetachStateInstance, getDropScriptSource, getDropScriptTarget, getDropSource, getDropSourceConstant, getDynamicDataStructs, getDynamicEnhancementAgent, getEncryptionProvider, getFetchBatchSize, getFetchGroups, getFetchGroupsList, getFilterListenerInstances, getFilterListeners, getFinderCache, getFinderCacheInstance, getFlushBeforeQueries, getFlushBeforeQueriesConstant, getIgnoreChanges, getInstrumentation, getInstrumentationInstances, getInstrumentationManager, getInstrumentationManagerInstance, getInverseManager, getLifecycleEventManager, getLifecycleEventManagerInstance, getLoadScriptSource, getLockManager, getLockTimeout, getManagedRuntime, getManagedRuntimeInstance, getMapping, getMaxFetchDepth, getMetaDataFactory, getMetaDataRepository, getMetaDataRepositoryInstance, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getOptimizeIdCopy, getOrphanedKeyAction, getOrphanedKeyActionInstance, getPersistenceEnvironment, getPostLoadOnMerge, getProxyManager, getProxyManagerInstance, getQueryCache, getQueryCompilationCache, getQueryCompilationCacheInstance, getQuerySQLCache, getQuerySQLCacheInstance, getQueryTimeout, getReadLockLevel, getReadLockLevelConstant, getRefreshFromDataCache, getRemoteCommitEventManager, getRemoteCommitProvider, getRestoreState, getRestoreStateConstant, getRetainState, getRetryClassRegistration, getRuntimeUnenhancedClasses, getRuntimeUnenhancedClassesConstant, getSavepointManager, getSavepointManagerInstance, getScriptsAction, getScriptsActionConstant, getSequence, getSequenceInstance, getSpecification, getSpecificationInstance, getStoreFacadeTypeRegistry, getTransactionMode, getTypesWithoutEnhancement, getUseTCCLinSelectNew, getValidationFactoryInstance, getValidationGroupPrePersist, getValidationGroupPreRemove, getValidationGroupPreUpdate, getValidationMode, getValidatorInstance, getWriteLockLevel, getWriteLockLevelConstant, instantiateAll, isConnectionFactoryModeManaged, isInitializeEagerly, isTransactionModeManaged, metaDataRepositoryAvailable, newInverseManagerInstance, newLockManagerInstance, newMetaDataRepositoryInstance, newRemoteCommitProviderInstance, setAggregateListeners, setAggregateListeners, setAuditor, setAuditorInstance, setAutoClear, setAutoClear, setAutoDetach, setAutoDetach, setBrokerFactory, setBrokerImpl, setCacheDistributionPolicy, setCacheDistributionPolicyInstance, setCacheMarshallers, setCallbackOptions, setClassResolver, setClassResolver, setCompatibility, setConnection2DriverName, setConnection2Password, setConnection2Properties, setConnection2URL, setConnection2UserName, setConnectionDriverName, setConnectionFactory2Name, setConnectionFactory2Properties, setConnectionFactoryMode, setConnectionFactoryModeManaged, setConnectionFactoryName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionRetainMode, setConnectionRetainMode, setConnectionURL, setConnectionUserName, setDataCache, setDataCacheManager, setDataCacheManager, setDataCacheMode, setDataCacheTimeout, setDataCacheTimeout, setDetachState, setDetachState, setDynamicDataStructs, setDynamicDataStructs, setDynamicEnhancementAgent, setEncryptionProvider, setFetchBatchSize, setFetchBatchSize, setFetchGroups, setFetchGroups, setFilterListeners, setFilterListeners, setFinderCache, setFlushBeforeQueries, setFlushBeforeQueries, setIgnoreChanges, setIgnoreChanges, setInitializeEagerly, setInstrumentation, setInstrumentationManager, setInstrumentationManager, setInverseManager, setLifecycleEventManager, setLockManager, setLockTimeout, setLockTimeout, setManagedRuntime, setManagedRuntime, setMapping, setMaxFetchDepth, setMaxFetchDepth, setMetaDataFactory, setMetaDataRepository, setMetaDataRepository, setMultithreaded, setMultithreaded, setNontransactionalRead, setNontransactionalRead, setNontransactionalWrite, setNontransactionalWrite, setOptimistic, setOptimistic, setOptimizeIdCopy, setOptimizeIdCopy, setOrphanedKeyAction, setOrphanedKeyAction, setPersistenceEnvironment, setPostLoadOnMerge, setPostLoadOnMerge, setProxyManager, setProxyManager, setQueryCache, setQueryCompilationCache, setQuerySQLCache, setQuerySQLCache, setQueryTimeout, setReadLockLevel, setReadLockLevel, setRefreshFromDataCache, setRefreshFromDataCache, setRemoteCommitEventManager, setRemoteCommitProvider, setRestoreState, setRestoreState, setRetainState, setRetainState, setRetryClassRegistration, setRetryClassRegistration, setRuntimeUnenhancedClasses, setRuntimeUnenhancedClasses, setSavepointManager, setSequence, setSequence, setSpecification, setSpecification, setTransactionMode, setTransactionModeManaged, setTypesWithoutEnhancement, setUseTCCLinSelectNew, setUseTCCLinSelectNew, setValidationFactory, setValidationGroupPrePersist, setValidationGroupPreRemove, setValidationGroupPreUpdate, setValidationMode, setValidatorInstance, setWriteLockLevel, setWriteLockLevel, 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:JDBCConfigurationDefault schema for unqualified tables.- Specified by:
setSchemain interfaceJDBCConfiguration
-
getSchema
public java.lang.String getSchema()
Description copied from interface:JDBCConfigurationDefault schema for unqualified tables.- Specified by:
getSchemain interfaceJDBCConfiguration
-
setSchemas
public void setSchemas(java.lang.String schemas)
Description copied from interface:JDBCConfigurationComma-separated list of modifiable schemas for persistent instances.- Specified by:
setSchemasin interfaceJDBCConfiguration
-
getSchemas
public java.lang.String getSchemas()
Description copied from interface:JDBCConfigurationComma-separated list of modifiable schemas for persistent instances.- Specified by:
getSchemasin interfaceJDBCConfiguration
-
setSchemas
public void setSchemas(java.lang.String[] schemas)
Description copied from interface:JDBCConfigurationModifiable schema components.- Specified by:
setSchemasin interfaceJDBCConfiguration
-
getSchemasList
public java.lang.String[] getSchemasList()
Description copied from interface:JDBCConfigurationModificable schema components.- Specified by:
getSchemasListin interfaceJDBCConfiguration
-
setTransactionIsolation
public void setTransactionIsolation(java.lang.String transactionIsolation)
Description copied from interface:JDBCConfigurationThe transaction isolation level to use at the database level. Possible values are:default: The JDBC driver's default isolation level.none: The standard JDBCConnection.TRANSACTION_NONElevel.read-committed: The standard JDBCConnection.TRANSACTION_READ_COMMITTEDlevel.read-uncommitted: The standard JDBCConnection.TRANSACTION_READ_UNCOMMITTEDlevel.repeatable-read: The standard JDBCConnection.TRANSACTION_REPEATABLE_READlevel.serializable: The standard JDBCConnection.TRANSACTION_SERIALIZABLElevel.
- Specified by:
setTransactionIsolationin interfaceJDBCConfiguration
-
getTransactionIsolation
public java.lang.String getTransactionIsolation()
Description copied from interface:JDBCConfigurationThe transaction isolation level to use at the database level. Possible values are:default: The JDBC driver's default isolation level.none: The standard JDBCConnection.TRANSACTION_NONElevel.read-committed: The standard JDBCConnection.TRANSACTION_READ_COMMITTEDlevel.read-uncommitted: The standard JDBCConnection.TRANSACTION_READ_UNCOMMITTEDlevel.repeatable-read: The standard JDBCConnection.TRANSACTION_REPEATABLE_READlevel.serializable: The standard JDBCConnection.TRANSACTION_SERIALIZABLElevel.
- Specified by:
getTransactionIsolationin interfaceJDBCConfiguration
-
setTransactionIsolation
public void setTransactionIsolation(int transactionIsolation)
Description copied from interface:JDBCConfigurationSet the proper transaction isolation level constant fromConnection, or -1 for the default level.- Specified by:
setTransactionIsolationin interfaceJDBCConfiguration
-
getTransactionIsolationConstant
public int getTransactionIsolationConstant()
Description copied from interface:JDBCConfigurationReturn the proper transaction isolation level constant fromConnection, or -1 for the default level.- Specified by:
getTransactionIsolationConstantin interfaceJDBCConfiguration
-
setResultSetType
public void setResultSetType(java.lang.String resultSetType)
Description copied from interface:JDBCConfigurationThe JDBC result set type. Defaults toforward-only.forward-only: The standard JDBCResultSet.TYPE_FORWARD_ONLYtype.scroll-sensitive: The standard JDBCResultSet.TYPE_SCROLL_SENSITIVEtype.scroll-insensitive: The standard JDBCResultSet.TYPE_SCROLL_INSENSITIVEtype.
- Specified by:
setResultSetTypein interfaceJDBCConfiguration
-
getResultSetType
public java.lang.String getResultSetType()
Description copied from interface:JDBCConfigurationThe JDBC result set type. Defaults toforward-only.forward-only: The standard JDBCResultSet.TYPE_FORWARD_ONLYtype.scroll-sensitive: The standard JDBCResultSet.TYPE_SCROLL_SENSITIVEtype.scroll-insensitive: The standard JDBCResultSet.TYPE_SCROLL_INSENSITIVEtype.
- Specified by:
getResultSetTypein interfaceJDBCConfiguration
-
setResultSetType
public void setResultSetType(int resultSetType)
Description copied from interface:JDBCConfigurationSet the result set constant type.- Specified by:
setResultSetTypein interfaceJDBCConfiguration
-
getResultSetTypeConstant
public int getResultSetTypeConstant()
Description copied from interface:JDBCConfigurationReturn the result set constant for the result set type.- Specified by:
getResultSetTypeConstantin interfaceJDBCConfiguration
-
setFetchDirection
public void setFetchDirection(java.lang.String fetchDirection)
Description copied from interface:JDBCConfigurationThe JDBC fetch direction. Defaults toforward.forward: The standard JDBCResultSet.FETCH_FORWARDdirection.reverse: The standard JDBCResultSet.FETCH_REVERSEdirection.unknown: The standard JDBCResultSet.FETCH_UNKNOWNdirection.
- Specified by:
setFetchDirectionin interfaceJDBCConfiguration
-
getFetchDirection
public java.lang.String getFetchDirection()
Description copied from interface:JDBCConfigurationThe JDBC fetch direction. Defaults toforward.forward: The standard JDBCResultSet.FETCH_FORWARDdirection.reverse: The standard JDBCResultSet.FETCH_REVERSEdirection.unknown: The standard JDBCResultSet.FETCH_UNKNOWNdirection.
- Specified by:
getFetchDirectionin interfaceJDBCConfiguration
-
setFetchDirection
public void setFetchDirection(int fetchDirection)
Description copied from interface:JDBCConfigurationSet the result set fetch direction constant.- Specified by:
setFetchDirectionin interfaceJDBCConfiguration
-
getFetchDirectionConstant
public int getFetchDirectionConstant()
Description copied from interface:JDBCConfigurationReturn the result set constant for the fetch direction.- Specified by:
getFetchDirectionConstantin interfaceJDBCConfiguration
-
setEagerFetchMode
public void setEagerFetchMode(java.lang.String eagerFetchMode)
Description copied from interface:JDBCConfigurationSpecifies the default eager fetch mode to use. Defaults toparallelunless the query is by-oid. Possible values are:none: When querying for an object, do not try to select for related objects at the same time.join: When querying for objects, also select for 1-1 relations in the configured fetch groups using joins.parallel: When querying for objects, also select for both 1-1 relations using joins and to-many relations using batched selects.
- Specified by:
setEagerFetchModein interfaceJDBCConfiguration
-
getEagerFetchMode
public java.lang.String getEagerFetchMode()
Description copied from interface:JDBCConfigurationSpecifies the default eager fetch mode to use. Defaults toparallelunless the query is by-oid. Possible values are:none: When querying for an object, do not try to select for related objects at the same time.join: When querying for objects, also select for 1-1 relations in the configured fetch groups using joins.parallel: When querying for objects, also select for both 1-1 relations using joins and to-many relations using batched selects.
- Specified by:
getEagerFetchModein interfaceJDBCConfiguration
-
setEagerFetchMode
public void setEagerFetchMode(int eagerFetchMode)
Description copied from interface:JDBCConfigurationSet the eager fetch mode as one of the following symbolic constants:- Specified by:
setEagerFetchModein interfaceJDBCConfiguration
-
getEagerFetchModeConstant
public int getEagerFetchModeConstant()
Description copied from interface:JDBCConfigurationReturn the eager fetch mode as one of the following symbolic constants:- Specified by:
getEagerFetchModeConstantin interfaceJDBCConfiguration
-
setSubclassFetchMode
public void setSubclassFetchMode(java.lang.String subclassFetchMode)
Description copied from interface:JDBCConfigurationSpecifies the default subclass fetch mode to use. Defaults tojoinunless the query is by-oid. Possible values are:none: Only select base class data.join: Select both base class and all possible subclass data using joins.parallel: Select for each possible subclass separately.
- Specified by:
setSubclassFetchModein interfaceJDBCConfiguration
-
getSubclassFetchMode
public java.lang.String getSubclassFetchMode()
Description copied from interface:JDBCConfigurationSpecifies the default subclass fetch mode to use. Defaults tojoinunless the query is by-oid. Possible values are:none: Only select base class data.join: Select both base class and all possible subclass data using joins.parallel: Select for each possible subclass separately.
- Specified by:
getSubclassFetchModein interfaceJDBCConfiguration
-
setSubclassFetchMode
public void setSubclassFetchMode(int subclassFetchMode)
Description copied from interface:JDBCConfigurationSet the subclass fetch mode as one of the following symbolic constants:- Specified by:
setSubclassFetchModein interfaceJDBCConfiguration
-
getSubclassFetchModeConstant
public int getSubclassFetchModeConstant()
Description copied from interface:JDBCConfigurationReturn the subclass fetch mode as one of the following symbolic constants:- Specified by:
getSubclassFetchModeConstantin interfaceJDBCConfiguration
-
setLRSSize
public void setLRSSize(java.lang.String lrsSize)
Description copied from interface:JDBCConfigurationHow to obtain the size of large result sets. Defaults tounknown.unknown: Do not attempt to calculate the size of large result sets; returnInteger.MAX_VALUE.last: For result sets that support random access, calculate the size usingResultSet.last().query: Use a separate COUNT query to calculate the size of the results.
- Specified by:
setLRSSizein interfaceJDBCConfiguration
-
getLRSSize
public java.lang.String getLRSSize()
Description copied from interface:JDBCConfigurationHow to obtain the size of large result sets. Defaults tounknown.unknown: Do not attempt to calculate the size of large result sets; returnInteger.MAX_VALUE.last: For result sets that support random access, calculate the size usingResultSet.last().query: Use a separate COUNT query to calculate the size of the results.
- Specified by:
getLRSSizein interfaceJDBCConfiguration
-
setLRSSize
public void setLRSSize(int lrsSize)
Description copied from interface:JDBCConfigurationSet the fetch configuration large result set size constant.- Specified by:
setLRSSizein interfaceJDBCConfiguration
-
getLRSSizeConstant
public int getLRSSizeConstant()
Description copied from interface:JDBCConfigurationReturn theLRSSizesconstant for the large result set size setting.- Specified by:
getLRSSizeConstantin interfaceJDBCConfiguration
-
setSynchronizeMappings
public void setSynchronizeMappings(java.lang.String synchronizeMappings)
Description copied from interface:JDBCConfigurationWhether OpenJPA should try to automatically refresh O/R mapping information and the database schema.- Specified by:
setSynchronizeMappingsin interfaceJDBCConfiguration
-
getSynchronizeMappings
public java.lang.String getSynchronizeMappings()
Description copied from interface:JDBCConfigurationWhether OpenJPA should try to automatically refresh O/R mapping information and the database schema.- Specified by:
getSynchronizeMappingsin interfaceJDBCConfiguration
-
setJDBCListeners
public void setJDBCListeners(java.lang.String jdbcListeners)
Description copied from interface:JDBCConfigurationA comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.- Specified by:
setJDBCListenersin interfaceJDBCConfiguration
-
getJDBCListeners
public java.lang.String getJDBCListeners()
Description copied from interface:JDBCConfigurationA comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.- Specified by:
getJDBCListenersin interfaceJDBCConfiguration
-
setJDBCListeners
public void setJDBCListeners(JDBCListener[] listeners)
Description copied from interface:JDBCConfigurationTheJDBCListeners to use.- Specified by:
setJDBCListenersin interfaceJDBCConfiguration
-
getJDBCListenerInstances
public JDBCListener[] getJDBCListenerInstances()
Description copied from interface:JDBCConfigurationTheJDBCListeners to use.- Specified by:
getJDBCListenerInstancesin interfaceJDBCConfiguration
-
setConnectionDecorators
public void setConnectionDecorators(java.lang.String connectionDecorators)
Description copied from interface:JDBCConfigurationA comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.- Specified by:
setConnectionDecoratorsin interfaceJDBCConfiguration
-
getConnectionDecorators
public java.lang.String getConnectionDecorators()
Description copied from interface:JDBCConfigurationA comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.- Specified by:
getConnectionDecoratorsin interfaceJDBCConfiguration
-
setConnectionDecorators
public void setConnectionDecorators(ConnectionDecorator[] decorators)
Description copied from interface:JDBCConfigurationTheConnectionDecorators to use.- Specified by:
setConnectionDecoratorsin interfaceJDBCConfiguration
-
getConnectionDecoratorInstances
public ConnectionDecorator[] getConnectionDecoratorInstances()
Description copied from interface:JDBCConfigurationTheConnectionDecorators to use.- Specified by:
getConnectionDecoratorInstancesin interfaceJDBCConfiguration
-
setDBDictionary
public void setDBDictionary(java.lang.String dbdictionary)
Description copied from interface:JDBCConfigurationTheDBDictionaryto use to define the RDBMS SQL information.- Specified by:
setDBDictionaryin interfaceJDBCConfiguration
-
getDBDictionary
public java.lang.String getDBDictionary()
Description copied from interface:JDBCConfigurationTheDBDictionaryto use to define the RDBMS SQL information.- Specified by:
getDBDictionaryin interfaceJDBCConfiguration
-
setDBDictionary
public void setDBDictionary(DBDictionary dbdictionary)
Description copied from interface:JDBCConfigurationTheDBDictionaryto use.- Specified by:
setDBDictionaryin interfaceJDBCConfiguration
-
getDBDictionaryInstance
public DBDictionary getDBDictionaryInstance()
Description copied from interface:JDBCConfigurationTheDBDictionaryto use.- Specified by:
getDBDictionaryInstancein interfaceJDBCConfiguration
-
setUpdateManager
public void setUpdateManager(java.lang.String updateManager)
Description copied from interface:JDBCConfigurationTheUpdateManagerto use for managing SQL updates.- Specified by:
setUpdateManagerin interfaceJDBCConfiguration
-
getUpdateManager
public java.lang.String getUpdateManager()
Description copied from interface:JDBCConfigurationTheUpdateManagerto use for managing SQL updates.- Specified by:
getUpdateManagerin interfaceJDBCConfiguration
-
setUpdateManager
public void setUpdateManager(UpdateManager updateManager)
Description copied from interface:JDBCConfigurationTheUpdateManagerfor runtime data store interaction.- Specified by:
setUpdateManagerin interfaceJDBCConfiguration
-
getUpdateManagerInstance
public UpdateManager getUpdateManagerInstance()
Description copied from interface:JDBCConfigurationTheUpdateManagerfor runtime data store interaction.- Specified by:
getUpdateManagerInstancein interfaceJDBCConfiguration
-
setDriverDataSource
public void setDriverDataSource(java.lang.String driverDataSource)
Description copied from interface:JDBCConfiguration- Specified by:
setDriverDataSourcein interfaceJDBCConfiguration
-
getDriverDataSource
public java.lang.String getDriverDataSource()
Description copied from interface:JDBCConfiguration- Specified by:
getDriverDataSourcein interfaceJDBCConfiguration
-
newDriverDataSourceInstance
public DriverDataSource newDriverDataSourceInstance()
Description copied from interface:JDBCConfiguration- Specified by:
newDriverDataSourceInstancein interfaceJDBCConfiguration
-
setSchemaFactory
public void setSchemaFactory(java.lang.String schemaFactory)
Description copied from interface:JDBCConfigurationThe plugin string for theSchemaFactoryto use to provide schema information during system initialization.- Specified by:
setSchemaFactoryin interfaceJDBCConfiguration
-
getSchemaFactory
public java.lang.String getSchemaFactory()
Description copied from interface:JDBCConfigurationThe plugin string for theSchemaFactoryto use to provide schema information during system initialization.- Specified by:
getSchemaFactoryin interfaceJDBCConfiguration
-
setSchemaFactory
public void setSchemaFactory(SchemaFactory schemaFactory)
Description copied from interface:JDBCConfigurationTheSchemaFactoryto use for schema information.- Specified by:
setSchemaFactoryin interfaceJDBCConfiguration
-
getSchemaFactoryInstance
public SchemaFactory getSchemaFactoryInstance()
Description copied from interface:JDBCConfigurationTheSchemaFactoryto use for schema information.- Specified by:
getSchemaFactoryInstancein interfaceJDBCConfiguration
-
setSQLFactory
public void setSQLFactory(java.lang.String sqlFactory)
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
setSQLFactoryin interfaceJDBCConfiguration
-
getSQLFactory
public java.lang.String getSQLFactory()
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
getSQLFactoryin interfaceJDBCConfiguration
-
setSQLFactory
public void setSQLFactory(SQLFactory sqlFactory)
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
setSQLFactoryin interfaceJDBCConfiguration
-
getSQLFactoryInstance
public SQLFactory getSQLFactoryInstance()
Description copied from interface:JDBCConfigurationThe SQL factory to use for SQL constructs.- Specified by:
getSQLFactoryInstancein interfaceJDBCConfiguration
-
getMappingFactory
public java.lang.String getMappingFactory()
Description copied from interface:JDBCConfigurationA plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.- Specified by:
getMappingFactoryin interfaceJDBCConfiguration
-
setMappingFactory
public void setMappingFactory(java.lang.String mapping)
Description copied from interface:JDBCConfigurationA plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.- Specified by:
setMappingFactoryin interfaceJDBCConfiguration
-
newMetaDataFactoryInstance
public MetaDataFactory newMetaDataFactoryInstance()
Description copied from interface:OpenJPAConfigurationCreate a newMetaDataFactoryto use with a repository.- Specified by:
newMetaDataFactoryInstancein interfaceOpenJPAConfiguration- Overrides:
newMetaDataFactoryInstancein classOpenJPAConfigurationImpl
-
setMappingDefaults
public void setMappingDefaults(java.lang.String mapping)
Description copied from interface:JDBCConfigurationA plugin string describing theMappingDefaultsto use.- Specified by:
setMappingDefaultsin interfaceJDBCConfiguration
-
getMappingDefaults
public java.lang.String getMappingDefaults()
Description copied from interface:JDBCConfigurationA plugin string describing theMappingDefaultsto use.- Specified by:
getMappingDefaultsin interfaceJDBCConfiguration
-
setMappingDefaults
public void setMappingDefaults(MappingDefaults mapping)
Description copied from interface:JDBCConfigurationTheMappingDefaultsto use with a repository.- Specified by:
setMappingDefaultsin interfaceJDBCConfiguration
-
getMappingDefaultsInstance
public MappingDefaults getMappingDefaultsInstance()
Description copied from interface:JDBCConfigurationTheMappingDefaultsto use with a repository.- Specified by:
getMappingDefaultsInstancein interfaceJDBCConfiguration
-
getMappingRepositoryInstance
public MappingRepository getMappingRepositoryInstance()
Description copied from interface:JDBCConfigurationReturn the mapping repository. Convenience method to cast from the internal metadata repository.- Specified by:
getMappingRepositoryInstancein interfaceJDBCConfiguration
-
newMappingRepositoryInstance
public MappingRepository newMappingRepositoryInstance()
Description copied from interface:JDBCConfigurationReturn a new empty mapping repository of the configured type. Convenience method to cast from metadata repository.- Specified by:
newMappingRepositoryInstancein interfaceJDBCConfiguration
-
newBrokerInstance
public BrokerImpl newBrokerInstance(java.lang.String user, java.lang.String pass)
Description copied from interface:OpenJPAConfigurationCreate a new broker instance with the configured plugin data.- Specified by:
newBrokerInstancein interfaceOpenJPAConfiguration- Overrides:
newBrokerInstancein classOpenJPAConfigurationImpl
-
getConnectionFactory
public java.lang.Object getConnectionFactory()
Description copied from interface:OpenJPAConfigurationThe connection factory, possibly from JNDI.- Specified by:
getConnectionFactoryin interfaceOpenJPAConfiguration- Overrides:
getConnectionFactoryin classOpenJPAConfigurationImpl
-
setConnectionFactory
public void setConnectionFactory(java.lang.Object factory)
Description copied from interface:OpenJPAConfigurationThe connection factory.- Specified by:
setConnectionFactoryin interfaceOpenJPAConfiguration- Overrides:
setConnectionFactoryin classOpenJPAConfigurationImpl
-
getConnectionFactory2
public java.lang.Object getConnectionFactory2()
Description copied from interface:OpenJPAConfigurationThe non-XA connection factory.- Specified by:
getConnectionFactory2in interfaceOpenJPAConfiguration- Overrides:
getConnectionFactory2in classOpenJPAConfigurationImpl
-
setConnectionFactory2
public void setConnectionFactory2(java.lang.Object factory)
Description copied from interface:OpenJPAConfigurationThe non-XA connection factory.- Specified by:
setConnectionFactory2in interfaceOpenJPAConfiguration- Overrides:
setConnectionFactory2in classOpenJPAConfigurationImpl
-
createConnectionFactory
public DecoratingDataSource createConnectionFactory()
Create the connection factory if necessary.
-
getDataSource
public javax.sql.DataSource getDataSource(StoreContext ctx)
Description copied from interface:JDBCConfigurationReturn the primary data source to use. The data source will automatically use the given context's user name and password on calls toDataSource.getConnection(). If the given context is null, the data source will use the configuration's default connection user name and password. If those too are null and the first context has been obtained already, then the user name and password for that context will be used, as we know they represent a valid combination. This method avoids casting the result ofOpenJPAConfiguration.getConnectionFactory(), and avoids having to pass in the user name and password to obtain connections.- Specified by:
getDataSourcein interfaceJDBCConfiguration
-
getDataSource2
public javax.sql.DataSource getDataSource2(StoreContext ctx)
Description copied from interface:JDBCConfigurationReturn the non-enlisted data source to use. If there is a valid non-xa connection factory configured, then it will be returned. Its default user name and password on calls toDataSource.getConnection()will be the specified connection 2 user name and password. If those are null and the given context is non-null, its user name password will be used instead. If the context is null too, then the user name and password used to retrieve the first context will be used. If there is no second connection factory the primary connection factory is used.- Specified by:
getDataSource2in interfaceJDBCConfiguration- See Also:
JDBCConfiguration.getDataSource(org.apache.openjpa.kernel.StoreContext)
-
preClose
protected void preClose()
Free the data sources.- Overrides:
preClosein classOpenJPAConfigurationImpl
-
isInvalidProperty
protected boolean isInvalidProperty(java.lang.String propName)
Description copied from class:ConfigurationImplReturns true if the specified property name should raise a warning if it is not found in the list of known properties.- Overrides:
isInvalidPropertyin classConfigurationImpl
-
getIdentifierUtil
public java.lang.String getIdentifierUtil()
Description copied from interface:JDBCConfigurationGets the String constant that matches theIdentifierUtil- Specified by:
getIdentifierUtilin interfaceJDBCConfiguration- Returns:
- String-based name of the
IdentifierUtil
-
getIdentifierUtilInstance
public DBIdentifierUtil getIdentifierUtilInstance()
Description copied from interface:JDBCConfigurationGets theDBIdentifierUtil- Specified by:
getIdentifierUtilInstancein interfaceJDBCConfiguration- Returns:
- DBIdentifierUtil
-
setIdentifierUtil
public void setIdentifierUtil(DBIdentifierUtil util)
Description copied from interface:JDBCConfigurationSets theDBIdentifierUtil- Specified by:
setIdentifierUtilin interfaceJDBCConfiguration- Parameters:
util- instance of the identifier utility
-
-