Package org.apache.openjpa.jdbc.conf
Interface JDBCConfiguration
- All Superinterfaces:
BeanInfo
,Cloneable
,Closeable
,Configuration
,OpenJPAConfiguration
,Serializable
- All Known Subinterfaces:
DistributedJDBCConfiguration
- All Known Implementing Classes:
DistributedJDBCConfigurationImpl
,JDBCConfigurationImpl
Configuration that defines the properties necessary to configure
runtime and connect to a JDBC DataSource.
- Author:
- Marc Prud'hommeaux
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the logger for additional jdbc messages:openjpa.jdbc.DIAG
.static final String
Name of the logger for JDBC-related messages:openjpa.jdbc.JDBC
.static final String
Name of the logger for schema-related messages:openjpa.jdbc.Schema
.static final String
Name of the logger for SQL execution messages:openjpa.jdbc.SQL
.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.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
-
Method Summary
Modifier and TypeMethodDescriptionTheConnectionDecorator
s to use.A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.Return the primary data source to use.Return the non-enlisted data source to use.TheDBDictionary
to use to define the RDBMS SQL information.TheDBDictionary
to use.Specifies the default eager fetch mode to use.int
Return the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
The JDBC fetch direction.int
Return the result set constant for the fetch direction.Gets the String constant that matches theIdentifierUtil
Gets theDBIdentifierUtil
TheJDBCListener
s to use.A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.How to obtain the size of large result sets.int
Return theLRSSizes
constant for the large result set size setting.A plugin string describing theMappingDefaults
to use.TheMappingDefaults
to use with a repository.A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data.Return the mapping repository.The JDBC result set type.int
Return the result set constant for the result set type.Default schema for unqualified tables.The plugin string for theSchemaFactory
to use to provide schema information during system initialization.TheSchemaFactory
to use for schema information.Comma-separated list of modifiable schemas for persistent instances.String[]
Modificable schema components.The SQL factory to use for SQL constructs.The SQL factory to use for SQL constructs.Specifies the default subclass fetch mode to use.int
Return the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.The transaction isolation level to use at the database level.int
Return the proper transaction isolation level constant fromConnection
, or -1 for the default level.TheUpdateManager
to use for managing SQL updates.TheUpdateManager
for runtime data store interaction.Return a new empty mapping repository of the configured type.void
setConnectionDecorators
(String decorators) A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections.void
setConnectionDecorators
(ConnectionDecorator[] decorators) TheConnectionDecorator
s to use.void
setDBDictionary
(String dbdictionary) TheDBDictionary
to use to define the RDBMS SQL information.void
setDBDictionary
(DBDictionary dbdictionary) TheDBDictionary
to use.void
setDriverDataSource
(String driverDataSource) void
setEagerFetchMode
(int eagerFetchMode) Set the eager fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
void
setEagerFetchMode
(String mode) Specifies the default eager fetch mode to use.void
setFetchDirection
(int direction) Set the result set fetch direction constant.void
setFetchDirection
(String direction) The JDBC fetch direction.void
Sets theDBIdentifierUtil
void
setJDBCListeners
(String jdbcListeners) A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s.void
setJDBCListeners
(JDBCListener[] jdbcListeners) TheJDBCListener
s to use.void
setLRSSize
(int size) Set the fetch configuration large result set size constant.void
setLRSSize
(String lrsSize) How to obtain the size of large result sets.void
setMappingDefaults
(String map) A plugin string describing theMappingDefaults
to use.void
TheMappingDefaults
to use with a repository.void
setMappingFactory
(String mappingFactory) A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data.void
setResultSetType
(int type) Set the result set constant type.void
setResultSetType
(String type) The JDBC result set type.void
Default schema for unqualified tables.void
setSchemaFactory
(String schemaFactory) The plugin string for theSchemaFactory
to use to provide schema information during system initialization.void
setSchemaFactory
(SchemaFactory schemaFactory) TheSchemaFactory
to use for schema information.void
setSchemas
(String schemas) Comma-separated list of modifiable schemas for persistent instances.void
setSchemas
(String[] schemas) Modifiable schema components.void
setSQLFactory
(String sqlFactory) The SQL factory to use for SQL constructs.void
setSQLFactory
(SQLFactory sqlFactory) The SQL factory to use for SQL constructs.void
setSubclassFetchMode
(int subclassFetchMode) Set the subclass fetch mode as one of the following symbolic constants:EagerFetchModes.EAGER_NONE
EagerFetchModes.EAGER_JOIN
EagerFetchModes.EAGER_PARALLEL
void
setSubclassFetchMode
(String mode) Specifies the default subclass fetch mode to use.void
setSynchronizeMappings
(String synchronizeMappings) Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.void
setTransactionIsolation
(int level) Set the proper transaction isolation level constant fromConnection
, or -1 for the default level.void
setTransactionIsolation
(String level) The transaction isolation level to use at the database level.void
setUpdateManager
(String updateManager) TheUpdateManager
to use for managing SQL updates.void
setUpdateManager
(UpdateManager updateManager) TheUpdateManager
for runtime data store interaction.Methods inherited from 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, getConnectionFactory, getConnectionFactory2, 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, newBrokerInstance, newInverseManagerInstance, newLockManagerInstance, newMetaDataFactoryInstance, 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, setConnectionFactory, setConnectionFactory2, setConnectionFactory2Name, setConnectionFactory2Properties, setConnectionFactoryMode, setConnectionFactoryModeManaged, setConnectionFactoryName, setConnectionFactoryProperties, setConnectionPassword, setConnectionProperties, setConnectionRetainMode, setConnectionRetainMode, setConnectionURL, setConnectionUserName, setDataCache, setDataCacheManager, setDataCacheManager, setDataCacheMode, setDataCacheTimeout, setDataCacheTimeout, setDetachState, setDetachState, setDynamicDataStructs, setDynamicDataStructs, setDynamicEnhancementAgent, setEncryptionProvider, setFetchBatchSize, setFetchBatchSize, setFetchGroups, setFetchGroups, setFilterListeners, setFilterListeners, setFinderCache, setFlushBeforeQueries, setFlushBeforeQueries, setIgnoreChanges, setIgnoreChanges, setInitializeEagerly, setInstrumentation, setInverseManager, setLifecycleEventManager, setLockManager, setLockTimeout, setLockTimeout, setManagedRuntime, setManagedRuntime, setMapping, setMaxFetchDepth, setMaxFetchDepth, setMetaDataFactory, setMetaDataRepository, setMetaDataRepository, setMultithreaded, setMultithreaded, setNontransactionalRead, setNontransactionalRead, setNontransactionalWrite, setNontransactionalWrite, setOptimistic, setOptimistic, setOptimizeIdCopy, setOptimizeIdCopy, setOrphanedKeyAction, setOrphanedKeyAction, setPostLoadOnMerge, setPostLoadOnMerge, setProxyManager, setProxyManager, setQueryCache, setQueryCompilationCache, setQuerySQLCache, setQuerySQLCache, setQueryTimeout, setReadLockLevel, setReadLockLevel, setRefreshFromDataCache, setRefreshFromDataCache, setRemoteCommitEventManager, setRemoteCommitProvider, setRestoreState, setRestoreState, setRetainState, setRetainState, setRetryClassRegistration, setRetryClassRegistration, setRuntimeUnenhancedClasses, setRuntimeUnenhancedClasses, setSavepointManager, setSequence, setSequence, setSpecification, setSpecification, setTransactionMode, setTransactionModeManaged, setTypesWithoutEnhancement, setUseTCCLinSelectNew, setUseTCCLinSelectNew, setValidationFactory, setValidationGroupPrePersist, setValidationGroupPreRemove, setValidationGroupPreUpdate, setValidationMode, setValidatorInstance, setWriteLockLevel, setWriteLockLevel, supportedOptions
-
Field Details
-
LOG_SQL
Name of the logger for SQL execution messages:openjpa.jdbc.SQL
.- See Also:
-
LOG_DIAG
Name of the logger for additional jdbc messages:openjpa.jdbc.DIAG
.- See Also:
-
LOG_JDBC
Name of the logger for JDBC-related messages:openjpa.jdbc.JDBC
.- See Also:
-
LOG_SCHEMA
Name of the logger for schema-related messages:openjpa.jdbc.Schema
.- See Also:
-
-
Method Details
-
getSchema
String getSchema()Default schema for unqualified tables. -
setSchema
Default schema for unqualified tables. -
getSchemas
String getSchemas()Comma-separated list of modifiable schemas for persistent instances. -
setSchemas
Comma-separated list of modifiable schemas for persistent instances. -
getSchemasList
String[] getSchemasList()Modificable schema components. -
setSchemas
Modifiable schema components. -
getTransactionIsolation
String getTransactionIsolation()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.
-
setTransactionIsolation
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.
-
getTransactionIsolationConstant
int getTransactionIsolationConstant()Return the proper transaction isolation level constant fromConnection
, or -1 for the default level. -
setTransactionIsolation
void setTransactionIsolation(int level) Set the proper transaction isolation level constant fromConnection
, or -1 for the default level. -
getResultSetType
String getResultSetType()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.
-
getResultSetTypeConstant
int getResultSetTypeConstant()Return the result set constant for the result set type. -
setResultSetType
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.
-
setResultSetType
void setResultSetType(int type) Set the result set constant type. -
getFetchDirection
String getFetchDirection()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.
-
getFetchDirectionConstant
int getFetchDirectionConstant()Return the result set constant for the fetch direction. -
setFetchDirection
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.
-
setFetchDirection
void setFetchDirection(int direction) Set the result set fetch direction constant. -
getEagerFetchMode
String getEagerFetchMode()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.
- Since:
- 0.3.0
-
setEagerFetchMode
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.
-
getEagerFetchModeConstant
int getEagerFetchModeConstant()Return the eager fetch mode as one of the following symbolic constants:- Since:
- 0.3.0
-
setEagerFetchMode
void setEagerFetchMode(int eagerFetchMode) Set the eager fetch mode as one of the following symbolic constants:- Since:
- 0.3.0
-
getSubclassFetchMode
String getSubclassFetchMode()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.
- Since:
- 0.3.2
-
setSubclassFetchMode
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.
- Since:
- 0.3.2
-
getSubclassFetchModeConstant
int getSubclassFetchModeConstant()Return the subclass fetch mode as one of the following symbolic constants:- Since:
- 0.3.2
-
setSubclassFetchMode
void setSubclassFetchMode(int subclassFetchMode) Set the subclass fetch mode as one of the following symbolic constants:- Since:
- 0.3.2
-
getLRSSize
String getLRSSize()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.
-
getLRSSizeConstant
int getLRSSizeConstant()Return theLRSSizes
constant for the large result set size setting. -
setLRSSize
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.
-
setLRSSize
void setLRSSize(int size) Set the fetch configuration large result set size constant. -
getSynchronizeMappings
String getSynchronizeMappings()Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema. -
setSynchronizeMappings
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema. -
getJDBCListeners
String getJDBCListeners()A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s. -
setJDBCListeners
A comma-separated list of theJDBCListener
plugins for listening toJDBCEvent
s. -
getJDBCListenerInstances
JDBCListener[] getJDBCListenerInstances()TheJDBCListener
s to use. -
setJDBCListeners
TheJDBCListener
s to use. -
getConnectionDecorators
String getConnectionDecorators()A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections. -
setConnectionDecorators
A comma-separated list of theConnectionDecorator
for adding functionality to JDBC connections. -
getConnectionDecoratorInstances
ConnectionDecorator[] getConnectionDecoratorInstances()TheConnectionDecorator
s to use. -
setConnectionDecorators
TheConnectionDecorator
s to use. -
getDBDictionary
String getDBDictionary()TheDBDictionary
to use to define the RDBMS SQL information. -
setDBDictionary
TheDBDictionary
to use to define the RDBMS SQL information. -
getDBDictionaryInstance
DBDictionary getDBDictionaryInstance()TheDBDictionary
to use. -
setDBDictionary
TheDBDictionary
to use. -
getUpdateManager
String getUpdateManager()TheUpdateManager
to use for managing SQL updates. -
setUpdateManager
TheUpdateManager
to use for managing SQL updates. -
getUpdateManagerInstance
UpdateManager getUpdateManagerInstance()TheUpdateManager
for runtime data store interaction. -
setUpdateManager
TheUpdateManager
for runtime data store interaction. -
getDriverDataSource
String getDriverDataSource() -
setDriverDataSource
-
newDriverDataSourceInstance
DriverDataSource newDriverDataSourceInstance() -
getSchemaFactory
String getSchemaFactory()The plugin string for theSchemaFactory
to use to provide schema information during system initialization. -
setSchemaFactory
The plugin string for theSchemaFactory
to use to provide schema information during system initialization. -
getSchemaFactoryInstance
SchemaFactory getSchemaFactoryInstance()TheSchemaFactory
to use for schema information. -
setSchemaFactory
TheSchemaFactory
to use for schema information. -
getSQLFactory
String getSQLFactory()The SQL factory to use for SQL constructs. -
getSQLFactoryInstance
SQLFactory getSQLFactoryInstance()The SQL factory to use for SQL constructs. -
setSQLFactory
The SQL factory to use for SQL constructs. -
setSQLFactory
The SQL factory to use for SQL constructs. -
getMappingFactory
String getMappingFactory()A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data. -
setMappingFactory
A plugin string describing theMetaDataFactory
to use for loading and storing object-relational mapping data. -
getMappingDefaults
String getMappingDefaults()A plugin string describing theMappingDefaults
to use.- Since:
- 0.4.0
-
setMappingDefaults
A plugin string describing theMappingDefaults
to use.- Since:
- 0.4.0
-
getMappingDefaultsInstance
MappingDefaults getMappingDefaultsInstance()TheMappingDefaults
to use with a repository.- Since:
- 0.4.0
-
setMappingDefaults
TheMappingDefaults
to use with a repository.- Since:
- 0.4.0
-
getMappingRepositoryInstance
MappingRepository getMappingRepositoryInstance()Return the mapping repository. Convenience method to cast from the internal metadata repository. -
newMappingRepositoryInstance
MappingRepository newMappingRepositoryInstance()Return a new empty mapping repository of the configured type. Convenience method to cast from metadata repository. -
getDataSource
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. -
getDataSource2
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. -
getIdentifierUtil
String getIdentifierUtil()Gets the String constant that matches theIdentifierUtil
- Returns:
- String-based name of the
IdentifierUtil
-
getIdentifierUtilInstance
DBIdentifierUtil getIdentifierUtilInstance()Gets theDBIdentifierUtil
- Returns:
- DBIdentifierUtil
-
setIdentifierUtil
Sets theDBIdentifierUtil
- Parameters:
util
- instance of the identifier utility
-