Package org.apache.openjpa.jdbc.conf
Interface JDBCConfiguration
-
- All Superinterfaces:
java.beans.BeanInfo,java.lang.Cloneable,Closeable,Configuration,OpenJPAConfiguration,java.io.Serializable
- All Known Subinterfaces:
DistributedJDBCConfiguration
- All Known Implementing Classes:
DistributedJDBCConfigurationImpl,JDBCConfigurationImpl
public interface JDBCConfiguration extends OpenJPAConfiguration
Configuration that defines the properties necessary to configure runtime and connect to a JDBC DataSource.- Author:
- Marc Prud'hommeaux
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOG_DIAGName of the logger for additional jdbc messages:openjpa.jdbc.DIAG.static java.lang.StringLOG_JDBCName of the logger for JDBC-related messages:openjpa.jdbc.JDBC.static java.lang.StringLOG_SCHEMAName of the logger for schema-related messages:openjpa.jdbc.Schema.static java.lang.StringLOG_SQLName 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionDecorator[]getConnectionDecoratorInstances()TheConnectionDecorators to use.java.lang.StringgetConnectionDecorators()A comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.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.DriverDataSourcenewDriverDataSourceInstance()MappingRepositorynewMappingRepositoryInstance()Return a new empty mapping repository of the configured type.voidsetConnectionDecorators(java.lang.String decorators)A comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.voidsetConnectionDecorators(ConnectionDecorator[] decorators)TheConnectionDecorators to use.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 mode)Specifies the default eager fetch mode to use.voidsetFetchDirection(int direction)Set the result set fetch direction constant.voidsetFetchDirection(java.lang.String direction)The JDBC fetch direction.voidsetIdentifierUtil(DBIdentifierUtil util)Sets theDBIdentifierUtilvoidsetJDBCListeners(java.lang.String jdbcListeners)A comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.voidsetJDBCListeners(JDBCListener[] jdbcListeners)TheJDBCListeners to use.voidsetLRSSize(int size)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 map)A plugin string describing theMappingDefaultsto use.voidsetMappingDefaults(MappingDefaults map)TheMappingDefaultsto use with a repository.voidsetMappingFactory(java.lang.String mappingFactory)A plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.voidsetResultSetType(int type)Set the result set constant type.voidsetResultSetType(java.lang.String type)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 mode)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 level)Set the proper transaction isolation level constant fromConnection, or -1 for the default level.voidsetTransactionIsolation(java.lang.String level)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 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 Detail
-
LOG_SQL
static final java.lang.String LOG_SQL
Name of the logger for SQL execution messages:openjpa.jdbc.SQL.- See Also:
- Constant Field Values
-
LOG_DIAG
static final java.lang.String LOG_DIAG
Name of the logger for additional jdbc messages:openjpa.jdbc.DIAG.- See Also:
- Constant Field Values
-
LOG_JDBC
static final java.lang.String LOG_JDBC
Name of the logger for JDBC-related messages:openjpa.jdbc.JDBC.- See Also:
- Constant Field Values
-
LOG_SCHEMA
static final java.lang.String LOG_SCHEMA
Name of the logger for schema-related messages:openjpa.jdbc.Schema.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSchema
java.lang.String getSchema()
Default schema for unqualified tables.
-
setSchema
void setSchema(java.lang.String schema)
Default schema for unqualified tables.
-
getSchemas
java.lang.String getSchemas()
Comma-separated list of modifiable schemas for persistent instances.
-
setSchemas
void setSchemas(java.lang.String schemas)
Comma-separated list of modifiable schemas for persistent instances.
-
getSchemasList
java.lang.String[] getSchemasList()
Modificable schema components.
-
setSchemas
void setSchemas(java.lang.String[] schemas)
Modifiable schema components.
-
getTransactionIsolation
java.lang.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_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.
-
setTransactionIsolation
void setTransactionIsolation(java.lang.String level)
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_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.
-
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
java.lang.String getResultSetType()
The 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.
-
getResultSetTypeConstant
int getResultSetTypeConstant()
Return the result set constant for the result set type.
-
setResultSetType
void setResultSetType(java.lang.String type)
The 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.
-
setResultSetType
void setResultSetType(int type)
Set the result set constant type.
-
getFetchDirection
java.lang.String getFetchDirection()
The JDBC fetch direction. Defaults toforward.forward: The standard JDBCResultSet.FETCH_FORWARDdirection.reverse: The standard JDBCResultSet.FETCH_REVERSEdirection.unknown: The standard JDBCResultSet.FETCH_UNKNOWNdirection.
-
getFetchDirectionConstant
int getFetchDirectionConstant()
Return the result set constant for the fetch direction.
-
setFetchDirection
void setFetchDirection(java.lang.String direction)
The JDBC fetch direction. Defaults toforward.forward: The standard JDBCResultSet.FETCH_FORWARDdirection.reverse: The standard JDBCResultSet.FETCH_REVERSEdirection.unknown: The standard JDBCResultSet.FETCH_UNKNOWNdirection.
-
setFetchDirection
void setFetchDirection(int direction)
Set the result set fetch direction constant.
-
getEagerFetchMode
java.lang.String getEagerFetchMode()
Specifies 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.
- Since:
- 0.3.0
-
setEagerFetchMode
void setEagerFetchMode(java.lang.String mode)
Specifies 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.
-
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
java.lang.String getSubclassFetchMode()
Specifies 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.
- Since:
- 0.3.2
-
setSubclassFetchMode
void setSubclassFetchMode(java.lang.String mode)
Specifies 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.
- 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
java.lang.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 theLRSSizesconstant for the large result set size setting.
-
setLRSSize
void setLRSSize(java.lang.String lrsSize)
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
java.lang.String getSynchronizeMappings()
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.
-
setSynchronizeMappings
void setSynchronizeMappings(java.lang.String synchronizeMappings)
Whether OpenJPA should try to automatically refresh O/R mapping information and the database schema.
-
getJDBCListeners
java.lang.String getJDBCListeners()
A comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.
-
setJDBCListeners
void setJDBCListeners(java.lang.String jdbcListeners)
A comma-separated list of theJDBCListenerplugins for listening toJDBCEvents.
-
getJDBCListenerInstances
JDBCListener[] getJDBCListenerInstances()
TheJDBCListeners to use.
-
setJDBCListeners
void setJDBCListeners(JDBCListener[] jdbcListeners)
TheJDBCListeners to use.
-
getConnectionDecorators
java.lang.String getConnectionDecorators()
A comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.
-
setConnectionDecorators
void setConnectionDecorators(java.lang.String decorators)
A comma-separated list of theConnectionDecoratorfor adding functionality to JDBC connections.
-
getConnectionDecoratorInstances
ConnectionDecorator[] getConnectionDecoratorInstances()
TheConnectionDecorators to use.
-
setConnectionDecorators
void setConnectionDecorators(ConnectionDecorator[] decorators)
TheConnectionDecorators to use.
-
getDBDictionary
java.lang.String getDBDictionary()
TheDBDictionaryto use to define the RDBMS SQL information.
-
setDBDictionary
void setDBDictionary(java.lang.String dbdictionary)
TheDBDictionaryto use to define the RDBMS SQL information.
-
getDBDictionaryInstance
DBDictionary getDBDictionaryInstance()
TheDBDictionaryto use.
-
setDBDictionary
void setDBDictionary(DBDictionary dbdictionary)
TheDBDictionaryto use.
-
getUpdateManager
java.lang.String getUpdateManager()
TheUpdateManagerto use for managing SQL updates.
-
setUpdateManager
void setUpdateManager(java.lang.String updateManager)
TheUpdateManagerto use for managing SQL updates.
-
getUpdateManagerInstance
UpdateManager getUpdateManagerInstance()
TheUpdateManagerfor runtime data store interaction.
-
setUpdateManager
void setUpdateManager(UpdateManager updateManager)
TheUpdateManagerfor runtime data store interaction.
-
getDriverDataSource
java.lang.String getDriverDataSource()
-
setDriverDataSource
void setDriverDataSource(java.lang.String driverDataSource)
-
newDriverDataSourceInstance
DriverDataSource newDriverDataSourceInstance()
-
getSchemaFactory
java.lang.String getSchemaFactory()
The plugin string for theSchemaFactoryto use to provide schema information during system initialization.
-
setSchemaFactory
void setSchemaFactory(java.lang.String schemaFactory)
The plugin string for theSchemaFactoryto use to provide schema information during system initialization.
-
getSchemaFactoryInstance
SchemaFactory getSchemaFactoryInstance()
TheSchemaFactoryto use for schema information.
-
setSchemaFactory
void setSchemaFactory(SchemaFactory schemaFactory)
TheSchemaFactoryto use for schema information.
-
getSQLFactory
java.lang.String getSQLFactory()
The SQL factory to use for SQL constructs.
-
getSQLFactoryInstance
SQLFactory getSQLFactoryInstance()
The SQL factory to use for SQL constructs.
-
setSQLFactory
void setSQLFactory(java.lang.String sqlFactory)
The SQL factory to use for SQL constructs.
-
setSQLFactory
void setSQLFactory(SQLFactory sqlFactory)
The SQL factory to use for SQL constructs.
-
getMappingFactory
java.lang.String getMappingFactory()
A plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.
-
setMappingFactory
void setMappingFactory(java.lang.String mappingFactory)
A plugin string describing theMetaDataFactoryto use for loading and storing object-relational mapping data.
-
getMappingDefaults
java.lang.String getMappingDefaults()
A plugin string describing theMappingDefaultsto use.- Since:
- 0.4.0
-
setMappingDefaults
void setMappingDefaults(java.lang.String map)
A plugin string describing theMappingDefaultsto use.- Since:
- 0.4.0
-
getMappingDefaultsInstance
MappingDefaults getMappingDefaultsInstance()
TheMappingDefaultsto use with a repository.- Since:
- 0.4.0
-
setMappingDefaults
void setMappingDefaults(MappingDefaults map)
TheMappingDefaultsto 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
javax.sql.DataSource getDataSource(StoreContext ctx)
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
javax.sql.DataSource getDataSource2(StoreContext ctx)
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
java.lang.String getIdentifierUtil()
Gets the String constant that matches theIdentifierUtil- Returns:
- String-based name of the
IdentifierUtil
-
getIdentifierUtilInstance
DBIdentifierUtil getIdentifierUtilInstance()
Gets theDBIdentifierUtil- Returns:
- DBIdentifierUtil
-
setIdentifierUtil
void setIdentifierUtil(DBIdentifierUtil util)
Sets theDBIdentifierUtil- Parameters:
util- instance of the identifier utility
-
-