Package org.apache.openjpa.conf
Interface OpenJPAConfiguration
-
- All Superinterfaces:
java.beans.BeanInfo
,java.lang.Cloneable
,Closeable
,Configuration
,java.io.Serializable
- All Known Subinterfaces:
DistributedConfiguration
,DistributedJDBCConfiguration
,JDBCConfiguration
- All Known Implementing Classes:
DistributedJDBCConfigurationImpl
,JDBCConfigurationImpl
,OpenJPAConfigurationImpl
,XMLConfiguration
public interface OpenJPAConfiguration extends Configuration
Defines the properties necessary to configure runtime properties and connect to a data source. There is a 1-1 relation between a configuration and aBrokerFactory
. All setter methods that take primitive parameters also have wrapper setter with the appropriate primitive wrapper. This is so the interface can be in accordance with the J2EE Connector Architecture.- Author:
- Marc Prud'hommeaux, Abe White
- See Also:
Configuration
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOG_DATACACHE
Name of logger for messages from the data cache:openjpa.DataCache
.static java.lang.String
LOG_ENHANCE
Name of logger for enhancement-related messages:openjpa.Enhance
.static java.lang.String
LOG_METADATA
Name of logger for metadata-related messages:openjpa.MetaData
.static java.lang.String
LOG_QUERY
Name of logger for query logging:openjpa.Query
.static java.lang.String
LOG_RUNTIME
Name of logger for messages from the runtime system:openjpa.Runtime
.static java.lang.String
LOG_TOOL
Name of logger for messages from the development tools:openjpa.Tool
.static java.lang.String
OPTION_DATASTORE_CONNECTION
Option for runtimes that support returning the datastore connection.static java.lang.String
OPTION_EMBEDDED_COLLECTION_RELATION
Option for runtimes that support collections of embedded relations to other persistence capable objects.static java.lang.String
OPTION_EMBEDDED_MAP_RELATION
Option for runtimes that support maps of embedded relations to other persistence capable objects.static java.lang.String
OPTION_EMBEDDED_RELATION
Option for runtimes that support embedded relations to other persistence capable objects.static java.lang.String
OPTION_ID_APPLICATION
Option for runtimes that support application identity.static java.lang.String
OPTION_ID_DATASTORE
Option for runtimes that support application identity.static java.lang.String
OPTION_INC_FLUSH
Option for runtimes that support incremental flushing.static java.lang.String
OPTION_JDBC_CONNECTION
Option for runtimes that support returning the datastore connection that is a JDBC Connection.static java.lang.String
OPTION_NONTRANS_READ
Option for runtimes that support nontransactional reads.static java.lang.String
OPTION_NULL_CONTAINER
Option for runtime that can differentiate between null and empty container fields.static java.lang.String
OPTION_OPTIMISTIC
Option for runtimes that support optimistic transactions.static java.lang.String
OPTION_POSTLOAD_ON_MERGE
Option for enable fire @PostLoad events on merge operationsstatic java.lang.String
OPTION_QUERY_SQL
Option for SQL support.static java.lang.String
OPTION_TYPE_ARRAY
Option for runtimes that support persistent array fields.static java.lang.String
OPTION_TYPE_COLLECTION
Option for runtimes that support persistent collection fields.static java.lang.String
OPTION_TYPE_MAP
Option for runtimes that support persistent map fields.static java.lang.String
OPTION_USE_TCCL_IN_SELECT_NEW
Option to enable TCCL if the result class for select new is not found in the entities classloaderstatic java.lang.String
OPTION_VALUE_AUTOASSIGN
Option for runtimes that the autoassign value strategy.static java.lang.String
OPTION_VALUE_INCREMENT
Option for runtimes that the increment value strategy.-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AggregateListener[]
getAggregateListenerInstances()
Return the query function listeners.java.lang.String
getAggregateListeners()
A comma-separted list of the plugin strings of the queryAggregateListener
s to use.java.lang.String
getAuditor()
Gets the plug-in string ofAuditor
specified in this configuration.Auditor
getAuditorInstance()
Gets the singular instance ofAuditor
associated with this configuration.java.lang.String
getAutoClear()
Whether instances clear their state when entering a transaction.int
getAutoClearConstant()
Return theAutoClear
constant.java.lang.String
getAutoDetach()
A comma-separated list of events which trigger auto-detachment in place of managed states.int
getAutoDetachConstant()
TheAutoDetach
flags.java.lang.String
getBrokerFactory()
TheBrokerFactory
class to use.BrokerFactoryEventManager
getBrokerFactoryEventManager()
Return theBrokerFactoryEventManager
associated with this configuration.java.lang.String
getBrokerImpl()
The plugin string of theBrokerImpl
extension to create.java.lang.String
getCacheDistributionPolicy()
Gets the plug-in string that described the policy to distribute cached instances across named partitions of L2 data cache.CacheDistributionPolicy
getCacheDistributionPolicyInstance()
Gets the policy object that determines distribution of cached instances across named partitions of L2 data cache.java.util.Map<java.lang.String,CacheMarshaller>
getCacheMarshallerInstances()
Return the cache marshaller listeners.java.lang.String
getCacheMarshallers()
A comma-separted list of the plugin strings specifying theCacheMarshaller
s to use.java.lang.String
getCallbackOptions()
Options for configuring callbacks as a String.CallbackOptions
getCallbackOptionsInstance()
Options for configuring callbacks.java.lang.String
getClassResolver()
The plugin string for theClassResolver
to use for custom class loading.ClassResolver
getClassResolverInstance()
TheClassResolver
to use.java.lang.String
getCompatibility()
Backwards compatibility options.Compatibility
getCompatibilityInstance()
Backwards compatibility options.java.lang.String
getConnection2DriverName()
Class name of the non-XA connection driver.java.lang.String
getConnection2Password()
The password for the non-XA data store connection.java.lang.String
getConnection2Properties()
These properties provide any additional information needed to establish non-XA connections.java.lang.String
getConnection2URL()
The URL for the non-XA data store connection.java.lang.String
getConnection2UserName()
The user name for the non-XA data store connection.java.lang.String
getConnectionDriverName()
Class name of the connection driver.java.lang.Object
getConnectionFactory()
The connection factory, possibly from JNDI.java.lang.Object
getConnectionFactory2()
The non-XA connection factory.java.lang.String
getConnectionFactory2Name()
The name for the second data store connection factory.java.lang.String
getConnectionFactory2Properties()
Configuration properties for the non-XA connection factory.java.lang.String
getConnectionFactoryMode()
The mode of the connection factory in use.java.lang.String
getConnectionFactoryName()
The name for the data store connection factory.java.lang.String
getConnectionFactoryProperties()
Configuration properties for the connection factory.java.lang.String
getConnectionPassword()
The password for the data store connection.java.lang.String
getConnectionProperties()
These properties provide any additional information needed to establish connections.java.lang.String
getConnectionRetainMode()
Specifies the behavior of the broker with respect to data store connections.int
getConnectionRetainModeConstant()
Return the connection retain mode as one of the following symbolic constants:ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
java.lang.String
getConnectionURL()
The URL for the data store connection.java.lang.String
getConnectionUserName()
The user name for the data store connection.java.lang.String
getCreateScriptSource()
java.lang.String
getCreateScriptTarget()
java.lang.String
getCreateSource()
Optional run a DB action before accessing the database.int
getCreateSourceConstant()
java.lang.String
getDatabaseAction()
database action from the persistence unit.int
getDatabaseActionConstant()
java.lang.String
getDataCache()
TheDataCache
to use for level-2 data store caching.java.lang.String
getDataCacheManager()
The data cache manager manages this configuration's cache instances.DataCacheManager
getDataCacheManagerInstance()
The data cache manager manages this configuration's cache instances.java.lang.String
getDataCacheMode()
Return the String constant that matches theDataCacheMode
int
getDataCacheTimeout()
Default data cache timeout.DetachOptions
getDetachStateInstance()
Return the instance specified by the detach state plugin.java.lang.String
getDropScriptSource()
java.lang.String
getDropScriptTarget()
java.lang.String
getDropSource()
Similar togetCreateSource()
but for dropping the database schema and content.int
getDropSourceConstant()
boolean
getDynamicDataStructs()
Return whether to generate dynamic data structures where possible for cache and runtime usage.boolean
getDynamicEnhancementAgent()
Whether OpenJPA will attempt to dynamically load the enhancement agent.EncryptionProvider
getEncryptionProvider()
Gets theEncryptionProvider
.int
getFetchBatchSize()
Get the size of the batch that will be pre-selected when accessing elements in a query or relationship.java.lang.String
getFetchGroups()
Comma-separated list of fetch group names that will be pre-set for all newFetchConfiguration
s.java.lang.String[]
getFetchGroupsList()
List of fetch group names that will be pre-set for all newFetchConfiguration
s.FilterListener[]
getFilterListenerInstances()
Return the query filter listeners.java.lang.String
getFilterListeners()
A comma-separted list of the plugin strings of the queryFilterListener
s to use.java.lang.String
getFinderCache()
Get the string configuration of the finder cache.FinderCache
getFinderCacheInstance()
Get the cache of finder queries.java.lang.String
getFlushBeforeQueries()
Returns whether or not OpenJPA should automatically flush modifications to the data store before executing queries.int
getFlushBeforeQueriesConstant()
Returns one ofQueryFlushModes.FLUSH_TRUE
,QueryFlushModes.FLUSH_FALSE
, orQueryFlushModes.FLUSH_WITH_CONNECTION
, as determined by parsing the string returned bygetFlushBeforeQueries()
.boolean
getIgnoreChanges()
Whether changes in the current transaction are taken into account when executing queries and iterating extents.java.lang.String
getInstrumentation()
Gets the plug-in string that defines instrumentation providers and what they instrument.InstrumentationManager
getInstrumentationManagerInstance()
Gets an instance of the instrumentation manager.java.lang.String
getInverseManager()
The plugin to use for managing inverse relations.java.lang.String
getLifecycleEventManager()
Gets the lifecycle event manager instance classname.LifecycleEventManager
getLifecycleEventManagerInstance()
Gets the lifecycle event manager instance.java.lang.String
getLoadScriptSource()
Can be used to load a set of initial data into the database.java.lang.String
getLockManager()
The plugin to use for datastore lock management.int
getLockTimeout()
The time to wait for an object lock in milliseconds, or -1 for no timeout.java.lang.String
getManagedRuntime()
The plugin string for theManagedRuntime
to use for managed environments.ManagedRuntime
getManagedRuntimeInstance()
The plugin to use for integrating with a managed runtime.java.lang.String
getMapping()
The name mapping to use for this data store.int
getMaxFetchDepth()
The maximum relation depth to traverse when eager fetching.java.lang.String
getMetaDataFactory()
A plugin string describing theMetaDataFactory
to use.java.lang.String
getMetaDataRepository()
A plugin string describing theMetaDataRepository
to use.MetaDataRepository
getMetaDataRepositoryInstance()
The metadata repository of managed class information.boolean
getMultithreaded()
Whether brokers or their managed objects will be used by multiple concurrent threads.boolean
getNontransactionalRead()
Whether persistent state is accessible outside a transaction by default.boolean
getNontransactionalWrite()
Whether persistent state can be modified outside a transaction by default.boolean
getOptimistic()
Whether to use optimistic transactions by default.boolean
getOptimizeIdCopy()
Whether to attempt to optimize id class copy operations during the enhancement process.java.lang.String
getOrphanedKeyAction()
The action to take when an orphaned key is detected.OrphanedKeyAction
getOrphanedKeyActionInstance()
The action to take when an orphaned key is detected.boolean
getPostLoadOnMerge()
Whether to send @PostLoad events on a merge operation.java.lang.String
getProxyManager()
The plugin string for theProxyManager
to use for second class object proxies.ProxyManager
getProxyManagerInstance()
TheProxyManager
to use.java.lang.String
getQueryCache()
The plugin to use for level-2 data store query caching.java.lang.String
getQueryCompilationCache()
Configuration settings for the query compilation cache to use.java.util.Map
getQueryCompilationCacheInstance()
Configuration settings for the query compilation cache to use.java.lang.String
getQuerySQLCache()
Gets the configuration of QuerySQLCache.PreparedQueryCache
getQuerySQLCacheInstance()
Return PreparedQueryCache used for caching datastore queries.int
getQueryTimeout()
The time to wait for a query to execute in milliseconds, or -1 for no timeout.java.lang.String
getReadLockLevel()
The default read lock level to use during non-optimistic transactions.int
getReadLockLevelConstant()
The numeric read lock level.boolean
getRefreshFromDataCache()
Gets whether entity state is to be refreshed fromDataCache
.RemoteCommitEventManager
getRemoteCommitEventManager()
The remote event manager that manages this configuration's remote event listeners.java.lang.String
getRemoteCommitProvider()
The plugin to use for remote commit notification.java.lang.String
getRestoreState()
Whether to restore initial state on rollback by default.int
getRestoreStateConstant()
Return theRestoreState
constant.boolean
getRetainState()
Whether to retain state after a transaction by default.boolean
getRetryClassRegistration()
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed.java.lang.String
getRuntimeUnenhancedClasses()
Specifies how OpenJPA handles unenhanced types.int
getRuntimeUnenhancedClassesConstant()
Return the runtime class optimization setting as one of the following symbolic constants:RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
java.lang.String
getSavepointManager()
The plugin to use for savepoint management.SavepointManager
getSavepointManagerInstance()
Return the configured savepoint manager instance.java.lang.String
getScriptsAction()
Similar togetDatabaseAction()
but write the generated SQL to files.int
getScriptsActionConstant()
java.lang.String
getSequence()
Plugin string for the default systemSeq
.Seq
getSequenceInstance()
The default system sequence.java.lang.String
getSpecification()
Get a name of the Specification.Specification
getSpecificationInstance()
Get the Specification.StoreFacadeTypeRegistry
getStoreFacadeTypeRegistry()
Return theStoreFacadeTypeRegistry
instance associated with this configuration.java.lang.String
getTransactionMode()
Specifies the behavior of the transaction model.java.util.Collection<java.lang.Class<?>>
getTypesWithoutEnhancement()
boolean
getUseTCCLinSelectNew()
Indicates if theThread.contextClassLoader
should be used as fallback if the result class forselect new
is not found by the classloader of the entity.java.lang.Object
getValidationFactoryInstance()
The ValidatorFactory provided by the container or application.java.lang.String
getValidationGroupPrePersist()
Gets the validation groups for pre-persistjava.lang.String
getValidationGroupPreRemove()
Gets the validation groups for pre-removejava.lang.String
getValidationGroupPreUpdate()
Gets the validation groups for pre-updatejava.lang.String
getValidationMode()
The bean validation mode to use for managed classes.java.lang.Object
getValidatorInstance()
The Validator provided by the container or created by the runtime.java.lang.String
getWriteLockLevel()
The default write lock level to use during non-optimistic transactions.int
getWriteLockLevelConstant()
The numeric write lock level.boolean
isConnectionFactoryModeManaged()
Whether connections are automatically enlisted in global transactions.boolean
isInitializeEagerly()
Affirms if all configured elements are initialized eagerly as opposed to lazily on-demand.boolean
isTransactionModeManaged()
Return whether managed transactions are being used.boolean
metaDataRepositoryAvailable()
Returns true if a metaDataRepository has been created for this configuration.BrokerImpl
newBrokerInstance(java.lang.String user, java.lang.String pass)
Create a new broker instance with the configured plugin data.InverseManager
newInverseManagerInstance()
Return a new inverse manager instance using the configured plugin settings.LockManager
newLockManagerInstance()
Return a new lock manager instance using the configured plugin settings.MetaDataFactory
newMetaDataFactoryInstance()
Create a newMetaDataFactory
to use with a repository.MetaDataRepository
newMetaDataRepositoryInstance()
Create a new empty metadata repository of the configured type.RemoteCommitProvider
newRemoteCommitProviderInstance()
Create a remote commit provider from the configured plugin.void
setAggregateListeners(java.lang.String listeners)
A comma-separted list of the plugin strings of the queryAggregateListener
s to use.void
setAggregateListeners(AggregateListener[] listeners)
Set the query function listeners.void
setAuditor(java.lang.String s)
Sets the plug-in string ofAuditor
specified in this configuration.void
setAuditorInstance(Auditor auditor)
Sets the singular instance ofAuditor
associated with this configuration.void
setAutoClear(int clear)
Whether instances clear their state when entering a transaction.void
setAutoClear(java.lang.String clear)
Whether instances clear their state when entering a transaction.void
setAutoDetach(int flags)
TheAutoDetach
flags.void
setAutoDetach(java.lang.String detach)
A comma-separated list of events which trigger auto-detachment in place of managed states.void
setBrokerFactory(java.lang.String factory)
TheBrokerFactory
class to use.void
setBrokerImpl(java.lang.String broker)
The plugin string of theBrokerImpl
extension to create.void
setCacheDistributionPolicy(java.lang.String policyPlugin)
Sets the plug-in string that describes the policy to distribute cached instances across named partitions of L2 data cache.void
setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
Sets the policy object that determines distribution of cached instances across named partitions of L2 data cache.void
setCacheMarshallers(java.lang.String marshallers)
A comma-separated list of the plugin strings specifying theCacheMarshaller
s to use.void
setCallbackOptions(java.lang.String options)
Options for configuring callbacks set as a comma-separated string value pair.void
setClassResolver(java.lang.String classResolver)
The plugin string for theClassResolver
to use for custom class loading.void
setClassResolver(ClassResolver classResolver)
TheClassResolver
to use.void
setCompatibility(java.lang.String compatibility)
Backwards compatibility options.void
setConnection2DriverName(java.lang.String driverName)
Class name of the non-XA connection driver.void
setConnection2Password(java.lang.String connectionPassword)
The password for the non-XA data store connection.void
setConnection2Properties(java.lang.String props)
These properties provide any additional information needed to establish non-XA connections.void
setConnection2URL(java.lang.String connectionURL)
The URL for the non-XA data store connection.void
setConnection2UserName(java.lang.String connectionUserName)
The user name for the non-XA data store connection.void
setConnectionDriverName(java.lang.String driverName)
Class name of the connection driver.void
setConnectionFactory(java.lang.Object factory)
The connection factory.void
setConnectionFactory2(java.lang.Object factory)
The non-XA connection factory.void
setConnectionFactory2Name(java.lang.String cf2Name)
The name for the second data store connection factory.void
setConnectionFactory2Properties(java.lang.String props)
Configuration properties for the non-XA connection factory.void
setConnectionFactoryMode(java.lang.String mode)
The mode of the connection factory in use.void
setConnectionFactoryModeManaged(boolean managed)
Whether connections are automatically enlisted in global transactions.void
setConnectionFactoryName(java.lang.String cfName)
The name for the data store connection factory.void
setConnectionFactoryProperties(java.lang.String props)
Configuration properties for the connection factory.void
setConnectionPassword(java.lang.String connectionPassword)
The password for the data store connection.void
setConnectionProperties(java.lang.String props)
These properties provide any additional information needed to establish connections.void
setConnectionRetainMode(int mode)
Set the connection retain mode as one of the following symbolic constants:ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
void
setConnectionRetainMode(java.lang.String mode)
Specifies the behavior of the broker with respect to data store connections.void
setConnectionURL(java.lang.String connectionURL)
The URL for the data store connection.void
setConnectionUserName(java.lang.String connectionUserName)
The user name for the data store connection.void
setDataCache(java.lang.String dataCache)
TheDataCache
to use for level-2 data store caching.void
setDataCacheManager(java.lang.String mgr)
The data cache manager manages this configuration's cache instances.void
setDataCacheManager(DataCacheManager manager)
The data cache manager manages this configuration's cache instances.void
setDataCacheMode(java.lang.String mode)
Set theDataCacheMode
void
setDataCacheTimeout(int timeout)
Default data cache timeout.void
setDataCacheTimeout(java.lang.Integer timeout)
Wrapper for JCA usage ofsetDataCacheTimeout(int)
.void
setDetachState(java.lang.String detachState)
Which field values to include when detaching.void
setDetachState(DetachOptions detachState)
Return the instance specified by the detach state plugin.void
setDynamicDataStructs(boolean dynamic)
Set whether to generate dynamic data structures where possible for cache and runtime usage.void
setDynamicDataStructs(java.lang.Boolean dynamic)
Wrapper for JCA usage ofsetDynamicDataStructs(boolean)
.void
setDynamicEnhancementAgent(boolean dynamic)
Sets whether OpenJPA will attempt to dynamically load the enhancement agent.void
setEncryptionProvider(java.lang.String className)
Sets theEncryptionProvider
.void
setFetchBatchSize(int size)
Set the size of the batch that will be pre-selected when accessing elements in a query or relationship.void
setFetchBatchSize(java.lang.Integer size)
Wrapper for JCA usage ofsetFetchBatchSize(int)
.void
setFetchGroups(java.lang.String groups)
Comma-separated list of fetch group names that will be pre-set for all newFetchConfiguration
s.void
setFetchGroups(java.lang.String[] names)
List of fetch group names that will be pre-set for all newFetchConfiguration
s.void
setFilterListeners(java.lang.String listeners)
A comma-separted list of the plugin strings of the queryFilterListener
s to use.void
setFilterListeners(FilterListener[] listeners)
Set the query filter listeners.void
setFinderCache(java.lang.String cache)
Set the finder cache from a string configuration.void
setFlushBeforeQueries(int flushBeforeQueries)
void
setFlushBeforeQueries(java.lang.String flush)
Sets whether or not OpenJPA should automatically flush modifications to the data store before executing queries.void
setIgnoreChanges(boolean ignoreChanges)
Whether changes in the current transaction are taken into account when executing queries and iterating extents.void
setIgnoreChanges(java.lang.Boolean ignoreChanges)
Wrapper for JCA usage ofsetIgnoreChanges(boolean)
.void
setInitializeEagerly(boolean flag)
Sets whether all configured elements will be initialized eagerly or lazily on-demand.void
setInstrumentation(java.lang.String providers)
Sets the plug-in string that defines instrumentation providers and what they instrument.void
setInverseManager(java.lang.String inverse)
The plugin to use for managing inverse relations.void
setLifecycleEventManager(java.lang.String eventMgr)
Sets the lifecycle event manager instance classname.void
setLockManager(java.lang.String lockManager)
The plugin to use for datastore lock management.void
setLockTimeout(int timeout)
The time to wait for an object lock in milliseconds, or -1 for no timeout.void
setLockTimeout(java.lang.Integer timeout)
Wrapper for JCA usage ofsetLockTimeout(int)
.void
setManagedRuntime(java.lang.String managedRuntime)
The plugin string for theManagedRuntime
to use for managed environments.void
setManagedRuntime(ManagedRuntime runtime)
The plugin to use for integrating with a managed runtime.void
setMapping(java.lang.String mapping)
The name mapping to use for this data store.void
setMaxFetchDepth(int depth)
The maximum relation depth to traverse when eager fetching.void
setMaxFetchDepth(java.lang.Integer size)
Wrapper for JCA usage ofsetMaxFetchDepth(int)
.void
setMetaDataFactory(java.lang.String meta)
A plugin string describing theMetaDataFactory
to use.void
setMetaDataRepository(java.lang.String meta)
A plugin string describing theMetaDataRepository
to use.void
setMetaDataRepository(MetaDataRepository mdRepos)
The metadata repository of managed class information.void
setMultithreaded(boolean multithreaded)
Whether brokers or their managed objects will be used by multiple concurrent threads.void
setMultithreaded(java.lang.Boolean multithreaded)
Wrapper for JCA usage ofsetMultithreaded(boolean)
.void
setNontransactionalRead(boolean ntRead)
Whether persistent state is accessible outside a transaction by default.void
setNontransactionalRead(java.lang.Boolean ntRead)
Wrapper for JCA usage ofsetNontransactionalRead(boolean)
.void
setNontransactionalWrite(boolean ntWrite)
Whether persistent state can be modified outside a transaction by default.void
setNontransactionalWrite(java.lang.Boolean ntWrite)
Wrapper for JCA usage ofsetNontransactionalWrite(boolean)
.void
setOptimistic(boolean optimistic)
Whether to use optimistic transactions by default.void
setOptimistic(java.lang.Boolean optimistic)
Wrapper for JCA usage ofsetOptimistic(boolean)
.void
setOptimizeIdCopy(boolean optimizeIds)
Whether to attempt to optimize id class copy operations during the enhancement process.void
setOptimizeIdCopy(java.lang.Boolean optimizeIds)
Whether to attempt to optimize id class copy operations during the enhancement process.void
setOrphanedKeyAction(java.lang.String action)
The action to take when an orphaned key is detected.void
setOrphanedKeyAction(OrphanedKeyAction action)
The action to take when an orphaned key is detected.void
setPostLoadOnMerge(boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation.void
setPostLoadOnMerge(java.lang.Boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation.void
setProxyManager(java.lang.String proxyManager)
The plugin string for theProxyManager
to use for second class object proxies.void
setProxyManager(ProxyManager manager)
TheProxyManager
to use.void
setQueryCache(java.lang.String queryCache)
The plugin to use for level-2 data store query caching.void
setQueryCompilationCache(java.lang.String conf)
Configuration settings for the query compilation cache to use.void
setQuerySQLCache(java.lang.String config)
Sets QuerySQLCache with the given configuration.void
setQuerySQLCache(PreparedQueryCache cache)
Sets QuerySQLCache with the given cache.void
setQueryTimeout(int timeout)
The time to wait for a query to execute in milliseconds, or -1 for no timeout.void
setReadLockLevel(int level)
The numeric read lock level.void
setReadLockLevel(java.lang.String level)
The default read lock level to use during non-optimistic transactions.void
setRefreshFromDataCache(boolean refreshFromDataCache)
Sets whether entity state is to be refreshed fromDataCache
.void
setRefreshFromDataCache(java.lang.Boolean refreshFromDataCache)
Sets whether entity state is to be refreshed fromDataCache
.void
setRemoteCommitEventManager(RemoteCommitEventManager manager)
The remote event manager that manages this configuration's remote event listeners.void
setRemoteCommitProvider(java.lang.String remoteCommitProvider)
The plugin to use for remote commit notification.void
setRestoreState(int restoreState)
Whether to restore initial state on rollback by default.void
setRestoreState(java.lang.String restoreState)
Whether to restore initial state on rollback by default.void
setRetainState(boolean retainState)
Whether to retain state after a transaction by default.void
setRetainState(java.lang.Boolean retainState)
Wrapper for JCA usage ofsetRetainState(boolean)
.void
setRetryClassRegistration(boolean warn)
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed.void
setRetryClassRegistration(java.lang.Boolean warn)
Wrapper for JCA usage ofsetRetryClassRegistration(boolean)
.void
setRuntimeUnenhancedClasses(int mode)
Set the runtime class optimization setting as one of the following symbolic constants:RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
void
setRuntimeUnenhancedClasses(java.lang.String mode)
Specifies how OpenJPA handles unenhanced types.void
setSavepointManager(java.lang.String savepointManager)
The plugin to use for savepoint management.void
setSequence(java.lang.String sequence)
Plugin string for the default systemSeq
.void
setSequence(Seq sequence)
The default system sequence.void
setSpecification(java.lang.String spec)
Set the Specification for this configuration.void
setSpecification(Specification spec)
Set the Specification for this configuration.void
setTransactionMode(java.lang.String mode)
Specifies the behavior of the transaction model.void
setTransactionModeManaged(boolean managed)
Set whether managed transactions are being used.void
setTypesWithoutEnhancement(java.util.Collection<java.lang.Class<?>> typesWithoutEnhancement)
void
setUseTCCLinSelectNew(boolean useTcclForSelectNew)
Indicates if theThread.contextClassLoader
should be used as fallback if the result class forselect new
is not found by the classloader of the entity.void
setUseTCCLinSelectNew(java.lang.Boolean useTcclForSelectNew)
Indicates if theThread.contextClassLoader
should be used as fallback if the result class forselect new
is not found by the classloader of the entity.void
setValidationFactory(java.lang.Object factory)
Set the container or application provided ValidatorFactory instance.void
setValidationGroupPrePersist(java.lang.String vgPrePersist)
Sets the validation groups for pre-persistvoid
setValidationGroupPreRemove(java.lang.String vgPreRemove)
Sets the validation groups for pre-removevoid
setValidationGroupPreUpdate(java.lang.String vgPreUpdate)
Sets the validation groups for pre-updatevoid
setValidationMode(java.lang.String mode)
Set the bean validation mode to use for managed classes.void
setValidatorInstance(java.lang.Object val)
Set the container or application provided Validator instance.void
setWriteLockLevel(int level)
The numeric write lock level.void
setWriteLockLevel(java.lang.String level)
The default write lock level to use during non-optimistic transactions.java.util.Collection<java.lang.String>
supportedOptions()
Return the set of option strings supported by this runtime.-
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
-
-
-
-
Field Detail
-
LOG_METADATA
static final java.lang.String LOG_METADATA
Name of logger for metadata-related messages:openjpa.MetaData
.- See Also:
- Constant Field Values
-
LOG_ENHANCE
static final java.lang.String LOG_ENHANCE
Name of logger for enhancement-related messages:openjpa.Enhance
.- See Also:
- Constant Field Values
-
LOG_RUNTIME
static final java.lang.String LOG_RUNTIME
Name of logger for messages from the runtime system:openjpa.Runtime
.- See Also:
- Constant Field Values
-
LOG_QUERY
static final java.lang.String LOG_QUERY
Name of logger for query logging:openjpa.Query
.- See Also:
- Constant Field Values
-
LOG_DATACACHE
static final java.lang.String LOG_DATACACHE
Name of logger for messages from the data cache:openjpa.DataCache
.- See Also:
- Constant Field Values
-
LOG_TOOL
static final java.lang.String LOG_TOOL
Name of logger for messages from the development tools:openjpa.Tool
.- See Also:
- Constant Field Values
-
OPTION_NONTRANS_READ
static final java.lang.String OPTION_NONTRANS_READ
Option for runtimes that support nontransactional reads.- See Also:
- Constant Field Values
-
OPTION_OPTIMISTIC
static final java.lang.String OPTION_OPTIMISTIC
Option for runtimes that support optimistic transactions.- See Also:
- Constant Field Values
-
OPTION_ID_APPLICATION
static final java.lang.String OPTION_ID_APPLICATION
Option for runtimes that support application identity.- See Also:
- Constant Field Values
-
OPTION_ID_DATASTORE
static final java.lang.String OPTION_ID_DATASTORE
Option for runtimes that support application identity.- See Also:
- Constant Field Values
-
OPTION_QUERY_SQL
static final java.lang.String OPTION_QUERY_SQL
Option for SQL support.- See Also:
- Constant Field Values
-
OPTION_TYPE_COLLECTION
static final java.lang.String OPTION_TYPE_COLLECTION
Option for runtimes that support persistent collection fields.- See Also:
- Constant Field Values
-
OPTION_TYPE_MAP
static final java.lang.String OPTION_TYPE_MAP
Option for runtimes that support persistent map fields.- See Also:
- Constant Field Values
-
OPTION_TYPE_ARRAY
static final java.lang.String OPTION_TYPE_ARRAY
Option for runtimes that support persistent array fields.- See Also:
- Constant Field Values
-
OPTION_NULL_CONTAINER
static final java.lang.String OPTION_NULL_CONTAINER
Option for runtime that can differentiate between null and empty container fields.- See Also:
- Constant Field Values
-
OPTION_EMBEDDED_RELATION
static final java.lang.String OPTION_EMBEDDED_RELATION
Option for runtimes that support embedded relations to other persistence capable objects.- See Also:
- Constant Field Values
-
OPTION_EMBEDDED_COLLECTION_RELATION
static final java.lang.String OPTION_EMBEDDED_COLLECTION_RELATION
Option for runtimes that support collections of embedded relations to other persistence capable objects.- See Also:
- Constant Field Values
-
OPTION_EMBEDDED_MAP_RELATION
static final java.lang.String OPTION_EMBEDDED_MAP_RELATION
Option for runtimes that support maps of embedded relations to other persistence capable objects.- See Also:
- Constant Field Values
-
OPTION_INC_FLUSH
static final java.lang.String OPTION_INC_FLUSH
Option for runtimes that support incremental flushing.- See Also:
- Constant Field Values
-
OPTION_VALUE_AUTOASSIGN
static final java.lang.String OPTION_VALUE_AUTOASSIGN
Option for runtimes that the autoassign value strategy.- See Also:
- Constant Field Values
-
OPTION_VALUE_INCREMENT
static final java.lang.String OPTION_VALUE_INCREMENT
Option for runtimes that the increment value strategy.- See Also:
- Constant Field Values
-
OPTION_DATASTORE_CONNECTION
static final java.lang.String OPTION_DATASTORE_CONNECTION
Option for runtimes that support returning the datastore connection.- See Also:
- Constant Field Values
-
OPTION_JDBC_CONNECTION
static final java.lang.String OPTION_JDBC_CONNECTION
Option for runtimes that support returning the datastore connection that is a JDBC Connection.- See Also:
- Constant Field Values
-
OPTION_POSTLOAD_ON_MERGE
static final java.lang.String OPTION_POSTLOAD_ON_MERGE
Option for enable fire @PostLoad events on merge operations- See Also:
- Constant Field Values
-
OPTION_USE_TCCL_IN_SELECT_NEW
static final java.lang.String OPTION_USE_TCCL_IN_SELECT_NEW
Option to enable TCCL if the result class for select new is not found in the entities classloader- See Also:
- Constant Field Values
-
-
Method Detail
-
supportedOptions
java.util.Collection<java.lang.String> supportedOptions()
Return the set of option strings supported by this runtime. This set is mutable.
-
getSpecification
java.lang.String getSpecification()
Get a name of the Specification. Specification determines various important default behaviors.
-
getSpecificationInstance
Specification getSpecificationInstance()
Get the Specification. Specification determines various important default behaviors.- Since:
- 2.0.0
-
setSpecification
void setSpecification(java.lang.String spec)
Set the Specification for this configuration. Specification determines various default properties and behavior. For example,compatibility
options during runtime. This change will trigger all registered Product Derivations to mutate other configuration properties.- Parameters:
spec
- fullname of the specification that possibly encodes major and minor version information. For encoding format- Since:
- 1.1.0
- See Also:
Specification
-
setSpecification
void setSpecification(Specification spec)
Set the Specification for this configuration. Specification determines various default properties and behavior. For example,compatibility
options during runtime. This change will trigger all registered Product Derivations to mutate other configuration properties.- Parameters:
spec
- fullname of the specification that possibly encodes major and minor version information. For encoding format- Since:
- 2.0.0
- See Also:
Specification
-
getClassResolver
java.lang.String getClassResolver()
The plugin string for theClassResolver
to use for custom class loading.
-
setClassResolver
void setClassResolver(java.lang.String classResolver)
The plugin string for theClassResolver
to use for custom class loading.
-
getClassResolverInstance
ClassResolver getClassResolverInstance()
TheClassResolver
to use.
-
setClassResolver
void setClassResolver(ClassResolver classResolver)
TheClassResolver
to use.
-
getBrokerFactory
java.lang.String getBrokerFactory()
TheBrokerFactory
class to use.
-
setBrokerFactory
void setBrokerFactory(java.lang.String factory)
TheBrokerFactory
class to use.
-
getBrokerImpl
java.lang.String getBrokerImpl()
The plugin string of theBrokerImpl
extension to create.
-
setBrokerImpl
void setBrokerImpl(java.lang.String broker)
The plugin string of theBrokerImpl
extension to create.
-
newBrokerInstance
BrokerImpl newBrokerInstance(java.lang.String user, java.lang.String pass)
Create a new broker instance with the configured plugin data.
-
getDataCache
java.lang.String getDataCache()
TheDataCache
to use for level-2 data store caching.
-
setDataCache
void setDataCache(java.lang.String dataCache)
TheDataCache
to use for level-2 data store caching.
-
getDataCacheManager
java.lang.String getDataCacheManager()
The data cache manager manages this configuration's cache instances.
-
setDataCacheManager
void setDataCacheManager(java.lang.String mgr)
The data cache manager manages this configuration's cache instances.
-
getDataCacheManagerInstance
DataCacheManager getDataCacheManagerInstance()
The data cache manager manages this configuration's cache instances. The cache manager is created if it has not been set. Once the cache manager has been set/created, all changes to caching configuration must proceed through the cache manager.- Since:
- 0.3.0
-
setDataCacheManager
void setDataCacheManager(DataCacheManager manager)
The data cache manager manages this configuration's cache instances.- Since:
- 0.3.0
-
getDataCacheTimeout
int getDataCacheTimeout()
Default data cache timeout.- Since:
- 0.2.5
-
setDataCacheTimeout
void setDataCacheTimeout(int timeout)
Default data cache timeout.- Since:
- 0.2.5
-
setDataCacheTimeout
void setDataCacheTimeout(java.lang.Integer timeout)
Wrapper for JCA usage ofsetDataCacheTimeout(int)
.- Since:
- 0.2.5
-
getRefreshFromDataCache
boolean getRefreshFromDataCache()
Gets whether entity state is to be refreshed fromDataCache
. The entities are never refreshed from DataCache if lock is being applied (e.g. in a pessimistic transaction) and hence this setting only refers to behavior when not locking. This flag can be used to overwrite RetrieveMode.BYPASS. By default, however, this falg is false.- Since:
- 1.2.0
-
setRefreshFromDataCache
void setRefreshFromDataCache(boolean refreshFromDataCache)
Sets whether entity state is to be refreshed fromDataCache
. The entities are never refreshed from DataCache if lock is being applied (e.g. in a pessimistic transaction) and hence this setting only refers to behavior when not locking.- Since:
- 1.2.0
-
setRefreshFromDataCache
void setRefreshFromDataCache(java.lang.Boolean refreshFromDataCache)
Sets whether entity state is to be refreshed fromDataCache
. The entities are never refreshed from DataCache if lock is being applied (e.g. in a pessimistic transaction) and hence this setting only refers to behavior when not locking.- Since:
- 1.2.0
-
getQueryCache
java.lang.String getQueryCache()
The plugin to use for level-2 data store query caching.- Since:
- 0.2.5
-
setQueryCache
void setQueryCache(java.lang.String queryCache)
The plugin to use for level-2 data store query caching.- Since:
- 0.2.5
-
getDynamicDataStructs
boolean getDynamicDataStructs()
Return whether to generate dynamic data structures where possible for cache and runtime usage.- Since:
- 0.3.3
-
setDynamicDataStructs
void setDynamicDataStructs(boolean dynamic)
Set whether to generate dynamic data structures where possible for cache and runtime usage.- Since:
- 0.3.3
-
setDynamicDataStructs
void setDynamicDataStructs(java.lang.Boolean dynamic)
Wrapper for JCA usage ofsetDynamicDataStructs(boolean)
.
-
getLockManager
java.lang.String getLockManager()
The plugin to use for datastore lock management.- Since:
- 0.3.1
-
setLockManager
void setLockManager(java.lang.String lockManager)
The plugin to use for datastore lock management.- Since:
- 0.3.1
-
newLockManagerInstance
LockManager newLockManagerInstance()
Return a new lock manager instance using the configured plugin settings.
-
getInverseManager
java.lang.String getInverseManager()
The plugin to use for managing inverse relations.- Since:
- 0.3.2
-
setInverseManager
void setInverseManager(java.lang.String inverse)
The plugin to use for managing inverse relations.- Since:
- 0.3.2
-
newInverseManagerInstance
InverseManager newInverseManagerInstance()
Return a new inverse manager instance using the configured plugin settings.- Since:
- 0.3.2
-
getSavepointManager
java.lang.String getSavepointManager()
The plugin to use for savepoint management.- Since:
- 0.3.4
-
setSavepointManager
void setSavepointManager(java.lang.String savepointManager)
The plugin to use for savepoint management.- Since:
- 0.3.4
-
getSavepointManagerInstance
SavepointManager getSavepointManagerInstance()
Return the configured savepoint manager instance.
-
getOrphanedKeyAction
java.lang.String getOrphanedKeyAction()
The action to take when an orphaned key is detected.- Since:
- 0.3.2.2
-
setOrphanedKeyAction
void setOrphanedKeyAction(java.lang.String action)
The action to take when an orphaned key is detected.- Since:
- 0.3.2.2
-
getOrphanedKeyActionInstance
OrphanedKeyAction getOrphanedKeyActionInstance()
The action to take when an orphaned key is detected.- Since:
- 0.3.2.2
-
setOrphanedKeyAction
void setOrphanedKeyAction(OrphanedKeyAction action)
The action to take when an orphaned key is detected.- Since:
- 0.3.2.2
-
getRemoteCommitProvider
java.lang.String getRemoteCommitProvider()
The plugin to use for remote commit notification.- Since:
- 0.2.5
-
setRemoteCommitProvider
void setRemoteCommitProvider(java.lang.String remoteCommitProvider)
The plugin to use for remote commit notification.- Since:
- 0.2.5
-
newRemoteCommitProviderInstance
RemoteCommitProvider newRemoteCommitProviderInstance()
Create a remote commit provider from the configured plugin.- Since:
- 0.3.0
-
getRemoteCommitEventManager
RemoteCommitEventManager getRemoteCommitEventManager()
The remote event manager that manages this configuration's remote event listeners.- Since:
- 0.3.0
-
setRemoteCommitEventManager
void setRemoteCommitEventManager(RemoteCommitEventManager manager)
The remote event manager that manages this configuration's remote event listeners.- Since:
- 0.3.0
-
getTransactionMode
java.lang.String getTransactionMode()
Specifies the behavior of the transaction model. Possible values are:local
: Perform transaction operations locally.managed
: Use managed environment's global transactions.
- Since:
- 0.2.5
-
setTransactionMode
void setTransactionMode(java.lang.String mode)
Specifies the behavior of the transaction model. Possible values are:local
: Perform transaction operations locally.managed
: Use managed environment's global transactions.
- Since:
- 0.2.5
-
isTransactionModeManaged
boolean isTransactionModeManaged()
Return whether managed transactions are being used.
-
setTransactionModeManaged
void setTransactionModeManaged(boolean managed)
Set whether managed transactions are being used.
-
getManagedRuntime
java.lang.String getManagedRuntime()
The plugin string for theManagedRuntime
to use for managed environments.
-
setManagedRuntime
void setManagedRuntime(java.lang.String managedRuntime)
The plugin string for theManagedRuntime
to use for managed environments.
-
getManagedRuntimeInstance
ManagedRuntime getManagedRuntimeInstance()
The plugin to use for integrating with a managed runtime.
-
setManagedRuntime
void setManagedRuntime(ManagedRuntime runtime)
The plugin to use for integrating with a managed runtime.
-
getProxyManager
java.lang.String getProxyManager()
The plugin string for theProxyManager
to use for second class object proxies.
-
setProxyManager
void setProxyManager(java.lang.String proxyManager)
The plugin string for theProxyManager
to use for second class object proxies.
-
getProxyManagerInstance
ProxyManager getProxyManagerInstance()
TheProxyManager
to use.
-
setProxyManager
void setProxyManager(ProxyManager manager)
TheProxyManager
to use.
-
getMapping
java.lang.String getMapping()
The name mapping to use for this data store.
-
setMapping
void setMapping(java.lang.String mapping)
The name mapping to use for this data store.
-
getMetaDataFactory
java.lang.String getMetaDataFactory()
A plugin string describing theMetaDataFactory
to use.
-
setMetaDataFactory
void setMetaDataFactory(java.lang.String meta)
A plugin string describing theMetaDataFactory
to use.
-
newMetaDataFactoryInstance
MetaDataFactory newMetaDataFactoryInstance()
Create a newMetaDataFactory
to use with a repository.
-
getMetaDataRepository
java.lang.String getMetaDataRepository()
A plugin string describing theMetaDataRepository
to use.
-
setMetaDataRepository
void setMetaDataRepository(java.lang.String meta)
A plugin string describing theMetaDataRepository
to use.
-
getMetaDataRepositoryInstance
MetaDataRepository getMetaDataRepositoryInstance()
The metadata repository of managed class information. If no repository has been set, creates one.- Since:
- 0.3.0
-
metaDataRepositoryAvailable
boolean metaDataRepositoryAvailable()
Returns true if a metaDataRepository has been created for this configuration.- Since:
- 1.1.0 1.0.1
-
newMetaDataRepositoryInstance
MetaDataRepository newMetaDataRepositoryInstance()
Create a new empty metadata repository of the configured type.
-
setMetaDataRepository
void setMetaDataRepository(MetaDataRepository mdRepos)
The metadata repository of managed class information.- Since:
- 0.3.0
-
getConnectionUserName
java.lang.String getConnectionUserName()
The user name for the data store connection.
-
setConnectionUserName
void setConnectionUserName(java.lang.String connectionUserName)
The user name for the data store connection.
-
getConnectionPassword
java.lang.String getConnectionPassword()
The password for the data store connection.
-
setConnectionPassword
void setConnectionPassword(java.lang.String connectionPassword)
The password for the data store connection.
-
getConnectionURL
java.lang.String getConnectionURL()
The URL for the data store connection.
-
setConnectionURL
void setConnectionURL(java.lang.String connectionURL)
The URL for the data store connection.
-
getConnectionDriverName
java.lang.String getConnectionDriverName()
Class name of the connection driver.
-
setConnectionDriverName
void setConnectionDriverName(java.lang.String driverName)
Class name of the connection driver.
-
getConnectionFactoryName
java.lang.String getConnectionFactoryName()
The name for the data store connection factory.
-
setConnectionFactoryName
void setConnectionFactoryName(java.lang.String cfName)
The name for the data store connection factory.
-
getConnectionFactory
java.lang.Object getConnectionFactory()
The connection factory, possibly from JNDI.
-
setConnectionFactory
void setConnectionFactory(java.lang.Object factory)
The connection factory.
-
getConnectionProperties
java.lang.String getConnectionProperties()
These properties provide any additional information needed to establish connections.
-
setConnectionProperties
void setConnectionProperties(java.lang.String props)
These properties provide any additional information needed to establish connections.
-
getConnectionFactoryProperties
java.lang.String getConnectionFactoryProperties()
Configuration properties for the connection factory.
-
setConnectionFactoryProperties
void setConnectionFactoryProperties(java.lang.String props)
Configuration properties for the connection factory.
-
getConnectionFactoryMode
java.lang.String getConnectionFactoryMode()
The mode of the connection factory in use. Available options are:- local: OpenJPA controls the connections.
- managed: Connections are automatically enlisted in the current global transaction by an application server.
-
setConnectionFactoryMode
void setConnectionFactoryMode(java.lang.String mode)
The mode of the connection factory in use. Available options are:- local: OpenJPA controls the connections.
- managed: Connections are automatically enlisted in the current global transaction by an application server.
-
isConnectionFactoryModeManaged
boolean isConnectionFactoryModeManaged()
Whether connections are automatically enlisted in global transactions.
-
setConnectionFactoryModeManaged
void setConnectionFactoryModeManaged(boolean managed)
Whether connections are automatically enlisted in global transactions.
-
getConnection2UserName
java.lang.String getConnection2UserName()
The user name for the non-XA data store connection.
-
setConnection2UserName
void setConnection2UserName(java.lang.String connectionUserName)
The user name for the non-XA data store connection.
-
getConnection2Password
java.lang.String getConnection2Password()
The password for the non-XA data store connection.
-
setConnection2Password
void setConnection2Password(java.lang.String connectionPassword)
The password for the non-XA data store connection.
-
getConnection2URL
java.lang.String getConnection2URL()
The URL for the non-XA data store connection.
-
setConnection2URL
void setConnection2URL(java.lang.String connectionURL)
The URL for the non-XA data store connection.
-
getConnection2DriverName
java.lang.String getConnection2DriverName()
Class name of the non-XA connection driver.
-
setConnection2DriverName
void setConnection2DriverName(java.lang.String driverName)
Class name of the non-XA connection driver.
-
getConnectionFactory2Name
java.lang.String getConnectionFactory2Name()
The name for the second data store connection factory.
-
setConnectionFactory2Name
void setConnectionFactory2Name(java.lang.String cf2Name)
The name for the second data store connection factory.
-
getConnectionFactory2
java.lang.Object getConnectionFactory2()
The non-XA connection factory.
-
setConnectionFactory2
void setConnectionFactory2(java.lang.Object factory)
The non-XA connection factory.
-
getConnection2Properties
java.lang.String getConnection2Properties()
These properties provide any additional information needed to establish non-XA connections.- Since:
- 0.3.0
-
setConnection2Properties
void setConnection2Properties(java.lang.String props)
These properties provide any additional information needed to establish non-XA connections.- Since:
- 0.3.0
-
getConnectionFactory2Properties
java.lang.String getConnectionFactory2Properties()
Configuration properties for the non-XA connection factory.- Since:
- 0.2.5
-
setConnectionFactory2Properties
void setConnectionFactory2Properties(java.lang.String props)
Configuration properties for the non-XA connection factory.- Since:
- 0.2.5
-
getOptimistic
boolean getOptimistic()
Whether to use optimistic transactions by default.
-
setOptimistic
void setOptimistic(boolean optimistic)
Whether to use optimistic transactions by default.
-
setOptimistic
void setOptimistic(java.lang.Boolean optimistic)
Wrapper for JCA usage ofsetOptimistic(boolean)
.
-
getRetainState
boolean getRetainState()
Whether to retain state after a transaction by default.
-
setRetainState
void setRetainState(boolean retainState)
Whether to retain state after a transaction by default.
-
setRetainState
void setRetainState(java.lang.Boolean retainState)
Wrapper for JCA usage ofsetRetainState(boolean)
.
-
getAutoClear
java.lang.String getAutoClear()
Whether instances clear their state when entering a transaction.
-
setAutoClear
void setAutoClear(java.lang.String clear)
Whether instances clear their state when entering a transaction.
-
getAutoClearConstant
int getAutoClearConstant()
Return theAutoClear
constant.
-
setAutoClear
void setAutoClear(int clear)
Whether instances clear their state when entering a transaction.
-
getRestoreState
java.lang.String getRestoreState()
Whether to restore initial state on rollback by default.
-
setRestoreState
void setRestoreState(java.lang.String restoreState)
Whether to restore initial state on rollback by default.
-
getRestoreStateConstant
int getRestoreStateConstant()
Return theRestoreState
constant.
-
setRestoreState
void setRestoreState(int restoreState)
Whether to restore initial state on rollback by default.
-
getIgnoreChanges
boolean getIgnoreChanges()
Whether changes in the current transaction are taken into account when executing queries and iterating extents.
-
setIgnoreChanges
void setIgnoreChanges(boolean ignoreChanges)
Whether changes in the current transaction are taken into account when executing queries and iterating extents.
-
setIgnoreChanges
void setIgnoreChanges(java.lang.Boolean ignoreChanges)
Wrapper for JCA usage ofsetIgnoreChanges(boolean)
.
-
getAutoDetach
java.lang.String getAutoDetach()
A comma-separated list of events which trigger auto-detachment in place of managed states. Possible values are:commit
: When the current transaction commits.close
: When the broker closes.nontx-read
: When instances are read non-transactionally.
-
setAutoDetach
void setAutoDetach(java.lang.String detach)
A comma-separated list of events which trigger auto-detachment in place of managed states. Possible values are:commit
: When the current transaction commits.close
: When the broker closes.nontx-read
: When instances are read non-transactionally.
-
getAutoDetachConstant
int getAutoDetachConstant()
TheAutoDetach
flags.
-
setAutoDetach
void setAutoDetach(int flags)
TheAutoDetach
flags.
-
setDetachState
void setDetachState(java.lang.String detachState)
Which field values to include when detaching.
-
getDetachStateInstance
DetachOptions getDetachStateInstance()
Return the instance specified by the detach state plugin.
-
setDetachState
void setDetachState(DetachOptions detachState)
Return the instance specified by the detach state plugin.
-
getNontransactionalRead
boolean getNontransactionalRead()
Whether persistent state is accessible outside a transaction by default.
-
setNontransactionalRead
void setNontransactionalRead(boolean ntRead)
Whether persistent state is accessible outside a transaction by default.
-
setNontransactionalRead
void setNontransactionalRead(java.lang.Boolean ntRead)
Wrapper for JCA usage ofsetNontransactionalRead(boolean)
.
-
getNontransactionalWrite
boolean getNontransactionalWrite()
Whether persistent state can be modified outside a transaction by default.
-
setNontransactionalWrite
void setNontransactionalWrite(boolean ntWrite)
Whether persistent state can be modified outside a transaction by default.
-
setNontransactionalWrite
void setNontransactionalWrite(java.lang.Boolean ntWrite)
Wrapper for JCA usage ofsetNontransactionalWrite(boolean)
.
-
getMultithreaded
boolean getMultithreaded()
Whether brokers or their managed objects will be used by multiple concurrent threads.
-
setMultithreaded
void setMultithreaded(boolean multithreaded)
Whether brokers or their managed objects will be used by multiple concurrent threads.
-
setMultithreaded
void setMultithreaded(java.lang.Boolean multithreaded)
Wrapper for JCA usage ofsetMultithreaded(boolean)
.
-
getFetchBatchSize
int getFetchBatchSize()
Get the size of the batch that will be pre-selected when accessing elements in a query or relationship. Use -1 to prefetch all results.
-
setFetchBatchSize
void setFetchBatchSize(int size)
Set the size of the batch that will be pre-selected when accessing elements in a query or relationship. Use -1 to prefetch all results.
-
setFetchBatchSize
void setFetchBatchSize(java.lang.Integer size)
Wrapper for JCA usage ofsetFetchBatchSize(int)
.
-
getMaxFetchDepth
int getMaxFetchDepth()
The maximum relation depth to traverse when eager fetching. Use -1 for no limit.
-
setMaxFetchDepth
void setMaxFetchDepth(int depth)
The maximum relation depth to traverse when eager fetching. Use -1 for no limit.
-
setMaxFetchDepth
void setMaxFetchDepth(java.lang.Integer size)
Wrapper for JCA usage ofsetMaxFetchDepth(int)
.
-
getFetchGroups
java.lang.String getFetchGroups()
Comma-separated list of fetch group names that will be pre-set for all newFetchConfiguration
s.- Since:
- 0.2.5
-
setFetchGroups
void setFetchGroups(java.lang.String groups)
Comma-separated list of fetch group names that will be pre-set for all newFetchConfiguration
s.- Since:
- 0.2.5
-
getFetchGroupsList
java.lang.String[] getFetchGroupsList()
List of fetch group names that will be pre-set for all newFetchConfiguration
s.
-
setFetchGroups
void setFetchGroups(java.lang.String[] names)
List of fetch group names that will be pre-set for all newFetchConfiguration
s.
-
getFlushBeforeQueries
java.lang.String getFlushBeforeQueries()
Returns whether or not OpenJPA should automatically flush modifications to the data store before executing queries.- Since:
- 0.2.5
-
setFlushBeforeQueries
void setFlushBeforeQueries(java.lang.String flush)
Sets whether or not OpenJPA should automatically flush modifications to the data store before executing queries.- Since:
- 0.2.5
-
getFlushBeforeQueriesConstant
int getFlushBeforeQueriesConstant()
Returns one ofQueryFlushModes.FLUSH_TRUE
,QueryFlushModes.FLUSH_FALSE
, orQueryFlushModes.FLUSH_WITH_CONNECTION
, as determined by parsing the string returned bygetFlushBeforeQueries()
.- Since:
- 0.2.5
-
setFlushBeforeQueries
void setFlushBeforeQueries(int flushBeforeQueries)
Set to one ofQueryFlushModes.FLUSH_TRUE
,QueryFlushModes.FLUSH_FALSE
, orQueryFlushModes.FLUSH_WITH_CONNECTION
.- Since:
- 0.2.5
-
getLockTimeout
int getLockTimeout()
The time to wait for an object lock in milliseconds, or -1 for no timeout.- Since:
- 0.3.1
-
setLockTimeout
void setLockTimeout(int timeout)
The time to wait for an object lock in milliseconds, or -1 for no timeout.- Since:
- 0.3.1
-
setLockTimeout
void setLockTimeout(java.lang.Integer timeout)
Wrapper for JCA usage ofsetLockTimeout(int)
.- Since:
- 0.3.1
-
getQueryTimeout
int getQueryTimeout()
The time to wait for a query to execute in milliseconds, or -1 for no timeout.- Since:
- 2.0.0
-
setQueryTimeout
void setQueryTimeout(int timeout)
The time to wait for a query to execute in milliseconds, or -1 for no timeout.- Since:
- 0.3.1
-
getReadLockLevel
java.lang.String getReadLockLevel()
The default read lock level to use during non-optimistic transactions. Defaults toread
.- Since:
- 0.3.1
-
setReadLockLevel
void setReadLockLevel(java.lang.String level)
The default read lock level to use during non-optimistic transactions. Defaults toread
.- Since:
- 0.3.1
-
getReadLockLevelConstant
int getReadLockLevelConstant()
The numeric read lock level.- Since:
- 0.3.1
-
setReadLockLevel
void setReadLockLevel(int level)
The numeric read lock level.- Since:
- 0.3.1
-
getWriteLockLevel
java.lang.String getWriteLockLevel()
The default write lock level to use during non-optimistic transactions. Defaults towrite
.- Since:
- 0.3.1
-
setWriteLockLevel
void setWriteLockLevel(java.lang.String level)
The default write lock level to use during non-optimistic transactions. Defaults towrite
.- Since:
- 0.3.1
-
getWriteLockLevelConstant
int getWriteLockLevelConstant()
The numeric write lock level.- Since:
- 0.3.1
-
setWriteLockLevel
void setWriteLockLevel(int level)
The numeric write lock level.- Since:
- 0.3.1
-
getSequence
java.lang.String getSequence()
Plugin string for the default systemSeq
.
-
setSequence
void setSequence(java.lang.String sequence)
Plugin string for the default systemSeq
.
-
getSequenceInstance
Seq getSequenceInstance()
The default system sequence.
-
setSequence
void setSequence(Seq sequence)
The default system sequence.
-
getConnectionRetainMode
java.lang.String getConnectionRetainMode()
Specifies the behavior of the broker with respect to data store connections. Possible values are:always
: Each broker obtains a single connection and uses it until the broker is closed.transaction
: A connection is obtained when each transaction begins (optimistic or datastore), and is released when the transaction completes.on-demand
: Connections are obtained only when needed. This is the default mode. It is equivalent to the previous option when datastore transactions are used. For optimistic transactions, though, it means that a connection will be retained only for the duration of the data store commit process.
- Since:
- 0.2.5
-
setConnectionRetainMode
void setConnectionRetainMode(java.lang.String mode)
Specifies the behavior of the broker with respect to data store connections. Possible values are:always
: Each broker obtains a single connection and uses it until the broker is closed.transaction
: A connection is obtained when each transaction begins (optimistic or datastore), and is released when the transaction completes.on-demand
: Connections are obtained only when needed. This is the default mode. It is equivalent to the previous option when datastore transactions are used. For optimistic transactions, though, it means that a connection will be retained only for the duration of the data store commit process.
- Since:
- 0.2.5
-
getConnectionRetainModeConstant
int getConnectionRetainModeConstant()
Return the connection retain mode as one of the following symbolic constants:
-
setConnectionRetainMode
void setConnectionRetainMode(int mode)
Set the connection retain mode as one of the following symbolic constants:
-
getFilterListeners
java.lang.String getFilterListeners()
A comma-separted list of the plugin strings of the queryFilterListener
s to use.
-
setFilterListeners
void setFilterListeners(java.lang.String listeners)
A comma-separted list of the plugin strings of the queryFilterListener
s to use.
-
getFilterListenerInstances
FilterListener[] getFilterListenerInstances()
Return the query filter listeners. If none have been set explicitly, this method instantiates the listeners from the set plugin list.
-
setFilterListeners
void setFilterListeners(FilterListener[] listeners)
Set the query filter listeners. Overrides the list of listener classes.
-
getAggregateListeners
java.lang.String getAggregateListeners()
A comma-separted list of the plugin strings of the queryAggregateListener
s to use.
-
setAggregateListeners
void setAggregateListeners(java.lang.String listeners)
A comma-separted list of the plugin strings of the queryAggregateListener
s to use.
-
getAggregateListenerInstances
AggregateListener[] getAggregateListenerInstances()
Return the query function listeners. If none have been set explicitly, this method instantiates the listeners from the set plugin list.
-
setAggregateListeners
void setAggregateListeners(AggregateListener[] listeners)
Set the query function listeners. Overrides the list of listener classes.
-
getRetryClassRegistration
boolean getRetryClassRegistration()
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed. Should only be set to true in complex classloader topologies. Defaults tofalse
.- Since:
- 0.3.2.3
-
setRetryClassRegistration
void setRetryClassRegistration(boolean warn)
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed. Should only be set to true in complex classloader topologies. Defaults tofalse
.- Since:
- 0.3.2.3
-
setRetryClassRegistration
void setRetryClassRegistration(java.lang.Boolean warn)
Wrapper for JCA usage ofsetRetryClassRegistration(boolean)
.- Since:
- 0.3.2.3
-
getCompatibility
java.lang.String getCompatibility()
Backwards compatibility options.
-
setCompatibility
void setCompatibility(java.lang.String compatibility)
Backwards compatibility options.
-
getCompatibilityInstance
Compatibility getCompatibilityInstance()
Backwards compatibility options.
-
getCallbackOptions
java.lang.String getCallbackOptions()
Options for configuring callbacks as a String.- Since:
- 2.0.0
-
getCallbackOptionsInstance
CallbackOptions getCallbackOptionsInstance()
Options for configuring callbacks.- Since:
- 2.0.0
-
setCallbackOptions
void setCallbackOptions(java.lang.String options)
Options for configuring callbacks set as a comma-separated string value pair.- Since:
- 2.0.0
-
getQueryCompilationCache
java.lang.String getQueryCompilationCache()
Configuration settings for the query compilation cache to use.- Since:
- 0.9.6
- See Also:
QueryCompilationCacheValue
-
setQueryCompilationCache
void setQueryCompilationCache(java.lang.String conf)
Configuration settings for the query compilation cache to use.- Since:
- 0.9.6
- See Also:
QueryCompilationCacheValue
-
getQueryCompilationCacheInstance
java.util.Map getQueryCompilationCacheInstance()
Configuration settings for the query compilation cache to use.- Since:
- 0.9.6
- See Also:
QueryCompilationCacheValue
-
getStoreFacadeTypeRegistry
StoreFacadeTypeRegistry getStoreFacadeTypeRegistry()
Return theStoreFacadeTypeRegistry
instance associated with this configuration.
-
getBrokerFactoryEventManager
BrokerFactoryEventManager getBrokerFactoryEventManager()
Return theBrokerFactoryEventManager
associated with this configuration.- Since:
- 1.0.0
-
getRuntimeUnenhancedClasses
java.lang.String getRuntimeUnenhancedClasses()
Specifies how OpenJPA handles unenhanced types. Possible values are:supported
: Runtime optimization of persistent types is available. This is the defaultunsupported
: Runtime optimization of persistent types is not available. An exception will be thrown if the system loads with persistent types that are not enhanced.warn
: Runtime optimization of persistent types is not available, but no exception will be thrown initially. A warning will be logged instead. It is likely that the system will fail at a later point. This might be suitable for environments with complex classloader configurations.
- Since:
- 1.0.0
-
setRuntimeUnenhancedClasses
void setRuntimeUnenhancedClasses(java.lang.String mode)
Specifies how OpenJPA handles unenhanced types.- Since:
- 1.0.0
-
getRuntimeUnenhancedClassesConstant
int getRuntimeUnenhancedClassesConstant()
Return the runtime class optimization setting as one of the following symbolic constants:- Since:
- 1.0.0
-
setRuntimeUnenhancedClasses
void setRuntimeUnenhancedClasses(int mode)
Set the runtime class optimization setting as one of the following symbolic constants:- Since:
- 1.0.0
-
getDynamicEnhancementAgent
boolean getDynamicEnhancementAgent()
Whether OpenJPA will attempt to dynamically load the enhancement agent.
-
setDynamicEnhancementAgent
void setDynamicEnhancementAgent(boolean dynamic)
Sets whether OpenJPA will attempt to dynamically load the enhancement agent.
-
getCacheMarshallers
java.lang.String getCacheMarshallers()
A comma-separted list of the plugin strings specifying theCacheMarshaller
s to use.- Since:
- 1.1.0
-
setCacheMarshallers
void setCacheMarshallers(java.lang.String marshallers)
A comma-separated list of the plugin strings specifying theCacheMarshaller
s to use.- Since:
- 1.1.0
-
getCacheMarshallerInstances
java.util.Map<java.lang.String,CacheMarshaller> getCacheMarshallerInstances()
Return the cache marshaller listeners.- Since:
- 1.1.0
-
isInitializeEagerly
boolean isInitializeEagerly()
Affirms if all configured elements are initialized eagerly as opposed to lazily on-demand.- Since:
- 1.3.0
-
setInitializeEagerly
void setInitializeEagerly(boolean flag)
Sets whether all configured elements will be initialized eagerly or lazily on-demand.- Since:
- 1.3.0
-
getQuerySQLCacheInstance
PreparedQueryCache getQuerySQLCacheInstance()
Return PreparedQueryCache used for caching datastore queries.- Since:
- 2.0.0
-
getQuerySQLCache
java.lang.String getQuerySQLCache()
Gets the configuration of QuerySQLCache.- Since:
- 2.0.0
-
setQuerySQLCache
void setQuerySQLCache(PreparedQueryCache cache)
Sets QuerySQLCache with the given cache.- Since:
- 2.0.0
-
setQuerySQLCache
void setQuerySQLCache(java.lang.String config)
Sets QuerySQLCache with the given configuration.- Since:
- 2.0.0
-
getFinderCacheInstance
FinderCache getFinderCacheInstance()
Get the cache of finder queries.- Since:
- 2.0.0
-
getFinderCache
java.lang.String getFinderCache()
Get the string configuration of the finder cache.- Since:
- 2.0.0
-
setFinderCache
void setFinderCache(java.lang.String cache)
Set the finder cache from a string configuration.- Since:
- 2.0.0
-
getValidationMode
java.lang.String getValidationMode()
The bean validation mode to use for managed classes. Defaults toAUTO
.- Since:
- 2.0.0
-
setValidationMode
void setValidationMode(java.lang.String mode)
Set the bean validation mode to use for managed classes. If not set, defaults toAUTO
.- Since:
- 2.0.0
-
getValidationFactoryInstance
java.lang.Object getValidationFactoryInstance()
The ValidatorFactory provided by the container or application. Defaults tonull
.- Since:
- 2.0.0
-
setValidationFactory
void setValidationFactory(java.lang.Object factory)
Set the container or application provided ValidatorFactory instance. If not set, defaults tonull
.- Since:
- 2.0.0
-
getValidatorInstance
java.lang.Object getValidatorInstance()
The Validator provided by the container or created by the runtime. Defaults tonull
.- Since:
- 2.0.0
-
setValidatorInstance
void setValidatorInstance(java.lang.Object val)
Set the container or application provided Validator instance. If not set, defaults tonull
.- Since:
- 2.0.0
-
getLifecycleEventManager
java.lang.String getLifecycleEventManager()
Gets the lifecycle event manager instance classname.- Since:
- 2.0.0
-
getLifecycleEventManagerInstance
LifecycleEventManager getLifecycleEventManagerInstance()
Gets the lifecycle event manager instance.- Since:
- 2.0.0
-
setLifecycleEventManager
void setLifecycleEventManager(java.lang.String eventMgr)
Sets the lifecycle event manager instance classname.- Since:
- 2.0.0
-
getValidationGroupPrePersist
java.lang.String getValidationGroupPrePersist()
Gets the validation groups for pre-persist- Since:
- 2.0.0
-
setValidationGroupPrePersist
void setValidationGroupPrePersist(java.lang.String vgPrePersist)
Sets the validation groups for pre-persist- Since:
- 2.0.0
-
getValidationGroupPreUpdate
java.lang.String getValidationGroupPreUpdate()
Gets the validation groups for pre-update- Since:
- 2.0.0
-
setValidationGroupPreUpdate
void setValidationGroupPreUpdate(java.lang.String vgPreUpdate)
Sets the validation groups for pre-update- Since:
- 2.0.0
-
getValidationGroupPreRemove
java.lang.String getValidationGroupPreRemove()
Gets the validation groups for pre-remove- Since:
- 2.0.0
-
setValidationGroupPreRemove
void setValidationGroupPreRemove(java.lang.String vgPreRemove)
Sets the validation groups for pre-remove- Since:
- 2.0.0
-
setEncryptionProvider
void setEncryptionProvider(java.lang.String className)
Sets theEncryptionProvider
.
-
getEncryptionProvider
EncryptionProvider getEncryptionProvider()
Gets theEncryptionProvider
.- Returns:
- EncryptionProvider
-
setDataCacheMode
void setDataCacheMode(java.lang.String mode)
Set theDataCacheMode
- Parameters:
mode
- One of the Sting constants fromDataCacheMode
- Since:
- 2.0.0
-
getDataCacheMode
java.lang.String getDataCacheMode()
Return the String constant that matches theDataCacheMode
- Returns:
- DataCacheMode
- Since:
- 2.0.0
-
getCacheDistributionPolicyInstance
CacheDistributionPolicy getCacheDistributionPolicyInstance()
Gets the policy object that determines distribution of cached instances across named partitions of L2 data cache.- Returns:
- an implementation of
CacheDistributionPolicy
. - Since:
- 2.0.0
-
setCacheDistributionPolicyInstance
void setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
Sets the policy object that determines distribution of cached instances across named partitions of L2 data cache.- Parameters:
policy
- a non-null implementation ofCacheDistributionPolicy
.- Since:
- 2.0.0
-
getCacheDistributionPolicy
java.lang.String getCacheDistributionPolicy()
Gets the plug-in string that described the policy to distribute cached instances across named partitions of L2 data cache.- Returns:
- a plug-in string for
CacheDistributionPolicy
. - Since:
- 2.0.0
-
setCacheDistributionPolicy
void setCacheDistributionPolicy(java.lang.String policyPlugin)
Sets the plug-in string that describes the policy to distribute cached instances across named partitions of L2 data cache.- Parameters:
a
- plug-in string forCacheDistributionPolicy
.- Since:
- 2.0.0
-
getInstrumentation
java.lang.String getInstrumentation()
Gets the plug-in string that defines instrumentation providers and what they instrument.- Returns:
- a plug-in string for the instrumentation configuration
- Since:
- 2.1.0
-
setInstrumentation
void setInstrumentation(java.lang.String providers)
Sets the plug-in string that defines instrumentation providers and what they instrument.- Parameters:
providers
- a plug-in string for the instrumentation configuration- Since:
- 2.1.0
-
getInstrumentationManagerInstance
InstrumentationManager getInstrumentationManagerInstance()
Gets an instance of the instrumentation manager. The instrumentation provides access to configured instrumentation providers and can be used to manage them at runtime.- Returns:
- an instance of the instrumentation manager
- Since:
- 2.1.0
-
getAuditorInstance
Auditor getAuditorInstance()
Gets the singular instance ofAuditor
associated with this configuration.- Since:
- 2.2.0
-
setAuditorInstance
void setAuditorInstance(Auditor auditor)
Sets the singular instance ofAuditor
associated with this configuration.- Since:
- 2.2.0
-
getAuditor
java.lang.String getAuditor()
Gets the plug-in string ofAuditor
specified in this configuration.- Since:
- 2.2.0
-
setAuditor
void setAuditor(java.lang.String s)
Sets the plug-in string ofAuditor
specified in this configuration.- Since:
- 2.2.0
-
getPostLoadOnMerge
boolean getPostLoadOnMerge()
Whether to send @PostLoad events on a merge operation.- Since:
- 2.2.0
-
setPostLoadOnMerge
void setPostLoadOnMerge(boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation.- Since:
- 2.2.0
-
setPostLoadOnMerge
void setPostLoadOnMerge(java.lang.Boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation.- Since:
- 2.2.0
-
getOptimizeIdCopy
boolean getOptimizeIdCopy()
Whether to attempt to optimize id class copy operations during the enhancement process. Optimization is only applicable for simple id classes that have a constructor with the proper construction parameters and direct assignments to fields within the id class during construction. If the optimization cannot occur, the enhancer will fallback to the noraml behavior.- Since:
- 2.2.0
-
setOptimizeIdCopy
void setOptimizeIdCopy(boolean optimizeIds)
Whether to attempt to optimize id class copy operations during the enhancement process. Optimization is only applicable for simple id classes that have a constructor with the proper construction parameters and direct assignments to fields within the id class during construction. If the optimization cannot occur, the enhancer will fallback to the normal behavior.- Since:
- 2.2.0
-
setOptimizeIdCopy
void setOptimizeIdCopy(java.lang.Boolean optimizeIds)
Whether to attempt to optimize id class copy operations during the enhancement process. Optimization is only applicable for simple id classes that have a constructor with the proper construction parameters and direct assignments to fields within the id class during construction. If the optimization cannot occur, the enhancer will fallback to the normal behavior.- Since:
- 2.2.0
-
getUseTCCLinSelectNew
boolean getUseTCCLinSelectNew()
Indicates if theThread.contextClassLoader
should be used as fallback if the result class forselect new
is not found by the classloader of the entity.- Since:
- 2.4.2
-
setUseTCCLinSelectNew
void setUseTCCLinSelectNew(boolean useTcclForSelectNew)
Indicates if theThread.contextClassLoader
should be used as fallback if the result class forselect new
is not found by the classloader of the entity.- Since:
- 2.4.2
-
setUseTCCLinSelectNew
void setUseTCCLinSelectNew(java.lang.Boolean useTcclForSelectNew)
Indicates if theThread.contextClassLoader
should be used as fallback if the result class forselect new
is not found by the classloader of the entity.- Since:
- 2.4.2
-
getDatabaseAction
java.lang.String getDatabaseAction()
database action from the persistence unit. See 'jakarta.persistence.schema-generation.database.action'- Returns:
- openjpa internal schemaAction which corresponds to the JPA action.
- Since:
- 3.0.0
-
getDatabaseActionConstant
int getDatabaseActionConstant()
- Since:
- 3.0.0
- See Also:
getDatabaseAction()
-
getScriptsAction
java.lang.String getScriptsAction()
Similar togetDatabaseAction()
but write the generated SQL to files.- Since:
- 3.0.0
- See Also:
getDatabaseAction()
-
getScriptsActionConstant
int getScriptsActionConstant()
- Since:
- 3.0.0
- See Also:
getScriptsAction()
-
getCreateSource
java.lang.String getCreateSource()
Optional run a DB action before accessing the database. The possible values in the persistence unit are:- metadata
- script - see
getCreateScriptSource()
- metadata-then-script
- script-then-metadata
- Since:
- 3.0.0
- See Also:
getScriptsAction()
-
getCreateSourceConstant
int getCreateSourceConstant()
- Since:
- 3.0.0
- See Also:
getCreateSource()
-
getDropSource
java.lang.String getDropSource()
Similar togetCreateSource()
but for dropping the database schema and content.- Since:
- 3.0.0
- See Also:
getCreateSource()
-
getDropSourceConstant
int getDropSourceConstant()
- Since:
- 3.0.0
- See Also:
getDatabaseAction()
-
getCreateScriptSource
java.lang.String getCreateScriptSource()
- Since:
- 3.0.0
- See Also:
getDatabaseAction()
-
getDropScriptSource
java.lang.String getDropScriptSource()
- Since:
- 3.0.0
- See Also:
getCreateSource()
-
getCreateScriptTarget
java.lang.String getCreateScriptTarget()
- Since:
- 3.0.0
- See Also:
'script'
-
getDropScriptTarget
java.lang.String getDropScriptTarget()
- Since:
- 3.0.0
- See Also:
'script'
-
getLoadScriptSource
java.lang.String getLoadScriptSource()
Can be used to load a set of initial data into the database.- Since:
- 3.0.0
-
getTypesWithoutEnhancement
java.util.Collection<java.lang.Class<?>> getTypesWithoutEnhancement()
- Returns:
- types which should not get enhanced although they are on the included directories.
- Since:
- 3.1.1
-
setTypesWithoutEnhancement
void setTypesWithoutEnhancement(java.util.Collection<java.lang.Class<?>> typesWithoutEnhancement)
- Since:
- 3.1.1
- See Also:
getTypesWithoutEnhancement()
-
-