Package org.apache.openjpa.conf
Class OpenJPAConfigurationImpl
java.lang.Object
org.apache.openjpa.lib.conf.ConfigurationImpl
org.apache.openjpa.conf.OpenJPAConfigurationImpl
- All Implemented Interfaces:
BeanInfo,Externalizable,Serializable,Cloneable,OpenJPAConfiguration,Configuration,ValueListener,Closeable
- Direct Known Subclasses:
JDBCConfigurationImpl,XMLConfiguration
Implementation of the
OpenJPAConfiguration interface.- Author:
- Marc Prud'hommeaux, Abe White
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.apache.openjpa.conf.AutoDetachValueprotected MetaDataRepositoryprotected RemoteCommitEventManagerFields inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl
id, logFactoryPluginFields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32Fields 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_LIQUIDFields inherited from interface org.apache.openjpa.conf.OpenJPAConfiguration
LOG_DATACACHE, LOG_ENHANCE, LOG_METADATA, LOG_QUERY, LOG_RUNTIME, LOG_TOOL, OPTION_DATASTORE_CONNECTION, OPTION_EMBEDDED_COLLECTION_RELATION, OPTION_EMBEDDED_MAP_RELATION, OPTION_EMBEDDED_RELATION, OPTION_ID_APPLICATION, OPTION_ID_DATASTORE, OPTION_INC_FLUSH, OPTION_JDBC_CONNECTION, OPTION_NONTRANS_READ, OPTION_NULL_CONTAINER, OPTION_OPTIMISTIC, OPTION_POSTLOAD_ON_MERGE, OPTION_QUERY_SQL, OPTION_TYPE_ARRAY, OPTION_TYPE_COLLECTION, OPTION_TYPE_MAP, OPTION_USE_TCCL_IN_SELECT_NEW, OPTION_VALUE_AUTOASSIGN, OPTION_VALUE_INCREMENT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.OpenJPAConfigurationImpl(boolean loadGlobals) Constructor.OpenJPAConfigurationImpl(boolean derivations, boolean loadGlobals) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the query function listeners.A comma-separted list of the plugin strings of the queryAggregateListeners to use.Gets the plug-in string ofAuditorspecified in this configuration.Gets the singular instance ofAuditorassociated with this configuration.Whether instances clear their state when entering a transaction.intReturn theAutoClearconstant.A comma-separated list of events which trigger auto-detachment in place of managed states.intTheAutoDetachflags.TheBrokerFactoryclass to use.Return theBrokerFactoryEventManagerassociated with this configuration.The plugin string of theBrokerImplextension to create.Gets the plug-in string that described the policy to distribute cached instances across named partitions of L2 data cache.Gets the policy object that determines distribution of cached instances across named partitions of L2 data cache.Return the cache marshaller listeners.A comma-separted list of the plugin strings specifying theCacheMarshallers to use.Options for configuring callbacks as a String.Options for configuring callbacks.The plugin string for theClassResolverto use for custom class loading.TheClassResolverto use.Backwards compatibility options.If a Compatibility instance is associated with the Specification, we will configure this Compatibility instance instead of instantiating a new one so that the compatibility flags set in compliance with the Specification can be preserved.Returns the logging channelopenjpa.Runtimeby default.Class name of the non-XA connection driver.The password for the non-XA data store connection.These properties provide any additional information needed to establish non-XA connections.The URL for the non-XA data store connection.The user name for the non-XA data store connection.Class name of the connection driver.The connection factory, possibly from JNDI.The non-XA connection factory.The name for the second data store connection factory.Configuration properties for the non-XA connection factory.The mode of the connection factory in use.The name for the data store connection factory.Configuration properties for the connection factory.The password for the data store connection.These properties provide any additional information needed to establish connections.Specifies the behavior of the broker with respect to data store connections.intReturn the connection retain mode as one of the following symbolic constants:ConnectionRetainModes.CONN_RETAIN_ALWAYSConnectionRetainModes.CONN_RETAIN_TRANSConnectionRetainModes.CONN_RETAIN_DEMANDThe URL for the data store connection.The user name for the data store connection.Optional run a DB action before accessing the database.intdatabase action from the persistence unit.intTheDataCacheto use for level-2 data store caching.The data cache manager manages this configuration's cache instances.The data cache manager manages this configuration's cache instances.Return the String constant that matches theDataCacheModeintDefault data cache timeout.Return the instance specified by the detach state plugin.Similar toOpenJPAConfiguration.getCreateSource()but for dropping the database schema and content.intbooleanReturn whether to generate dynamic data structures where possible for cache and runtime usage.booleanWhether OpenJPA will attempt to dynamically load the enhancement agent.Gets theEncryptionProvider.intGet the size of the batch that will be pre-selected when accessing elements in a query or relationship.Comma-separated list of fetch group names that will be pre-set for all newFetchConfigurations.String[]List of fetch group names that will be pre-set for all newFetchConfigurations.Return the query filter listeners.A comma-separted list of the plugin strings of the queryFilterListeners to use.Get the string configuration of the finder cache.Get the cache of finder queries.Returns whether or not OpenJPA should automatically flush modifications to the data store before executing queries.intReturns one ofQueryFlushModes.FLUSH_TRUE,QueryFlushModes.FLUSH_FALSE, orQueryFlushModes.FLUSH_WITH_CONNECTION, as determined by parsing the string returned byOpenJPAConfiguration.getFlushBeforeQueries().booleanWhether changes in the current transaction are taken into account when executing queries and iterating extents.Gets the plug-in string that defines instrumentation providers and what they instrument.Gets an instance of the instrumentation manager.The plugin to use for managing inverse relations.Gets the lifecycle event manager instance classname.Gets the lifecycle event manager instance.Can be used to load a set of initial data into the database.The plugin to use for datastore lock management.intThe time to wait for an object lock in milliseconds, or -1 for no timeout.The plugin string for theManagedRuntimeto use for managed environments.The plugin to use for integrating with a managed runtime.The name mapping to use for this data store.intThe maximum relation depth to traverse when eager fetching.A plugin string describing theMetaDataFactoryto use.A plugin string describing theMetaDataRepositoryto use.The metadata repository of managed class information.booleanWhether brokers or their managed objects will be used by multiple concurrent threads.booleanWhether persistent state is accessible outside a transaction by default.booleanWhether persistent state can be modified outside a transaction by default.booleanWhether to use optimistic transactions by default.booleanWhether to attempt to optimize id class copy operations during the enhancement process.The action to take when an orphaned key is detected.The action to take when an orphaned key is detected.booleanWhether to send @PostLoad events on a merge operation.The plugin string for theProxyManagerto use for second class object proxies.TheProxyManagerto use.The plugin to use for level-2 data store query caching.Configuration settings for the query compilation cache to use.Configuration settings for the query compilation cache to use.Gets the configuration of QuerySQLCache.Return PreparedQueryCache used for caching datastore queries.intThe time to wait for a query to execute in milliseconds, or -1 for no timeout.The default read lock level to use during non-optimistic transactions.intThe numeric read lock level.booleanGets whether entity state is to be refreshed fromDataCache.The remote event manager that manages this configuration's remote event listeners.The plugin to use for remote commit notification.Whether to restore initial state on rollback by default.intReturn theRestoreStateconstant.booleanWhether to retain state after a transaction by default.booleanWhether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed.Specifies how OpenJPA handles unenhanced types.intReturn the runtime class optimization setting as one of the following symbolic constants:RuntimeUnenhancedClassesModes.SUPPORTEDRuntimeUnenhancedClassesModes.UNSUPPORTEDRuntimeUnenhancedClassesModes.WARNThe plugin to use for savepoint management.Return the configured savepoint manager instance.Similar toOpenJPAConfiguration.getDatabaseAction()but write the generated SQL to files.intPlugin string for the default systemSeq.The default system sequence.Get the name of the Specification only (not the version or other information) or an empty String if not set.Get the Specification.Return theStoreFacadeTypeRegistryinstance associated with this configuration.Specifies the behavior of the transaction model.Collection<Class<?>>booleanIndicates if theThread#contextClassLoadershould be used as fallback if the result class forselect newis not found by the classloader of the entity.The ValidatorFactory provided by the container or application.Gets the validation groups for pre-persistGets the validation groups for pre-removeGets the validation groups for pre-updateThe bean validation mode to use for managed classes.The Validator provided by the container or created by the runtime.The default write lock level to use during non-optimistic transactions.intThe numeric write lock level.voidCall the instantiating get methods for all values.booleanWhether connections are automatically enlisted in global transactions.booleanAffirms if all configured elements are initialized eagerly as opposed to lazily on-demand.booleanReturn whether managed transactions are being used.booleanReturns true if a metaDataRepository has been created for this configuration.newBrokerInstance(String user, String pass) Create a new broker instance with the configured plugin data.Return a new inverse manager instance using the configured plugin settings.Return a new lock manager instance using the configured plugin settings.Create a newMetaDataFactoryto use with a repository.Create a new empty metadata repository of the configured type.Create a remote commit provider from the configured plugin.protected voidpreClose()Invoked by final methodConfigurationImpl.close()after invoking theProductDerivation.beforeConfigurationClose(org.apache.openjpa.lib.conf.Configuration)callbacks but before performing internal close operations.voidsetAggregateListeners(String aggregateListeners) A comma-separted list of the plugin strings of the queryAggregateListeners to use.voidsetAggregateListeners(AggregateListener[] listeners) Set the query function listeners.voidsetAuditor(String auditor) Sets the plug-in string ofAuditorspecified in this configuration.voidsetAuditorInstance(Auditor auditor) Sets the singular instance ofAuditorassociated with this configuration.voidsetAutoClear(int clear) Whether instances clear their state when entering a transaction.voidsetAutoClear(String clear) Whether instances clear their state when entering a transaction.voidsetAutoDetach(int autoDetachFlags) TheAutoDetachflags.voidsetAutoDetach(String autoDetach) A comma-separated list of events which trigger auto-detachment in place of managed states.voidsetBrokerFactory(String factory) TheBrokerFactoryclass to use.voidsetBrokerImpl(String broker) The plugin string of theBrokerImplextension to create.voidsetCacheDistributionPolicy(String policyPlugin) Sets the plug-in string that describes the policy to distribute cached instances across named partitions of L2 data cache.voidSets the policy object that determines distribution of cached instances across named partitions of L2 data cache.voidsetCacheMarshallers(String marshallers) A comma-separated list of the plugin strings specifying theCacheMarshallers to use.voidsetCallbackOptions(String options) Options for configuring callbacks set as a comma-separated string value pair.voidsetClassResolver(String classResolver) The plugin string for theClassResolverto use for custom class loading.voidsetClassResolver(ClassResolver classResolver) TheClassResolverto use.voidsetCompatibility(String compatibility) Backwards compatibility options.voidsetConnection2DriverName(String driverName) Class name of the non-XA connection driver.voidsetConnection2Password(String connection2Password) The password for the non-XA data store connection.voidsetConnection2Properties(String connection2Properties) These properties provide any additional information needed to establish non-XA connections.voidsetConnection2URL(String connection2URL) The URL for the non-XA data store connection.voidsetConnection2UserName(String connection2UserName) The user name for the non-XA data store connection.voidsetConnectionDriverName(String driverName) Class name of the connection driver.voidsetConnectionFactory(Object factory) The connection factory.voidsetConnectionFactory2(Object factory) The non-XA connection factory.voidsetConnectionFactory2Name(String connectionFactory2Name) The name for the second data store connection factory.voidsetConnectionFactory2Properties(String connectionFactory2Properties) Configuration properties for the non-XA connection factory.voidThe mode of the connection factory in use.voidsetConnectionFactoryModeManaged(boolean managed) Whether connections are automatically enlisted in global transactions.voidsetConnectionFactoryName(String connectionFactoryName) The name for the data store connection factory.voidsetConnectionFactoryProperties(String connectionFactoryProperties) Configuration properties for the connection factory.voidsetConnectionPassword(String connectionPassword) The password for the data store connection.voidsetConnectionProperties(String connectionProperties) These properties provide any additional information needed to establish connections.voidsetConnectionRetainMode(int connectionRetainMode) Set the connection retain mode as one of the following symbolic constants:ConnectionRetainModes.CONN_RETAIN_ALWAYSConnectionRetainModes.CONN_RETAIN_TRANSConnectionRetainModes.CONN_RETAIN_DEMANDvoidsetConnectionRetainMode(String connectionRetainMode) Specifies the behavior of the broker with respect to data store connections.voidsetConnectionURL(String connectionURL) The URL for the data store connection.voidsetConnectionUserName(String connectionUserName) The user name for the data store connection.voidsetDataCache(String dataCache) TheDataCacheto use for level-2 data store caching.voidThe data cache manager manages this configuration's cache instances.voidThe data cache manager manages this configuration's cache instances.voidsetDataCacheMode(String mode) Set theDataCacheModevoidsetDataCacheTimeout(int dataCacheTimeout) Default data cache timeout.voidsetDataCacheTimeout(Integer dataCacheTimeout) Wrapper for JCA usage ofOpenJPAConfiguration.setDataCacheTimeout(int).voidsetDetachState(String detachState) Which field values to include when detaching.voidsetDetachState(DetachOptions detachState) Return the instance specified by the detach state plugin.voidsetDynamicDataStructs(boolean dynamic) Set whether to generate dynamic data structures where possible for cache and runtime usage.voidsetDynamicDataStructs(Boolean dynamic) Wrapper for JCA usage ofOpenJPAConfiguration.setDynamicDataStructs(boolean).voidsetDynamicEnhancementAgent(boolean dynamic) Sets whether OpenJPA will attempt to dynamically load the enhancement agent.voidSets theEncryptionProvider.voidsetFetchBatchSize(int fetchBatchSize) Set the size of the batch that will be pre-selected when accessing elements in a query or relationship.voidsetFetchBatchSize(Integer fetchBatchSize) Wrapper for JCA usage ofOpenJPAConfiguration.setFetchBatchSize(int).voidsetFetchGroups(String fetchGroups) Comma-separated list of fetch group names that will be pre-set for all newFetchConfigurations.voidsetFetchGroups(String[] fetchGroups) List of fetch group names that will be pre-set for all newFetchConfigurations.voidsetFilterListeners(String filterListeners) A comma-separted list of the plugin strings of the queryFilterListeners to use.voidsetFilterListeners(FilterListener[] listeners) Set the query filter listeners.voidsetFinderCache(String finderCache) Set the finder cache from a string configuration.voidsetFlushBeforeQueries(int flush) voidsetFlushBeforeQueries(String flush) Sets whether or not OpenJPA should automatically flush modifications to the data store before executing queries.voidsetIgnoreChanges(boolean ignoreChanges) Whether changes in the current transaction are taken into account when executing queries and iterating extents.voidsetIgnoreChanges(Boolean ignoreChanges) Wrapper for JCA usage ofOpenJPAConfiguration.setIgnoreChanges(boolean).voidsetInitializeEagerly(boolean retry) Sets whether all configured elements will be initialized eagerly or lazily on-demand.voidsetInstrumentation(String providers) Sets the plug-in string that defines instrumentation providers and what they instrument.voidvoidvoidsetInverseManager(String inverseManager) The plugin to use for managing inverse relations.voidSets the lifecycle event manager instance classname.voidsetLockManager(String lockManager) The plugin to use for datastore lock management.voidsetLockTimeout(int timeout) The time to wait for an object lock in milliseconds, or -1 for no timeout.voidsetLockTimeout(Integer timeout) Wrapper for JCA usage ofOpenJPAConfiguration.setLockTimeout(int).voidsetManagedRuntime(String managedRuntime) The plugin string for theManagedRuntimeto use for managed environments.voidsetManagedRuntime(ManagedRuntime managedRuntime) The plugin to use for integrating with a managed runtime.voidsetMapping(String mapping) The name mapping to use for this data store.voidsetMaxFetchDepth(int maxFetchDepth) The maximum relation depth to traverse when eager fetching.voidsetMaxFetchDepth(Integer maxFetchDepth) Wrapper for JCA usage ofOpenJPAConfiguration.setMaxFetchDepth(int).voidsetMetaDataFactory(String meta) A plugin string describing theMetaDataFactoryto use.voidsetMetaDataRepository(String meta) A plugin string describing theMetaDataRepositoryto use.voidThe metadata repository of managed class information.voidsetMultithreaded(boolean multithreaded) Whether brokers or their managed objects will be used by multiple concurrent threads.voidsetMultithreaded(Boolean multithreaded) Wrapper for JCA usage ofOpenJPAConfiguration.setMultithreaded(boolean).voidsetNontransactionalRead(boolean nontransactionalRead) Whether persistent state is accessible outside a transaction by default.voidsetNontransactionalRead(Boolean nontransactionalRead) Wrapper for JCA usage ofOpenJPAConfiguration.setNontransactionalRead(boolean).voidsetNontransactionalWrite(boolean nontransactionalWrite) Whether persistent state can be modified outside a transaction by default.voidsetNontransactionalWrite(Boolean nontransactionalWrite) Wrapper for JCA usage ofOpenJPAConfiguration.setNontransactionalWrite(boolean).voidsetOptimistic(boolean optimistic) Whether to use optimistic transactions by default.voidsetOptimistic(Boolean optimistic) Wrapper for JCA usage ofOpenJPAConfiguration.setOptimistic(boolean).voidsetOptimizeIdCopy(boolean optimizeId) Whether to attempt to optimize id class copy operations during the enhancement process.voidsetOptimizeIdCopy(Boolean optimizeId) Whether to attempt to optimize id class copy operations during the enhancement process.voidsetOrphanedKeyAction(String action) The action to take when an orphaned key is detected.voidThe action to take when an orphaned key is detected.voidsetPersistenceEnvironment(Map<String, Object> peMap) voidsetPostLoadOnMerge(boolean postLoadOnMerge) Whether to send @PostLoad events on a merge operation.voidsetPostLoadOnMerge(Boolean postLoadOnMerge) Whether to send @PostLoad events on a merge operation.voidsetProxyManager(String proxyManager) The plugin string for theProxyManagerto use for second class object proxies.voidsetProxyManager(ProxyManager proxyManager) TheProxyManagerto use.voidsetQueryCache(String queryCache) The plugin to use for level-2 data store query caching.voidsetQueryCompilationCache(String queryCompilationCache) Configuration settings for the query compilation cache to use.voidsetQuerySQLCache(String querySQLCache) Sets QuerySQLCache with the given configuration.voidsetQuerySQLCache(PreparedQueryCache querySQLCache) Sets QuerySQLCache with the given cache.voidsetQueryTimeout(int timeout) The time to wait for a query to execute in milliseconds, or -1 for no timeout.voidsetReadLockLevel(int level) The numeric read lock level.voidsetReadLockLevel(String level) The default read lock level to use during non-optimistic transactions.voidsetRefreshFromDataCache(boolean flag) Sets whether entity state is to be refreshed fromDataCache.voidSets whether entity state is to be refreshed fromDataCache.voidsetRemoteCommitEventManager(RemoteCommitEventManager remoteEventManager) The remote event manager that manages this configuration's remote event listeners.voidsetRemoteCommitProvider(String remoteCommitProvider) The plugin to use for remote commit notification.voidsetRestoreState(int restoreState) Whether to restore initial state on rollback by default.voidsetRestoreState(String restoreState) Whether to restore initial state on rollback by default.voidsetRetainState(boolean retainState) Whether to retain state after a transaction by default.voidsetRetainState(Boolean retainState) Wrapper for JCA usage ofOpenJPAConfiguration.setRetainState(boolean).voidsetRetryClassRegistration(boolean retry) Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed.voidsetRetryClassRegistration(Boolean retry) Wrapper for JCA usage ofOpenJPAConfiguration.setRetryClassRegistration(boolean).voidsetRuntimeUnenhancedClasses(int mode) Set the runtime class optimization setting as one of the following symbolic constants:RuntimeUnenhancedClassesModes.SUPPORTEDRuntimeUnenhancedClassesModes.UNSUPPORTEDRuntimeUnenhancedClassesModes.WARNvoidSpecifies how OpenJPA handles unenhanced types.voidsetSavepointManager(String savepointManager) The plugin to use for savepoint management.voidsetSequence(String sequence) Plugin string for the default systemSeq.voidsetSequence(Seq seq) The default system sequence.voidsetSpecification(String spec) Sets Specification from the given String.voidsetSpecification(Specification newSpec) Set the Specification for this configuration.voidsetTransactionMode(String transactionMode) Specifies the behavior of the transaction model.voidsetTransactionModeManaged(boolean managed) Set whether managed transactions are being used.voidsetTypesWithoutEnhancement(Collection<Class<?>> value) voidsetUseTCCLinSelectNew(boolean useTcclForSelectNew) Indicates if theThread#contextClassLoadershould be used as fallback if the result class forselect newis not found by the classloader of the entity.voidsetUseTCCLinSelectNew(Boolean useTcclForSelectNew) Indicates if theThread#contextClassLoadershould be used as fallback if the result class forselect newis not found by the classloader of the entity.voidsetValidationFactory(Object factory) Set the container or application provided ValidatorFactory instance.voidsetValidationGroupPrePersist(String vgPrePersist) Sets the validation groups for pre-persistvoidsetValidationGroupPreRemove(String vgPreRemove) Sets the validation groups for pre-removevoidsetValidationGroupPreUpdate(String vgPreUpdate) Sets the validation groups for pre-updatevoidsetValidationMode(String mode) Set the bean validation mode to use for managed classes.voidSet the container or application provided Validator instance.voidsetWriteLockLevel(int level) The numeric write lock level.voidsetWriteLockLevel(String level) The default write lock level to use during non-optimistic transactions.Return the set of option strings supported by this runtime.Methods inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl
addBoolean, addDouble, addFile, addInt, addObject, addPlugin, addPluginList, addPropertyChangeListener, addString, addStringList, addValue, clone, close, equals, fromProperties, getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getId, getLog, getLog, getLogFactory, getMethodDescriptors, getProductName, getPropertiesResource, getPropertyDescriptors, getPropertyKeys, getPropertyKeys, getUserClassLoader, getValue, getValues, hashCode, isDeferResourceLoading, isInvalidProperty, isReadOnly, loadGlobals, readExternal, removePropertyChangeListener, removeValue, setDeferResourceLoading, setId, setLog, setLogFactory, setProductName, setProperties, setPropertiesFile, setReadOnly, setUserClassLoader, toProperties, toXMLName, valueChanged, writeExternalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.beans.BeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptorsMethods inherited from interface org.apache.openjpa.lib.conf.Configuration
addPropertyChangeListener, addValue, clone, close, fromProperties, getId, getLog, getLog, getLogFactory, getProductName, getPropertyKeys, getPropertyKeys, getUserClassLoader, getValue, getValues, isReadOnly, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setReadOnly, setUserClassLoader, toProperties
-
Field Details
-
metaRepository
-
remoteEventManager
-
classResolverPlugin
-
brokerPlugin
-
dataCachePlugin
-
dataCacheManagerPlugin
-
auditorPlugin
-
cacheDistributionPolicyPlugin
-
dataCacheTimeout
-
queryCachePlugin
-
dynamicDataStructs
-
managedRuntimePlugin
-
transactionMode
-
connectionRetainMode
-
fetchBatchSize
-
maxFetchDepth
-
fetchGroups
-
flushBeforeQueries
-
lockTimeout
-
queryTimeout
-
readLockLevel
-
writeLockLevel
-
seqPlugin
-
filterListenerPlugins
-
aggregateListenerPlugins
-
retryClassRegistration
-
proxyManagerPlugin
-
connectionUserName
-
connectionPassword
-
encryptionProvider
-
connectionURL
-
connectionDriverName
-
connectionFactory
-
connectionFactoryName
-
connectionProperties
-
connectionFactoryProperties
-
connectionFactoryMode
-
connection2UserName
-
connection2Password
-
connection2URL
-
connection2DriverName
-
connection2Properties
-
connectionFactory2
-
connectionFactory2Name
-
connectionFactory2Properties
-
optimistic
-
autoClear
-
retainState
-
restoreState
-
detachStatePlugin
-
ignoreChanges
-
nontransactionalRead
-
nontransactionalWrite
-
refreshFromDataCache
-
multithreaded
-
mapping
-
metaFactoryPlugin
-
metaRepositoryPlugin
-
lockManagerPlugin
-
inverseManagerPlugin
-
savepointManagerPlugin
-
orphanedKeyPlugin
-
compatibilityPlugin
-
callbackPlugin
-
queryCompilationCachePlugin
-
runtimeUnenhancedClasses
-
cacheMarshallerPlugins
-
eagerInitialization
-
preparedQueryCachePlugin
-
finderCachePlugin
-
specification
-
validationMode
-
validationFactory
-
validator
-
lifecycleEventManager
-
validationGroupPrePersist
-
validationGroupPreUpdate
-
validationGroupPreRemove
-
dataCacheMode
-
dynamicEnhancementAgent
-
instrumentationManager
-
instrumentationProviders
-
postLoadOnMerge
-
optimizeIdCopy
-
useTcclForSelectNew
-
typesWithoutEnhancement
-
databaseAction
-
scriptsAction
-
createSource
-
dropSource
-
createScriptSource
-
dropScriptSource
-
createScriptTarget
-
dropScriptTarget
-
loadScriptSource
-
brokerFactoryPlugin
-
remoteProviderPlugin
-
autoDetach
public org.apache.openjpa.conf.AutoDetachValue autoDetach
-
-
Constructor Details
-
OpenJPAConfigurationImpl
public OpenJPAConfigurationImpl()Default constructor. Attempts to load global properties. -
OpenJPAConfigurationImpl
public OpenJPAConfigurationImpl(boolean loadGlobals) Constructor.- Parameters:
loadGlobals- whether to attempt to load the global properties
-
OpenJPAConfigurationImpl
public OpenJPAConfigurationImpl(boolean derivations, boolean loadGlobals) Constructor.- Parameters:
derivations- whether to apply product derivationsloadGlobals- whether to attempt to load the global properties
-
-
Method Details
-
supportedOptions
Description copied from interface:OpenJPAConfigurationReturn the set of option strings supported by this runtime. This set is mutable.- Specified by:
supportedOptionsin interfaceOpenJPAConfiguration
-
getSpecification
Get the name of the Specification only (not the version or other information) or an empty String if not set.- Specified by:
getSpecificationin interfaceOpenJPAConfiguration
-
getSpecificationInstance
Description copied from interface:OpenJPAConfigurationGet the Specification. Specification determines various important default behaviors.- Specified by:
getSpecificationInstancein interfaceOpenJPAConfiguration
-
setSpecification
Sets Specification from the given String.- Specified by:
setSpecificationin interfaceOpenJPAConfiguration- Parameters:
spec- should be encoded in the format specified inSpecification.- See Also:
-
setSpecification
Description copied from interface:OpenJPAConfigurationSet the Specification for this configuration. Specification determines various default properties and behavior. For example,compatibilityoptions during runtime. This change will trigger all registered Product Derivations to mutate other configuration properties.- Specified by:
setSpecificationin interfaceOpenJPAConfiguration- Parameters:
newSpec- fullname of the specification that possibly encodes major and minor version information. For encoding format- See Also:
-
setClassResolver
Description copied from interface:OpenJPAConfigurationThe plugin string for theClassResolverto use for custom class loading.- Specified by:
setClassResolverin interfaceOpenJPAConfiguration
-
getClassResolver
Description copied from interface:OpenJPAConfigurationThe plugin string for theClassResolverto use for custom class loading.- Specified by:
getClassResolverin interfaceOpenJPAConfiguration
-
setClassResolver
Description copied from interface:OpenJPAConfigurationTheClassResolverto use.- Specified by:
setClassResolverin interfaceOpenJPAConfiguration
-
getClassResolverInstance
Description copied from interface:OpenJPAConfigurationTheClassResolverto use.- Specified by:
getClassResolverInstancein interfaceOpenJPAConfiguration
-
setBrokerFactory
Description copied from interface:OpenJPAConfigurationTheBrokerFactoryclass to use.- Specified by:
setBrokerFactoryin interfaceOpenJPAConfiguration
-
getBrokerFactory
Description copied from interface:OpenJPAConfigurationTheBrokerFactoryclass to use.- Specified by:
getBrokerFactoryin interfaceOpenJPAConfiguration
-
setBrokerImpl
Description copied from interface:OpenJPAConfigurationThe plugin string of theBrokerImplextension to create.- Specified by:
setBrokerImplin interfaceOpenJPAConfiguration
-
getBrokerImpl
Description copied from interface:OpenJPAConfigurationThe plugin string of theBrokerImplextension to create.- Specified by:
getBrokerImplin interfaceOpenJPAConfiguration
-
newBrokerInstance
Description copied from interface:OpenJPAConfigurationCreate a new broker instance with the configured plugin data.- Specified by:
newBrokerInstancein interfaceOpenJPAConfiguration
-
setDataCacheManager
Description copied from interface:OpenJPAConfigurationThe data cache manager manages this configuration's cache instances.- Specified by:
setDataCacheManagerin interfaceOpenJPAConfiguration
-
getDataCacheManager
Description copied from interface:OpenJPAConfigurationThe data cache manager manages this configuration's cache instances.- Specified by:
getDataCacheManagerin interfaceOpenJPAConfiguration
-
setDataCacheManager
Description copied from interface:OpenJPAConfigurationThe data cache manager manages this configuration's cache instances.- Specified by:
setDataCacheManagerin interfaceOpenJPAConfiguration
-
getDataCacheManagerInstance
Description copied from interface:OpenJPAConfigurationThe 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.- Specified by:
getDataCacheManagerInstancein interfaceOpenJPAConfiguration
-
setDataCache
Description copied from interface:OpenJPAConfigurationTheDataCacheto use for level-2 data store caching.- Specified by:
setDataCachein interfaceOpenJPAConfiguration
-
getDataCache
Description copied from interface:OpenJPAConfigurationTheDataCacheto use for level-2 data store caching.- Specified by:
getDataCachein interfaceOpenJPAConfiguration
-
setDataCacheTimeout
public void setDataCacheTimeout(int dataCacheTimeout) Description copied from interface:OpenJPAConfigurationDefault data cache timeout.- Specified by:
setDataCacheTimeoutin interfaceOpenJPAConfiguration
-
setDataCacheTimeout
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setDataCacheTimeout(int).- Specified by:
setDataCacheTimeoutin interfaceOpenJPAConfiguration
-
getDataCacheTimeout
public int getDataCacheTimeout()Description copied from interface:OpenJPAConfigurationDefault data cache timeout.- Specified by:
getDataCacheTimeoutin interfaceOpenJPAConfiguration
-
setQueryCache
Description copied from interface:OpenJPAConfigurationThe plugin to use for level-2 data store query caching.- Specified by:
setQueryCachein interfaceOpenJPAConfiguration
-
getQueryCache
Description copied from interface:OpenJPAConfigurationThe plugin to use for level-2 data store query caching.- Specified by:
getQueryCachein interfaceOpenJPAConfiguration
-
getRefreshFromDataCache
public boolean getRefreshFromDataCache()Description copied from interface:OpenJPAConfigurationGets 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.- Specified by:
getRefreshFromDataCachein interfaceOpenJPAConfiguration
-
setRefreshFromDataCache
public void setRefreshFromDataCache(boolean flag) Description copied from interface:OpenJPAConfigurationSets 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.- Specified by:
setRefreshFromDataCachein interfaceOpenJPAConfiguration
-
setRefreshFromDataCache
Description copied from interface:OpenJPAConfigurationSets 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.- Specified by:
setRefreshFromDataCachein interfaceOpenJPAConfiguration
-
getDynamicDataStructs
public boolean getDynamicDataStructs()Description copied from interface:OpenJPAConfigurationReturn whether to generate dynamic data structures where possible for cache and runtime usage.- Specified by:
getDynamicDataStructsin interfaceOpenJPAConfiguration
-
setDynamicDataStructs
public void setDynamicDataStructs(boolean dynamic) Description copied from interface:OpenJPAConfigurationSet whether to generate dynamic data structures where possible for cache and runtime usage.- Specified by:
setDynamicDataStructsin interfaceOpenJPAConfiguration
-
setDynamicDataStructs
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setDynamicDataStructs(boolean).- Specified by:
setDynamicDataStructsin interfaceOpenJPAConfiguration
-
setLockManager
Description copied from interface:OpenJPAConfigurationThe plugin to use for datastore lock management.- Specified by:
setLockManagerin interfaceOpenJPAConfiguration
-
getLockManager
Description copied from interface:OpenJPAConfigurationThe plugin to use for datastore lock management.- Specified by:
getLockManagerin interfaceOpenJPAConfiguration
-
newLockManagerInstance
Description copied from interface:OpenJPAConfigurationReturn a new lock manager instance using the configured plugin settings.- Specified by:
newLockManagerInstancein interfaceOpenJPAConfiguration
-
setInverseManager
Description copied from interface:OpenJPAConfigurationThe plugin to use for managing inverse relations.- Specified by:
setInverseManagerin interfaceOpenJPAConfiguration
-
getInverseManager
Description copied from interface:OpenJPAConfigurationThe plugin to use for managing inverse relations.- Specified by:
getInverseManagerin interfaceOpenJPAConfiguration
-
newInverseManagerInstance
Description copied from interface:OpenJPAConfigurationReturn a new inverse manager instance using the configured plugin settings.- Specified by:
newInverseManagerInstancein interfaceOpenJPAConfiguration
-
setSavepointManager
Description copied from interface:OpenJPAConfigurationThe plugin to use for savepoint management.- Specified by:
setSavepointManagerin interfaceOpenJPAConfiguration
-
getSavepointManager
Description copied from interface:OpenJPAConfigurationThe plugin to use for savepoint management.- Specified by:
getSavepointManagerin interfaceOpenJPAConfiguration
-
getSavepointManagerInstance
Description copied from interface:OpenJPAConfigurationReturn the configured savepoint manager instance.- Specified by:
getSavepointManagerInstancein interfaceOpenJPAConfiguration
-
setOrphanedKeyAction
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
setOrphanedKeyActionin interfaceOpenJPAConfiguration
-
getOrphanedKeyAction
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
getOrphanedKeyActionin interfaceOpenJPAConfiguration
-
getOrphanedKeyActionInstance
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
getOrphanedKeyActionInstancein interfaceOpenJPAConfiguration
-
setOrphanedKeyAction
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
setOrphanedKeyActionin interfaceOpenJPAConfiguration
-
setRemoteCommitProvider
Description copied from interface:OpenJPAConfigurationThe plugin to use for remote commit notification.- Specified by:
setRemoteCommitProviderin interfaceOpenJPAConfiguration
-
getRemoteCommitProvider
Description copied from interface:OpenJPAConfigurationThe plugin to use for remote commit notification.- Specified by:
getRemoteCommitProviderin interfaceOpenJPAConfiguration
-
newRemoteCommitProviderInstance
Description copied from interface:OpenJPAConfigurationCreate a remote commit provider from the configured plugin.- Specified by:
newRemoteCommitProviderInstancein interfaceOpenJPAConfiguration
-
setRemoteCommitEventManager
Description copied from interface:OpenJPAConfigurationThe remote event manager that manages this configuration's remote event listeners.- Specified by:
setRemoteCommitEventManagerin interfaceOpenJPAConfiguration
-
getRemoteCommitEventManager
Description copied from interface:OpenJPAConfigurationThe remote event manager that manages this configuration's remote event listeners.- Specified by:
getRemoteCommitEventManagerin interfaceOpenJPAConfiguration
-
setTransactionMode
Description copied from interface:OpenJPAConfigurationSpecifies the behavior of the transaction model. Possible values are:local: Perform transaction operations locally.managed: Use managed environment's global transactions.
- Specified by:
setTransactionModein interfaceOpenJPAConfiguration
-
getTransactionMode
Description copied from interface:OpenJPAConfigurationSpecifies the behavior of the transaction model. Possible values are:local: Perform transaction operations locally.managed: Use managed environment's global transactions.
- Specified by:
getTransactionModein interfaceOpenJPAConfiguration
-
setTransactionModeManaged
public void setTransactionModeManaged(boolean managed) Description copied from interface:OpenJPAConfigurationSet whether managed transactions are being used.- Specified by:
setTransactionModeManagedin interfaceOpenJPAConfiguration
-
isTransactionModeManaged
public boolean isTransactionModeManaged()Description copied from interface:OpenJPAConfigurationReturn whether managed transactions are being used.- Specified by:
isTransactionModeManagedin interfaceOpenJPAConfiguration
-
setManagedRuntime
Description copied from interface:OpenJPAConfigurationThe plugin string for theManagedRuntimeto use for managed environments.- Specified by:
setManagedRuntimein interfaceOpenJPAConfiguration
-
getManagedRuntime
Description copied from interface:OpenJPAConfigurationThe plugin string for theManagedRuntimeto use for managed environments.- Specified by:
getManagedRuntimein interfaceOpenJPAConfiguration
-
setManagedRuntime
Description copied from interface:OpenJPAConfigurationThe plugin to use for integrating with a managed runtime.- Specified by:
setManagedRuntimein interfaceOpenJPAConfiguration
-
getManagedRuntimeInstance
Description copied from interface:OpenJPAConfigurationThe plugin to use for integrating with a managed runtime.- Specified by:
getManagedRuntimeInstancein interfaceOpenJPAConfiguration
-
setProxyManager
Description copied from interface:OpenJPAConfigurationThe plugin string for theProxyManagerto use for second class object proxies.- Specified by:
setProxyManagerin interfaceOpenJPAConfiguration
-
getProxyManager
Description copied from interface:OpenJPAConfigurationThe plugin string for theProxyManagerto use for second class object proxies.- Specified by:
getProxyManagerin interfaceOpenJPAConfiguration
-
setProxyManager
Description copied from interface:OpenJPAConfigurationTheProxyManagerto use.- Specified by:
setProxyManagerin interfaceOpenJPAConfiguration
-
getProxyManagerInstance
Description copied from interface:OpenJPAConfigurationTheProxyManagerto use.- Specified by:
getProxyManagerInstancein interfaceOpenJPAConfiguration
-
setMapping
Description copied from interface:OpenJPAConfigurationThe name mapping to use for this data store.- Specified by:
setMappingin interfaceOpenJPAConfiguration
-
getMapping
Description copied from interface:OpenJPAConfigurationThe name mapping to use for this data store.- Specified by:
getMappingin interfaceOpenJPAConfiguration
-
setMetaDataFactory
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataFactoryto use.- Specified by:
setMetaDataFactoryin interfaceOpenJPAConfiguration
-
getMetaDataFactory
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataFactoryto use.- Specified by:
getMetaDataFactoryin interfaceOpenJPAConfiguration
-
newMetaDataFactoryInstance
Description copied from interface:OpenJPAConfigurationCreate a newMetaDataFactoryto use with a repository.- Specified by:
newMetaDataFactoryInstancein interfaceOpenJPAConfiguration
-
setMetaDataRepository
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataRepositoryto use.- Specified by:
setMetaDataRepositoryin interfaceOpenJPAConfiguration
-
getMetaDataRepository
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataRepositoryto use.- Specified by:
getMetaDataRepositoryin interfaceOpenJPAConfiguration
-
setMetaDataRepository
Description copied from interface:OpenJPAConfigurationThe metadata repository of managed class information.- Specified by:
setMetaDataRepositoryin interfaceOpenJPAConfiguration
-
getMetaDataRepositoryInstance
Description copied from interface:OpenJPAConfigurationThe metadata repository of managed class information. If no repository has been set, creates one.- Specified by:
getMetaDataRepositoryInstancein interfaceOpenJPAConfiguration
-
metaDataRepositoryAvailable
public boolean metaDataRepositoryAvailable()Description copied from interface:OpenJPAConfigurationReturns true if a metaDataRepository has been created for this configuration.- Specified by:
metaDataRepositoryAvailablein interfaceOpenJPAConfiguration
-
newMetaDataRepositoryInstance
Description copied from interface:OpenJPAConfigurationCreate a new empty metadata repository of the configured type.- Specified by:
newMetaDataRepositoryInstancein interfaceOpenJPAConfiguration
-
setConnectionUserName
Description copied from interface:OpenJPAConfigurationThe user name for the data store connection.- Specified by:
setConnectionUserNamein interfaceOpenJPAConfiguration
-
getConnectionUserName
Description copied from interface:OpenJPAConfigurationThe user name for the data store connection.- Specified by:
getConnectionUserNamein interfaceOpenJPAConfiguration
-
setConnectionPassword
Description copied from interface:OpenJPAConfigurationThe password for the data store connection.- Specified by:
setConnectionPasswordin interfaceOpenJPAConfiguration
-
getConnectionPassword
Description copied from interface:OpenJPAConfigurationThe password for the data store connection.- Specified by:
getConnectionPasswordin interfaceOpenJPAConfiguration
-
setConnectionURL
Description copied from interface:OpenJPAConfigurationThe URL for the data store connection.- Specified by:
setConnectionURLin interfaceOpenJPAConfiguration
-
getConnectionURL
Description copied from interface:OpenJPAConfigurationThe URL for the data store connection.- Specified by:
getConnectionURLin interfaceOpenJPAConfiguration
-
setConnectionDriverName
Description copied from interface:OpenJPAConfigurationClass name of the connection driver.- Specified by:
setConnectionDriverNamein interfaceOpenJPAConfiguration
-
getConnectionDriverName
Description copied from interface:OpenJPAConfigurationClass name of the connection driver.- Specified by:
getConnectionDriverNamein interfaceOpenJPAConfiguration
-
setConnectionProperties
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish connections.- Specified by:
setConnectionPropertiesin interfaceOpenJPAConfiguration
-
getConnectionProperties
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish connections.- Specified by:
getConnectionPropertiesin interfaceOpenJPAConfiguration
-
setConnectionFactoryProperties
Description copied from interface:OpenJPAConfigurationConfiguration properties for the connection factory.- Specified by:
setConnectionFactoryPropertiesin interfaceOpenJPAConfiguration
-
getConnectionFactoryProperties
Description copied from interface:OpenJPAConfigurationConfiguration properties for the connection factory.- Specified by:
getConnectionFactoryPropertiesin interfaceOpenJPAConfiguration
-
getConnectionFactoryMode
Description copied from interface:OpenJPAConfigurationThe 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.
- Specified by:
getConnectionFactoryModein interfaceOpenJPAConfiguration
-
setConnectionFactoryMode
Description copied from interface:OpenJPAConfigurationThe 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.
- Specified by:
setConnectionFactoryModein interfaceOpenJPAConfiguration
-
isConnectionFactoryModeManaged
public boolean isConnectionFactoryModeManaged()Description copied from interface:OpenJPAConfigurationWhether connections are automatically enlisted in global transactions.- Specified by:
isConnectionFactoryModeManagedin interfaceOpenJPAConfiguration
-
setConnectionFactoryModeManaged
public void setConnectionFactoryModeManaged(boolean managed) Description copied from interface:OpenJPAConfigurationWhether connections are automatically enlisted in global transactions.- Specified by:
setConnectionFactoryModeManagedin interfaceOpenJPAConfiguration
-
setConnectionFactoryName
Description copied from interface:OpenJPAConfigurationThe name for the data store connection factory.- Specified by:
setConnectionFactoryNamein interfaceOpenJPAConfiguration
-
getConnectionFactoryName
Description copied from interface:OpenJPAConfigurationThe name for the data store connection factory.- Specified by:
getConnectionFactoryNamein interfaceOpenJPAConfiguration
-
setConnectionFactory
Description copied from interface:OpenJPAConfigurationThe connection factory.- Specified by:
setConnectionFactoryin interfaceOpenJPAConfiguration
-
getConnectionFactory
Description copied from interface:OpenJPAConfigurationThe connection factory, possibly from JNDI.- Specified by:
getConnectionFactoryin interfaceOpenJPAConfiguration
-
setConnection2UserName
Description copied from interface:OpenJPAConfigurationThe user name for the non-XA data store connection.- Specified by:
setConnection2UserNamein interfaceOpenJPAConfiguration
-
getConnection2UserName
Description copied from interface:OpenJPAConfigurationThe user name for the non-XA data store connection.- Specified by:
getConnection2UserNamein interfaceOpenJPAConfiguration
-
setConnection2Password
Description copied from interface:OpenJPAConfigurationThe password for the non-XA data store connection.- Specified by:
setConnection2Passwordin interfaceOpenJPAConfiguration
-
getConnection2Password
Description copied from interface:OpenJPAConfigurationThe password for the non-XA data store connection.- Specified by:
getConnection2Passwordin interfaceOpenJPAConfiguration
-
setConnection2URL
Description copied from interface:OpenJPAConfigurationThe URL for the non-XA data store connection.- Specified by:
setConnection2URLin interfaceOpenJPAConfiguration
-
getConnection2URL
Description copied from interface:OpenJPAConfigurationThe URL for the non-XA data store connection.- Specified by:
getConnection2URLin interfaceOpenJPAConfiguration
-
setConnection2DriverName
Description copied from interface:OpenJPAConfigurationClass name of the non-XA connection driver.- Specified by:
setConnection2DriverNamein interfaceOpenJPAConfiguration
-
getConnection2DriverName
Description copied from interface:OpenJPAConfigurationClass name of the non-XA connection driver.- Specified by:
getConnection2DriverNamein interfaceOpenJPAConfiguration
-
setConnection2Properties
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish non-XA connections.- Specified by:
setConnection2Propertiesin interfaceOpenJPAConfiguration
-
getConnection2Properties
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish non-XA connections.- Specified by:
getConnection2Propertiesin interfaceOpenJPAConfiguration
-
setConnectionFactory2Properties
Description copied from interface:OpenJPAConfigurationConfiguration properties for the non-XA connection factory.- Specified by:
setConnectionFactory2Propertiesin interfaceOpenJPAConfiguration
-
getConnectionFactory2Properties
Description copied from interface:OpenJPAConfigurationConfiguration properties for the non-XA connection factory.- Specified by:
getConnectionFactory2Propertiesin interfaceOpenJPAConfiguration
-
setConnectionFactory2Name
Description copied from interface:OpenJPAConfigurationThe name for the second data store connection factory.- Specified by:
setConnectionFactory2Namein interfaceOpenJPAConfiguration
-
getConnectionFactory2Name
Description copied from interface:OpenJPAConfigurationThe name for the second data store connection factory.- Specified by:
getConnectionFactory2Namein interfaceOpenJPAConfiguration
-
setConnectionFactory2
Description copied from interface:OpenJPAConfigurationThe non-XA connection factory.- Specified by:
setConnectionFactory2in interfaceOpenJPAConfiguration
-
getConnectionFactory2
Description copied from interface:OpenJPAConfigurationThe non-XA connection factory.- Specified by:
getConnectionFactory2in interfaceOpenJPAConfiguration
-
setOptimistic
public void setOptimistic(boolean optimistic) Description copied from interface:OpenJPAConfigurationWhether to use optimistic transactions by default.- Specified by:
setOptimisticin interfaceOpenJPAConfiguration
-
setOptimistic
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setOptimistic(boolean).- Specified by:
setOptimisticin interfaceOpenJPAConfiguration
-
getOptimistic
public boolean getOptimistic()Description copied from interface:OpenJPAConfigurationWhether to use optimistic transactions by default.- Specified by:
getOptimisticin interfaceOpenJPAConfiguration
-
setAutoClear
Description copied from interface:OpenJPAConfigurationWhether instances clear their state when entering a transaction.- Specified by:
setAutoClearin interfaceOpenJPAConfiguration
-
getAutoClear
Description copied from interface:OpenJPAConfigurationWhether instances clear their state when entering a transaction.- Specified by:
getAutoClearin interfaceOpenJPAConfiguration
-
setAutoClear
public void setAutoClear(int clear) Description copied from interface:OpenJPAConfigurationWhether instances clear their state when entering a transaction.- Specified by:
setAutoClearin interfaceOpenJPAConfiguration
-
getAutoClearConstant
public int getAutoClearConstant()Description copied from interface:OpenJPAConfigurationReturn theAutoClearconstant.- Specified by:
getAutoClearConstantin interfaceOpenJPAConfiguration
-
setRetainState
public void setRetainState(boolean retainState) Description copied from interface:OpenJPAConfigurationWhether to retain state after a transaction by default.- Specified by:
setRetainStatein interfaceOpenJPAConfiguration
-
setRetainState
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setRetainState(boolean).- Specified by:
setRetainStatein interfaceOpenJPAConfiguration
-
getRetainState
public boolean getRetainState()Description copied from interface:OpenJPAConfigurationWhether to retain state after a transaction by default.- Specified by:
getRetainStatein interfaceOpenJPAConfiguration
-
setRestoreState
Description copied from interface:OpenJPAConfigurationWhether to restore initial state on rollback by default.- Specified by:
setRestoreStatein interfaceOpenJPAConfiguration
-
getRestoreState
Description copied from interface:OpenJPAConfigurationWhether to restore initial state on rollback by default.- Specified by:
getRestoreStatein interfaceOpenJPAConfiguration
-
setRestoreState
public void setRestoreState(int restoreState) Description copied from interface:OpenJPAConfigurationWhether to restore initial state on rollback by default.- Specified by:
setRestoreStatein interfaceOpenJPAConfiguration
-
getRestoreStateConstant
public int getRestoreStateConstant()Description copied from interface:OpenJPAConfigurationReturn theRestoreStateconstant.- Specified by:
getRestoreStateConstantin interfaceOpenJPAConfiguration
-
setAutoDetach
Description copied from interface:OpenJPAConfigurationA 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.
- Specified by:
setAutoDetachin interfaceOpenJPAConfiguration
-
getAutoDetach
Description copied from interface:OpenJPAConfigurationA 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.
- Specified by:
getAutoDetachin interfaceOpenJPAConfiguration
-
setAutoDetach
public void setAutoDetach(int autoDetachFlags) Description copied from interface:OpenJPAConfigurationTheAutoDetachflags.- Specified by:
setAutoDetachin interfaceOpenJPAConfiguration
-
getAutoDetachConstant
public int getAutoDetachConstant()Description copied from interface:OpenJPAConfigurationTheAutoDetachflags.- Specified by:
getAutoDetachConstantin interfaceOpenJPAConfiguration
-
setDetachState
Description copied from interface:OpenJPAConfigurationWhich field values to include when detaching.- Specified by:
setDetachStatein interfaceOpenJPAConfiguration
-
getDetachState
-
setDetachState
Description copied from interface:OpenJPAConfigurationReturn the instance specified by the detach state plugin.- Specified by:
setDetachStatein interfaceOpenJPAConfiguration
-
getDetachStateInstance
Description copied from interface:OpenJPAConfigurationReturn the instance specified by the detach state plugin.- Specified by:
getDetachStateInstancein interfaceOpenJPAConfiguration
-
setIgnoreChanges
public void setIgnoreChanges(boolean ignoreChanges) Description copied from interface:OpenJPAConfigurationWhether changes in the current transaction are taken into account when executing queries and iterating extents.- Specified by:
setIgnoreChangesin interfaceOpenJPAConfiguration
-
setIgnoreChanges
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setIgnoreChanges(boolean).- Specified by:
setIgnoreChangesin interfaceOpenJPAConfiguration
-
getIgnoreChanges
public boolean getIgnoreChanges()Description copied from interface:OpenJPAConfigurationWhether changes in the current transaction are taken into account when executing queries and iterating extents.- Specified by:
getIgnoreChangesin interfaceOpenJPAConfiguration
-
setNontransactionalRead
public void setNontransactionalRead(boolean nontransactionalRead) Description copied from interface:OpenJPAConfigurationWhether persistent state is accessible outside a transaction by default.- Specified by:
setNontransactionalReadin interfaceOpenJPAConfiguration
-
setNontransactionalRead
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setNontransactionalRead(boolean).- Specified by:
setNontransactionalReadin interfaceOpenJPAConfiguration
-
getNontransactionalRead
public boolean getNontransactionalRead()Description copied from interface:OpenJPAConfigurationWhether persistent state is accessible outside a transaction by default.- Specified by:
getNontransactionalReadin interfaceOpenJPAConfiguration
-
setNontransactionalWrite
public void setNontransactionalWrite(boolean nontransactionalWrite) Description copied from interface:OpenJPAConfigurationWhether persistent state can be modified outside a transaction by default.- Specified by:
setNontransactionalWritein interfaceOpenJPAConfiguration
-
setNontransactionalWrite
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setNontransactionalWrite(boolean).- Specified by:
setNontransactionalWritein interfaceOpenJPAConfiguration
-
getNontransactionalWrite
public boolean getNontransactionalWrite()Description copied from interface:OpenJPAConfigurationWhether persistent state can be modified outside a transaction by default.- Specified by:
getNontransactionalWritein interfaceOpenJPAConfiguration
-
setMultithreaded
public void setMultithreaded(boolean multithreaded) Description copied from interface:OpenJPAConfigurationWhether brokers or their managed objects will be used by multiple concurrent threads.- Specified by:
setMultithreadedin interfaceOpenJPAConfiguration
-
setMultithreaded
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setMultithreaded(boolean).- Specified by:
setMultithreadedin interfaceOpenJPAConfiguration
-
getMultithreaded
public boolean getMultithreaded()Description copied from interface:OpenJPAConfigurationWhether brokers or their managed objects will be used by multiple concurrent threads.- Specified by:
getMultithreadedin interfaceOpenJPAConfiguration
-
setFetchBatchSize
public void setFetchBatchSize(int fetchBatchSize) Description copied from interface:OpenJPAConfigurationSet the size of the batch that will be pre-selected when accessing elements in a query or relationship. Use -1 to prefetch all results.- Specified by:
setFetchBatchSizein interfaceOpenJPAConfiguration
-
setFetchBatchSize
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setFetchBatchSize(int).- Specified by:
setFetchBatchSizein interfaceOpenJPAConfiguration
-
getFetchBatchSize
public int getFetchBatchSize()Description copied from interface:OpenJPAConfigurationGet the size of the batch that will be pre-selected when accessing elements in a query or relationship. Use -1 to prefetch all results.- Specified by:
getFetchBatchSizein interfaceOpenJPAConfiguration
-
setMaxFetchDepth
public void setMaxFetchDepth(int maxFetchDepth) Description copied from interface:OpenJPAConfigurationThe maximum relation depth to traverse when eager fetching. Use -1 for no limit.- Specified by:
setMaxFetchDepthin interfaceOpenJPAConfiguration
-
setMaxFetchDepth
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setMaxFetchDepth(int).- Specified by:
setMaxFetchDepthin interfaceOpenJPAConfiguration
-
getMaxFetchDepth
public int getMaxFetchDepth()Description copied from interface:OpenJPAConfigurationThe maximum relation depth to traverse when eager fetching. Use -1 for no limit.- Specified by:
getMaxFetchDepthin interfaceOpenJPAConfiguration
-
setFetchGroups
Description copied from interface:OpenJPAConfigurationComma-separated list of fetch group names that will be pre-set for all newFetchConfigurations.- Specified by:
setFetchGroupsin interfaceOpenJPAConfiguration
-
getFetchGroups
Description copied from interface:OpenJPAConfigurationComma-separated list of fetch group names that will be pre-set for all newFetchConfigurations.- Specified by:
getFetchGroupsin interfaceOpenJPAConfiguration
-
getFetchGroupsList
Description copied from interface:OpenJPAConfigurationList of fetch group names that will be pre-set for all newFetchConfigurations.- Specified by:
getFetchGroupsListin interfaceOpenJPAConfiguration
-
setFetchGroups
Description copied from interface:OpenJPAConfigurationList of fetch group names that will be pre-set for all newFetchConfigurations.- Specified by:
setFetchGroupsin interfaceOpenJPAConfiguration
-
setFlushBeforeQueries
Description copied from interface:OpenJPAConfigurationSets whether or not OpenJPA should automatically flush modifications to the data store before executing queries.- Specified by:
setFlushBeforeQueriesin interfaceOpenJPAConfiguration
-
getFlushBeforeQueries
Description copied from interface:OpenJPAConfigurationReturns whether or not OpenJPA should automatically flush modifications to the data store before executing queries.- Specified by:
getFlushBeforeQueriesin interfaceOpenJPAConfiguration
-
setFlushBeforeQueries
public void setFlushBeforeQueries(int flush) Description copied from interface:OpenJPAConfigurationSet to one ofQueryFlushModes.FLUSH_TRUE,QueryFlushModes.FLUSH_FALSE, orQueryFlushModes.FLUSH_WITH_CONNECTION.- Specified by:
setFlushBeforeQueriesin interfaceOpenJPAConfiguration
-
getFlushBeforeQueriesConstant
public int getFlushBeforeQueriesConstant()Description copied from interface:OpenJPAConfigurationReturns one ofQueryFlushModes.FLUSH_TRUE,QueryFlushModes.FLUSH_FALSE, orQueryFlushModes.FLUSH_WITH_CONNECTION, as determined by parsing the string returned byOpenJPAConfiguration.getFlushBeforeQueries().- Specified by:
getFlushBeforeQueriesConstantin interfaceOpenJPAConfiguration
-
setLockTimeout
public void setLockTimeout(int timeout) Description copied from interface:OpenJPAConfigurationThe time to wait for an object lock in milliseconds, or -1 for no timeout.- Specified by:
setLockTimeoutin interfaceOpenJPAConfiguration
-
setLockTimeout
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setLockTimeout(int).- Specified by:
setLockTimeoutin interfaceOpenJPAConfiguration
-
getLockTimeout
public int getLockTimeout()Description copied from interface:OpenJPAConfigurationThe time to wait for an object lock in milliseconds, or -1 for no timeout.- Specified by:
getLockTimeoutin interfaceOpenJPAConfiguration
-
getQueryTimeout
public int getQueryTimeout()Description copied from interface:OpenJPAConfigurationThe time to wait for a query to execute in milliseconds, or -1 for no timeout.- Specified by:
getQueryTimeoutin interfaceOpenJPAConfiguration
-
setQueryTimeout
public void setQueryTimeout(int timeout) Description copied from interface:OpenJPAConfigurationThe time to wait for a query to execute in milliseconds, or -1 for no timeout.- Specified by:
setQueryTimeoutin interfaceOpenJPAConfiguration
-
setReadLockLevel
Description copied from interface:OpenJPAConfigurationThe default read lock level to use during non-optimistic transactions. Defaults toread.- Specified by:
setReadLockLevelin interfaceOpenJPAConfiguration
-
getReadLockLevel
Description copied from interface:OpenJPAConfigurationThe default read lock level to use during non-optimistic transactions. Defaults toread.- Specified by:
getReadLockLevelin interfaceOpenJPAConfiguration
-
setReadLockLevel
public void setReadLockLevel(int level) Description copied from interface:OpenJPAConfigurationThe numeric read lock level.- Specified by:
setReadLockLevelin interfaceOpenJPAConfiguration
-
getReadLockLevelConstant
public int getReadLockLevelConstant()Description copied from interface:OpenJPAConfigurationThe numeric read lock level.- Specified by:
getReadLockLevelConstantin interfaceOpenJPAConfiguration
-
setWriteLockLevel
Description copied from interface:OpenJPAConfigurationThe default write lock level to use during non-optimistic transactions. Defaults towrite.- Specified by:
setWriteLockLevelin interfaceOpenJPAConfiguration
-
getWriteLockLevel
Description copied from interface:OpenJPAConfigurationThe default write lock level to use during non-optimistic transactions. Defaults towrite.- Specified by:
getWriteLockLevelin interfaceOpenJPAConfiguration
-
setWriteLockLevel
public void setWriteLockLevel(int level) Description copied from interface:OpenJPAConfigurationThe numeric write lock level.- Specified by:
setWriteLockLevelin interfaceOpenJPAConfiguration
-
getWriteLockLevelConstant
public int getWriteLockLevelConstant()Description copied from interface:OpenJPAConfigurationThe numeric write lock level.- Specified by:
getWriteLockLevelConstantin interfaceOpenJPAConfiguration
-
setSequence
Description copied from interface:OpenJPAConfigurationPlugin string for the default systemSeq.- Specified by:
setSequencein interfaceOpenJPAConfiguration
-
getSequence
Description copied from interface:OpenJPAConfigurationPlugin string for the default systemSeq.- Specified by:
getSequencein interfaceOpenJPAConfiguration
-
setSequence
Description copied from interface:OpenJPAConfigurationThe default system sequence.- Specified by:
setSequencein interfaceOpenJPAConfiguration
-
getSequenceInstance
Description copied from interface:OpenJPAConfigurationThe default system sequence.- Specified by:
getSequenceInstancein interfaceOpenJPAConfiguration
-
setConnectionRetainMode
Description copied from interface:OpenJPAConfigurationSpecifies 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.
- Specified by:
setConnectionRetainModein interfaceOpenJPAConfiguration
-
getConnectionRetainMode
Description copied from interface:OpenJPAConfigurationSpecifies 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.
- Specified by:
getConnectionRetainModein interfaceOpenJPAConfiguration
-
setConnectionRetainMode
public void setConnectionRetainMode(int connectionRetainMode) Description copied from interface:OpenJPAConfigurationSet the connection retain mode as one of the following symbolic constants:- Specified by:
setConnectionRetainModein interfaceOpenJPAConfiguration
-
getConnectionRetainModeConstant
public int getConnectionRetainModeConstant()Description copied from interface:OpenJPAConfigurationReturn the connection retain mode as one of the following symbolic constants:- Specified by:
getConnectionRetainModeConstantin interfaceOpenJPAConfiguration
-
setFilterListeners
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryFilterListeners to use.- Specified by:
setFilterListenersin interfaceOpenJPAConfiguration
-
getFilterListeners
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryFilterListeners to use.- Specified by:
getFilterListenersin interfaceOpenJPAConfiguration
-
setFilterListeners
Description copied from interface:OpenJPAConfigurationSet the query filter listeners. Overrides the list of listener classes.- Specified by:
setFilterListenersin interfaceOpenJPAConfiguration
-
getFilterListenerInstances
Description copied from interface:OpenJPAConfigurationReturn the query filter listeners. If none have been set explicitly, this method instantiates the listeners from the set plugin list.- Specified by:
getFilterListenerInstancesin interfaceOpenJPAConfiguration
-
setAggregateListeners
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryAggregateListeners to use.- Specified by:
setAggregateListenersin interfaceOpenJPAConfiguration
-
getAggregateListeners
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryAggregateListeners to use.- Specified by:
getAggregateListenersin interfaceOpenJPAConfiguration
-
setAggregateListeners
Description copied from interface:OpenJPAConfigurationSet the query function listeners. Overrides the list of listener classes.- Specified by:
setAggregateListenersin interfaceOpenJPAConfiguration
-
getAggregateListenerInstances
Description copied from interface:OpenJPAConfigurationReturn the query function listeners. If none have been set explicitly, this method instantiates the listeners from the set plugin list.- Specified by:
getAggregateListenerInstancesin interfaceOpenJPAConfiguration
-
setRetryClassRegistration
public void setRetryClassRegistration(boolean retry) Description copied from interface:OpenJPAConfigurationWhether 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.- Specified by:
setRetryClassRegistrationin interfaceOpenJPAConfiguration
-
setRetryClassRegistration
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setRetryClassRegistration(boolean).- Specified by:
setRetryClassRegistrationin interfaceOpenJPAConfiguration
-
getRetryClassRegistration
public boolean getRetryClassRegistration()Description copied from interface:OpenJPAConfigurationWhether 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.- Specified by:
getRetryClassRegistrationin interfaceOpenJPAConfiguration
-
getCompatibility
Description copied from interface:OpenJPAConfigurationBackwards compatibility options.- Specified by:
getCompatibilityin interfaceOpenJPAConfiguration
-
setCompatibility
Description copied from interface:OpenJPAConfigurationBackwards compatibility options.- Specified by:
setCompatibilityin interfaceOpenJPAConfiguration
-
getCompatibilityInstance
If a Compatibility instance is associated with the Specification, we will configure this Compatibility instance instead of instantiating a new one so that the compatibility flags set in compliance with the Specification can be preserved.- Specified by:
getCompatibilityInstancein interfaceOpenJPAConfiguration
-
getCallbackOptions
Description copied from interface:OpenJPAConfigurationOptions for configuring callbacks as a String.- Specified by:
getCallbackOptionsin interfaceOpenJPAConfiguration
-
setCallbackOptions
Description copied from interface:OpenJPAConfigurationOptions for configuring callbacks set as a comma-separated string value pair.- Specified by:
setCallbackOptionsin interfaceOpenJPAConfiguration
-
getCallbackOptionsInstance
Description copied from interface:OpenJPAConfigurationOptions for configuring callbacks.- Specified by:
getCallbackOptionsInstancein interfaceOpenJPAConfiguration
-
getQueryCompilationCache
Description copied from interface:OpenJPAConfigurationConfiguration settings for the query compilation cache to use.- Specified by:
getQueryCompilationCachein interfaceOpenJPAConfiguration- See Also:
-
setQueryCompilationCache
Description copied from interface:OpenJPAConfigurationConfiguration settings for the query compilation cache to use.- Specified by:
setQueryCompilationCachein interfaceOpenJPAConfiguration- See Also:
-
getQueryCompilationCacheInstance
Description copied from interface:OpenJPAConfigurationConfiguration settings for the query compilation cache to use.- Specified by:
getQueryCompilationCacheInstancein interfaceOpenJPAConfiguration- See Also:
-
getStoreFacadeTypeRegistry
Description copied from interface:OpenJPAConfigurationReturn theStoreFacadeTypeRegistryinstance associated with this configuration.- Specified by:
getStoreFacadeTypeRegistryin interfaceOpenJPAConfiguration
-
getBrokerFactoryEventManager
Description copied from interface:OpenJPAConfigurationReturn theBrokerFactoryEventManagerassociated with this configuration.- Specified by:
getBrokerFactoryEventManagerin interfaceOpenJPAConfiguration
-
getRuntimeUnenhancedClasses
Description copied from interface:OpenJPAConfigurationSpecifies 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.
- Specified by:
getRuntimeUnenhancedClassesin interfaceOpenJPAConfiguration
-
getRuntimeUnenhancedClassesConstant
public int getRuntimeUnenhancedClassesConstant()Description copied from interface:OpenJPAConfigurationReturn the runtime class optimization setting as one of the following symbolic constants:- Specified by:
getRuntimeUnenhancedClassesConstantin interfaceOpenJPAConfiguration
-
setRuntimeUnenhancedClasses
public void setRuntimeUnenhancedClasses(int mode) Description copied from interface:OpenJPAConfigurationSet the runtime class optimization setting as one of the following symbolic constants:- Specified by:
setRuntimeUnenhancedClassesin interfaceOpenJPAConfiguration
-
setRuntimeUnenhancedClasses
Description copied from interface:OpenJPAConfigurationSpecifies how OpenJPA handles unenhanced types.- Specified by:
setRuntimeUnenhancedClassesin interfaceOpenJPAConfiguration
-
getCacheMarshallers
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings specifying theCacheMarshallers to use.- Specified by:
getCacheMarshallersin interfaceOpenJPAConfiguration
-
setCacheMarshallers
Description copied from interface:OpenJPAConfigurationA comma-separated list of the plugin strings specifying theCacheMarshallers to use.- Specified by:
setCacheMarshallersin interfaceOpenJPAConfiguration
-
getCacheMarshallerInstances
Description copied from interface:OpenJPAConfigurationReturn the cache marshaller listeners.- Specified by:
getCacheMarshallerInstancesin interfaceOpenJPAConfiguration
-
isInitializeEagerly
public boolean isInitializeEagerly()Description copied from interface:OpenJPAConfigurationAffirms if all configured elements are initialized eagerly as opposed to lazily on-demand.- Specified by:
isInitializeEagerlyin interfaceOpenJPAConfiguration
-
setInitializeEagerly
public void setInitializeEagerly(boolean retry) Description copied from interface:OpenJPAConfigurationSets whether all configured elements will be initialized eagerly or lazily on-demand.- Specified by:
setInitializeEagerlyin interfaceOpenJPAConfiguration
-
setValidationMode
Description copied from interface:OpenJPAConfigurationSet the bean validation mode to use for managed classes. If not set, defaults toAUTO.- Specified by:
setValidationModein interfaceOpenJPAConfiguration
-
getValidationMode
Description copied from interface:OpenJPAConfigurationThe bean validation mode to use for managed classes. Defaults toAUTO.- Specified by:
getValidationModein interfaceOpenJPAConfiguration
-
setValidationGroupPrePersist
Description copied from interface:OpenJPAConfigurationSets the validation groups for pre-persist- Specified by:
setValidationGroupPrePersistin interfaceOpenJPAConfiguration
-
getValidationGroupPrePersist
Description copied from interface:OpenJPAConfigurationGets the validation groups for pre-persist- Specified by:
getValidationGroupPrePersistin interfaceOpenJPAConfiguration
-
setValidationGroupPreUpdate
Description copied from interface:OpenJPAConfigurationSets the validation groups for pre-update- Specified by:
setValidationGroupPreUpdatein interfaceOpenJPAConfiguration
-
getValidationGroupPreUpdate
Description copied from interface:OpenJPAConfigurationGets the validation groups for pre-update- Specified by:
getValidationGroupPreUpdatein interfaceOpenJPAConfiguration
-
setValidationGroupPreRemove
Description copied from interface:OpenJPAConfigurationSets the validation groups for pre-remove- Specified by:
setValidationGroupPreRemovein interfaceOpenJPAConfiguration
-
getValidationGroupPreRemove
Description copied from interface:OpenJPAConfigurationGets the validation groups for pre-remove- Specified by:
getValidationGroupPreRemovein interfaceOpenJPAConfiguration
-
getInstrumentation
Description copied from interface:OpenJPAConfigurationGets the plug-in string that defines instrumentation providers and what they instrument.- Specified by:
getInstrumentationin interfaceOpenJPAConfiguration- Returns:
- a plug-in string for the instrumentation configuration
-
setInstrumentation
Description copied from interface:OpenJPAConfigurationSets the plug-in string that defines instrumentation providers and what they instrument.- Specified by:
setInstrumentationin interfaceOpenJPAConfiguration- Parameters:
providers- a plug-in string for the instrumentation configuration
-
getInstrumentationInstances
-
setInstrumentationManager
-
getInstrumentationManager
-
setInstrumentationManager
-
getInstrumentationManagerInstance
Description copied from interface:OpenJPAConfigurationGets an instance of the instrumentation manager. The instrumentation provides access to configured instrumentation providers and can be used to manage them at runtime.- Specified by:
getInstrumentationManagerInstancein interfaceOpenJPAConfiguration- Returns:
- an instance of the instrumentation manager
-
instantiateAll
public void instantiateAll()Description copied from interface:ConfigurationCall the instantiating get methods for all values. Up-front instantiation allows one to avoid the synchronization necessary with lazy instantiation.- Specified by:
instantiateAllin interfaceConfiguration- Overrides:
instantiateAllin classConfigurationImpl
-
preClose
protected void preClose()Description copied from class:ConfigurationImplInvoked by final methodConfigurationImpl.close()after invoking theProductDerivation.beforeConfigurationClose(org.apache.openjpa.lib.conf.Configuration)callbacks but before performing internal close operations.- Overrides:
preClosein classConfigurationImpl
-
getConfigurationLog
Description copied from class:ConfigurationImplReturns the logging channelopenjpa.Runtimeby default.- Specified by:
getConfigurationLogin interfaceConfiguration- Overrides:
getConfigurationLogin classConfigurationImpl
-
setQuerySQLCache
Description copied from interface:OpenJPAConfigurationSets QuerySQLCache with the given configuration.- Specified by:
setQuerySQLCachein interfaceOpenJPAConfiguration
-
setQuerySQLCache
Description copied from interface:OpenJPAConfigurationSets QuerySQLCache with the given cache.- Specified by:
setQuerySQLCachein interfaceOpenJPAConfiguration
-
getQuerySQLCache
Description copied from interface:OpenJPAConfigurationGets the configuration of QuerySQLCache.- Specified by:
getQuerySQLCachein interfaceOpenJPAConfiguration
-
getQuerySQLCacheInstance
Description copied from interface:OpenJPAConfigurationReturn PreparedQueryCache used for caching datastore queries.- Specified by:
getQuerySQLCacheInstancein interfaceOpenJPAConfiguration
-
setFinderCache
Description copied from interface:OpenJPAConfigurationSet the finder cache from a string configuration.- Specified by:
setFinderCachein interfaceOpenJPAConfiguration
-
getFinderCache
Description copied from interface:OpenJPAConfigurationGet the string configuration of the finder cache.- Specified by:
getFinderCachein interfaceOpenJPAConfiguration
-
getFinderCacheInstance
Description copied from interface:OpenJPAConfigurationGet the cache of finder queries.- Specified by:
getFinderCacheInstancein interfaceOpenJPAConfiguration
-
getValidationFactoryInstance
Description copied from interface:OpenJPAConfigurationThe ValidatorFactory provided by the container or application. Defaults tonull.- Specified by:
getValidationFactoryInstancein interfaceOpenJPAConfiguration
-
setValidationFactory
Description copied from interface:OpenJPAConfigurationSet the container or application provided ValidatorFactory instance. If not set, defaults tonull.- Specified by:
setValidationFactoryin interfaceOpenJPAConfiguration
-
getValidatorInstance
Description copied from interface:OpenJPAConfigurationThe Validator provided by the container or created by the runtime. Defaults tonull.- Specified by:
getValidatorInstancein interfaceOpenJPAConfiguration
-
setValidatorInstance
Description copied from interface:OpenJPAConfigurationSet the container or application provided Validator instance. If not set, defaults tonull.- Specified by:
setValidatorInstancein interfaceOpenJPAConfiguration
-
getLifecycleEventManager
Description copied from interface:OpenJPAConfigurationGets the lifecycle event manager instance classname.- Specified by:
getLifecycleEventManagerin interfaceOpenJPAConfiguration
-
getLifecycleEventManagerInstance
Description copied from interface:OpenJPAConfigurationGets the lifecycle event manager instance.- Specified by:
getLifecycleEventManagerInstancein interfaceOpenJPAConfiguration
-
setLifecycleEventManager
Description copied from interface:OpenJPAConfigurationSets the lifecycle event manager instance classname.- Specified by:
setLifecycleEventManagerin interfaceOpenJPAConfiguration
-
getDynamicEnhancementAgent
public boolean getDynamicEnhancementAgent()Description copied from interface:OpenJPAConfigurationWhether OpenJPA will attempt to dynamically load the enhancement agent.- Specified by:
getDynamicEnhancementAgentin interfaceOpenJPAConfiguration
-
setDynamicEnhancementAgent
public void setDynamicEnhancementAgent(boolean dynamic) Description copied from interface:OpenJPAConfigurationSets whether OpenJPA will attempt to dynamically load the enhancement agent.- Specified by:
setDynamicEnhancementAgentin interfaceOpenJPAConfiguration
-
setEncryptionProvider
Description copied from interface:OpenJPAConfigurationSets theEncryptionProvider.- Specified by:
setEncryptionProviderin interfaceOpenJPAConfiguration
-
getEncryptionProvider
Description copied from interface:OpenJPAConfigurationGets theEncryptionProvider.- Specified by:
getEncryptionProviderin interfaceOpenJPAConfiguration- Returns:
- EncryptionProvider
-
setDataCacheMode
Description copied from interface:OpenJPAConfigurationSet theDataCacheMode- Specified by:
setDataCacheModein interfaceOpenJPAConfiguration- Parameters:
mode- One of the Sting constants fromDataCacheMode
-
getDataCacheMode
Description copied from interface:OpenJPAConfigurationReturn the String constant that matches theDataCacheMode- Specified by:
getDataCacheModein interfaceOpenJPAConfiguration- Returns:
- DataCacheMode
-
getCacheDistributionPolicy
Description copied from interface:OpenJPAConfigurationGets the plug-in string that described the policy to distribute cached instances across named partitions of L2 data cache.- Specified by:
getCacheDistributionPolicyin interfaceOpenJPAConfiguration- Returns:
- a plug-in string for
CacheDistributionPolicy.
-
getCacheDistributionPolicyInstance
Description copied from interface:OpenJPAConfigurationGets the policy object that determines distribution of cached instances across named partitions of L2 data cache.- Specified by:
getCacheDistributionPolicyInstancein interfaceOpenJPAConfiguration- Returns:
- an implementation of
CacheDistributionPolicy.
-
setCacheDistributionPolicy
Description copied from interface:OpenJPAConfigurationSets the plug-in string that describes the policy to distribute cached instances across named partitions of L2 data cache.- Specified by:
setCacheDistributionPolicyin interfaceOpenJPAConfiguration
-
setCacheDistributionPolicyInstance
Description copied from interface:OpenJPAConfigurationSets the policy object that determines distribution of cached instances across named partitions of L2 data cache.- Specified by:
setCacheDistributionPolicyInstancein interfaceOpenJPAConfiguration- Parameters:
policy- a non-null implementation ofCacheDistributionPolicy.
-
setPersistenceEnvironment
-
getPersistenceEnvironment
-
getAuditorInstance
Description copied from interface:OpenJPAConfigurationGets the singular instance ofAuditorassociated with this configuration.- Specified by:
getAuditorInstancein interfaceOpenJPAConfiguration
-
setAuditorInstance
Description copied from interface:OpenJPAConfigurationSets the singular instance ofAuditorassociated with this configuration.- Specified by:
setAuditorInstancein interfaceOpenJPAConfiguration
-
getAuditor
Description copied from interface:OpenJPAConfigurationGets the plug-in string ofAuditorspecified in this configuration.- Specified by:
getAuditorin interfaceOpenJPAConfiguration
-
setAuditor
Description copied from interface:OpenJPAConfigurationSets the plug-in string ofAuditorspecified in this configuration.- Specified by:
setAuditorin interfaceOpenJPAConfiguration
-
getPostLoadOnMerge
public boolean getPostLoadOnMerge()Description copied from interface:OpenJPAConfigurationWhether to send @PostLoad events on a merge operation.- Specified by:
getPostLoadOnMergein interfaceOpenJPAConfiguration
-
setPostLoadOnMerge
public void setPostLoadOnMerge(boolean postLoadOnMerge) Description copied from interface:OpenJPAConfigurationWhether to send @PostLoad events on a merge operation.- Specified by:
setPostLoadOnMergein interfaceOpenJPAConfiguration
-
setPostLoadOnMerge
Description copied from interface:OpenJPAConfigurationWhether to send @PostLoad events on a merge operation.- Specified by:
setPostLoadOnMergein interfaceOpenJPAConfiguration
-
getOptimizeIdCopy
public boolean getOptimizeIdCopy()Description copied from interface:OpenJPAConfigurationWhether 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.- Specified by:
getOptimizeIdCopyin interfaceOpenJPAConfiguration
-
setOptimizeIdCopy
public void setOptimizeIdCopy(boolean optimizeId) Description copied from interface:OpenJPAConfigurationWhether 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.- Specified by:
setOptimizeIdCopyin interfaceOpenJPAConfiguration
-
setOptimizeIdCopy
Description copied from interface:OpenJPAConfigurationWhether 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.- Specified by:
setOptimizeIdCopyin interfaceOpenJPAConfiguration
-
getDatabaseAction
Description copied from interface:OpenJPAConfigurationdatabase action from the persistence unit. See 'jakarta.persistence.schema-generation.database.action'- Specified by:
getDatabaseActionin interfaceOpenJPAConfiguration- Returns:
- openjpa internal schemaAction which corresponds to the JPA action.
-
getDatabaseActionConstant
public int getDatabaseActionConstant()- Specified by:
getDatabaseActionConstantin interfaceOpenJPAConfiguration- See Also:
-
getScriptsAction
Description copied from interface:OpenJPAConfigurationSimilar toOpenJPAConfiguration.getDatabaseAction()but write the generated SQL to files.- Specified by:
getScriptsActionin interfaceOpenJPAConfiguration- See Also:
-
getScriptsActionConstant
public int getScriptsActionConstant()- Specified by:
getScriptsActionConstantin interfaceOpenJPAConfiguration- See Also:
-
getCreateSource
Description copied from interface:OpenJPAConfigurationOptional run a DB action before accessing the database. The possible values in the persistence unit are:- metadata
- script - see
OpenJPAConfiguration.getCreateScriptSource() - metadata-then-script
- script-then-metadata
- Specified by:
getCreateSourcein interfaceOpenJPAConfiguration- See Also:
-
getCreateSourceConstant
public int getCreateSourceConstant()- Specified by:
getCreateSourceConstantin interfaceOpenJPAConfiguration- See Also:
-
getDropSource
Description copied from interface:OpenJPAConfigurationSimilar toOpenJPAConfiguration.getCreateSource()but for dropping the database schema and content.- Specified by:
getDropSourcein interfaceOpenJPAConfiguration- See Also:
-
getDropSourceConstant
public int getDropSourceConstant()- Specified by:
getDropSourceConstantin interfaceOpenJPAConfiguration- See Also:
-
getCreateScriptSource
- Specified by:
getCreateScriptSourcein interfaceOpenJPAConfiguration- See Also:
-
getDropScriptSource
- Specified by:
getDropScriptSourcein interfaceOpenJPAConfiguration- See Also:
-
getCreateScriptTarget
- Specified by:
getCreateScriptTargetin interfaceOpenJPAConfiguration- See Also:
-
getDropScriptTarget
- Specified by:
getDropScriptTargetin interfaceOpenJPAConfiguration- See Also:
-
getLoadScriptSource
Description copied from interface:OpenJPAConfigurationCan be used to load a set of initial data into the database.- Specified by:
getLoadScriptSourcein interfaceOpenJPAConfiguration
-
getUseTCCLinSelectNew
public boolean getUseTCCLinSelectNew()Description copied from interface:OpenJPAConfigurationIndicates if theThread#contextClassLoadershould be used as fallback if the result class forselect newis not found by the classloader of the entity.- Specified by:
getUseTCCLinSelectNewin interfaceOpenJPAConfiguration
-
setUseTCCLinSelectNew
public void setUseTCCLinSelectNew(boolean useTcclForSelectNew) Description copied from interface:OpenJPAConfigurationIndicates if theThread#contextClassLoadershould be used as fallback if the result class forselect newis not found by the classloader of the entity.- Specified by:
setUseTCCLinSelectNewin interfaceOpenJPAConfiguration
-
setUseTCCLinSelectNew
Description copied from interface:OpenJPAConfigurationIndicates if theThread#contextClassLoadershould be used as fallback if the result class forselect newis not found by the classloader of the entity.- Specified by:
setUseTCCLinSelectNewin interfaceOpenJPAConfiguration
-
getTypesWithoutEnhancement
- Specified by:
getTypesWithoutEnhancementin interfaceOpenJPAConfiguration- Returns:
- types which should not get enhanced although they are on the included directories.
-
setTypesWithoutEnhancement
- Specified by:
setTypesWithoutEnhancementin interfaceOpenJPAConfiguration- See Also:
-