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
public class OpenJPAConfigurationImpl extends ConfigurationImpl implements OpenJPAConfiguration
Implementation of theOpenJPAConfigurationinterface.- Author:
- Marc Prud'hommeaux, Abe White
- See Also:
ConfigurationImpl, Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl
id, logFactoryPlugin
-
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
-
Fields inherited from interface org.apache.openjpa.lib.conf.Configuration
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_INTERFACE, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE, ATTRIBUTE_XML, INIT_STATE_FREEZING, INIT_STATE_FROZEN, INIT_STATE_LIQUID
-
Fields inherited from interface org.apache.openjpa.conf.OpenJPAConfiguration
LOG_DATACACHE, LOG_ENHANCE, LOG_METADATA, LOG_QUERY, LOG_RUNTIME, LOG_TOOL, OPTION_DATASTORE_CONNECTION, OPTION_EMBEDDED_COLLECTION_RELATION, OPTION_EMBEDDED_MAP_RELATION, OPTION_EMBEDDED_RELATION, OPTION_ID_APPLICATION, OPTION_ID_DATASTORE, OPTION_INC_FLUSH, OPTION_JDBC_CONNECTION, OPTION_NONTRANS_READ, OPTION_NULL_CONTAINER, OPTION_OPTIMISTIC, OPTION_POSTLOAD_ON_MERGE, OPTION_QUERY_SQL, OPTION_TYPE_ARRAY, OPTION_TYPE_COLLECTION, OPTION_TYPE_MAP, OPTION_USE_TCCL_IN_SELECT_NEW, OPTION_VALUE_AUTOASSIGN, OPTION_VALUE_INCREMENT
-
-
Constructor Summary
Constructors Constructor Description OpenJPAConfigurationImpl()Default constructor.OpenJPAConfigurationImpl(boolean loadGlobals)Constructor.OpenJPAConfigurationImpl(boolean derivations, boolean loadGlobals)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregateListener[]getAggregateListenerInstances()Return the query function listeners.StringgetAggregateListeners()A comma-separted list of the plugin strings of the queryAggregateListeners to use.StringgetAuditor()Gets the plug-in string ofAuditorspecified in this configuration.AuditorgetAuditorInstance()Gets the singular instance ofAuditorassociated with this configuration.StringgetAutoClear()Whether instances clear their state when entering a transaction.intgetAutoClearConstant()Return theAutoClearconstant.StringgetAutoDetach()A comma-separated list of events which trigger auto-detachment in place of managed states.intgetAutoDetachConstant()TheAutoDetachflags.StringgetBrokerFactory()TheBrokerFactoryclass to use.BrokerFactoryEventManagergetBrokerFactoryEventManager()Return theBrokerFactoryEventManagerassociated with this configuration.StringgetBrokerImpl()The plugin string of theBrokerImplextension to create.StringgetCacheDistributionPolicy()Gets the plug-in string that described the policy to distribute cached instances across named partitions of L2 data cache.CacheDistributionPolicygetCacheDistributionPolicyInstance()Gets the policy object that determines distribution of cached instances across named partitions of L2 data cache.MapgetCacheMarshallerInstances()Return the cache marshaller listeners.StringgetCacheMarshallers()A comma-separted list of the plugin strings specifying theCacheMarshallers to use.StringgetCallbackOptions()Options for configuring callbacks as a String.CallbackOptionsgetCallbackOptionsInstance()Options for configuring callbacks.StringgetClassResolver()The plugin string for theClassResolverto use for custom class loading.ClassResolvergetClassResolverInstance()TheClassResolverto use.StringgetCompatibility()Backwards compatibility options.CompatibilitygetCompatibilityInstance()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.LoggetConfigurationLog()Returns the logging channelopenjpa.Runtimeby default.StringgetConnection2DriverName()Class name of the non-XA connection driver.StringgetConnection2Password()The password for the non-XA data store connection.StringgetConnection2Properties()These properties provide any additional information needed to establish non-XA connections.StringgetConnection2URL()The URL for the non-XA data store connection.StringgetConnection2UserName()The user name for the non-XA data store connection.StringgetConnectionDriverName()Class name of the connection driver.ObjectgetConnectionFactory()The connection factory, possibly from JNDI.ObjectgetConnectionFactory2()The non-XA connection factory.StringgetConnectionFactory2Name()The name for the second data store connection factory.StringgetConnectionFactory2Properties()Configuration properties for the non-XA connection factory.StringgetConnectionFactoryMode()The mode of the connection factory in use.StringgetConnectionFactoryName()The name for the data store connection factory.StringgetConnectionFactoryProperties()Configuration properties for the connection factory.StringgetConnectionPassword()The password for the data store connection.StringgetConnectionProperties()These properties provide any additional information needed to establish connections.StringgetConnectionRetainMode()Specifies the behavior of the broker with respect to data store connections.intgetConnectionRetainModeConstant()Return the connection retain mode as one of the following symbolic constants:ConnectionRetainModes.CONN_RETAIN_ALWAYSConnectionRetainModes.CONN_RETAIN_TRANSConnectionRetainModes.CONN_RETAIN_DEMANDStringgetConnectionURL()The URL for the data store connection.StringgetConnectionUserName()The user name for the data store connection.StringgetCreateScriptSource()StringgetCreateScriptTarget()StringgetCreateSource()Optional run a DB action before accessing the database.intgetCreateSourceConstant()StringgetDatabaseAction()database action from the persistence unit.intgetDatabaseActionConstant()StringgetDataCache()TheDataCacheto use for level-2 data store caching.StringgetDataCacheManager()The data cache manager manages this configuration's cache instances.DataCacheManagergetDataCacheManagerInstance()The data cache manager manages this configuration's cache instances.StringgetDataCacheMode()Return the String constant that matches theDataCacheModeintgetDataCacheTimeout()Default data cache timeout.StringgetDetachState()DetachOptionsgetDetachStateInstance()Return the instance specified by the detach state plugin.StringgetDropScriptSource()StringgetDropScriptTarget()StringgetDropSource()Similar toOpenJPAConfiguration.getCreateSource()but for dropping the database schema and content.intgetDropSourceConstant()booleangetDynamicDataStructs()Return whether to generate dynamic data structures where possible for cache and runtime usage.booleangetDynamicEnhancementAgent()Whether OpenJPA will attempt to dynamically load the enhancement agent.EncryptionProvidergetEncryptionProvider()Gets theEncryptionProvider.intgetFetchBatchSize()Get the size of the batch that will be pre-selected when accessing elements in a query or relationship.StringgetFetchGroups()Comma-separated list of fetch group names that will be pre-set for all newFetchConfigurations.String[]getFetchGroupsList()List of fetch group names that will be pre-set for all newFetchConfigurations.FilterListener[]getFilterListenerInstances()Return the query filter listeners.StringgetFilterListeners()A comma-separted list of the plugin strings of the queryFilterListeners to use.StringgetFinderCache()Get the string configuration of the finder cache.FinderCachegetFinderCacheInstance()Get the cache of finder queries.StringgetFlushBeforeQueries()Returns whether or not OpenJPA should automatically flush modifications to the data store before executing queries.intgetFlushBeforeQueriesConstant()Returns one ofQueryFlushModes.FLUSH_TRUE,QueryFlushModes.FLUSH_FALSE, orQueryFlushModes.FLUSH_WITH_CONNECTION, as determined by parsing the string returned byOpenJPAConfiguration.getFlushBeforeQueries().booleangetIgnoreChanges()Whether changes in the current transaction are taken into account when executing queries and iterating extents.StringgetInstrumentation()Gets the plug-in string that defines instrumentation providers and what they instrument.InstrumentationProvider[]getInstrumentationInstances()StringgetInstrumentationManager()InstrumentationManagergetInstrumentationManagerInstance()Gets an instance of the instrumentation manager.StringgetInverseManager()The plugin to use for managing inverse relations.StringgetLifecycleEventManager()Gets the lifecycle event manager instance classname.LifecycleEventManagergetLifecycleEventManagerInstance()Gets the lifecycle event manager instance.StringgetLoadScriptSource()Can be used to load a set of initial data into the database.StringgetLockManager()The plugin to use for datastore lock management.intgetLockTimeout()The time to wait for an object lock in milliseconds, or -1 for no timeout.StringgetManagedRuntime()The plugin string for theManagedRuntimeto use for managed environments.ManagedRuntimegetManagedRuntimeInstance()The plugin to use for integrating with a managed runtime.StringgetMapping()The name mapping to use for this data store.intgetMaxFetchDepth()The maximum relation depth to traverse when eager fetching.StringgetMetaDataFactory()A plugin string describing theMetaDataFactoryto use.StringgetMetaDataRepository()A plugin string describing theMetaDataRepositoryto use.MetaDataRepositorygetMetaDataRepositoryInstance()The metadata repository of managed class information.booleangetMultithreaded()Whether brokers or their managed objects will be used by multiple concurrent threads.booleangetNontransactionalRead()Whether persistent state is accessible outside a transaction by default.booleangetNontransactionalWrite()Whether persistent state can be modified outside a transaction by default.booleangetOptimistic()Whether to use optimistic transactions by default.booleangetOptimizeIdCopy()Whether to attempt to optimize id class copy operations during the enhancement process.StringgetOrphanedKeyAction()The action to take when an orphaned key is detected.OrphanedKeyActiongetOrphanedKeyActionInstance()The action to take when an orphaned key is detected.Map<String,Object>getPersistenceEnvironment()booleangetPostLoadOnMerge()Whether to send @PostLoad events on a merge operation.StringgetProxyManager()The plugin string for theProxyManagerto use for second class object proxies.ProxyManagergetProxyManagerInstance()TheProxyManagerto use.StringgetQueryCache()The plugin to use for level-2 data store query caching.StringgetQueryCompilationCache()Configuration settings for the query compilation cache to use.MapgetQueryCompilationCacheInstance()Configuration settings for the query compilation cache to use.StringgetQuerySQLCache()Gets the configuration of QuerySQLCache.PreparedQueryCachegetQuerySQLCacheInstance()Return PreparedQueryCache used for caching datastore queries.intgetQueryTimeout()The time to wait for a query to execute in milliseconds, or -1 for no timeout.StringgetReadLockLevel()The default read lock level to use during non-optimistic transactions.intgetReadLockLevelConstant()The numeric read lock level.booleangetRefreshFromDataCache()Gets whether entity state is to be refreshed fromDataCache.RemoteCommitEventManagergetRemoteCommitEventManager()The remote event manager that manages this configuration's remote event listeners.StringgetRemoteCommitProvider()The plugin to use for remote commit notification.StringgetRestoreState()Whether to restore initial state on rollback by default.intgetRestoreStateConstant()Return theRestoreStateconstant.booleangetRetainState()Whether to retain state after a transaction by default.booleangetRetryClassRegistration()Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed.StringgetRuntimeUnenhancedClasses()Specifies how OpenJPA handles unenhanced types.intgetRuntimeUnenhancedClassesConstant()Return the runtime class optimization setting as one of the following symbolic constants:RuntimeUnenhancedClassesModes.SUPPORTEDRuntimeUnenhancedClassesModes.UNSUPPORTEDRuntimeUnenhancedClassesModes.WARNStringgetSavepointManager()The plugin to use for savepoint management.SavepointManagergetSavepointManagerInstance()Return the configured savepoint manager instance.StringgetScriptsAction()Similar toOpenJPAConfiguration.getDatabaseAction()but write the generated SQL to files.intgetScriptsActionConstant()StringgetSequence()Plugin string for the default systemSeq.SeqgetSequenceInstance()The default system sequence.StringgetSpecification()Get the name of the Specification only (not the version or other information) or an empty String if not set.SpecificationgetSpecificationInstance()Get the Specification.StoreFacadeTypeRegistrygetStoreFacadeTypeRegistry()Return theStoreFacadeTypeRegistryinstance associated with this configuration.StringgetTransactionMode()Specifies the behavior of the transaction model.Collection<Class<?>>getTypesWithoutEnhancement()booleangetUseTCCLinSelectNew()Indicates if theThread.contextClassLoadershould be used as fallback if the result class forselect newis not found by the classloader of the entity.ObjectgetValidationFactoryInstance()The ValidatorFactory provided by the container or application.StringgetValidationGroupPrePersist()Gets the validation groups for pre-persistStringgetValidationGroupPreRemove()Gets the validation groups for pre-removeStringgetValidationGroupPreUpdate()Gets the validation groups for pre-updateStringgetValidationMode()The bean validation mode to use for managed classes.ObjectgetValidatorInstance()The Validator provided by the container or created by the runtime.StringgetWriteLockLevel()The default write lock level to use during non-optimistic transactions.intgetWriteLockLevelConstant()The numeric write lock level.voidinstantiateAll()Call the instantiating get methods for all values.booleanisConnectionFactoryModeManaged()Whether connections are automatically enlisted in global transactions.booleanisInitializeEagerly()Affirms if all configured elements are initialized eagerly as opposed to lazily on-demand.booleanisTransactionModeManaged()Return whether managed transactions are being used.booleanmetaDataRepositoryAvailable()Returns true if a metaDataRepository has been created for this configuration.BrokerImplnewBrokerInstance(String user, String pass)Create a new broker instance with the configured plugin data.InverseManagernewInverseManagerInstance()Return a new inverse manager instance using the configured plugin settings.LockManagernewLockManagerInstance()Return a new lock manager instance using the configured plugin settings.MetaDataFactorynewMetaDataFactoryInstance()Create a newMetaDataFactoryto use with a repository.MetaDataRepositorynewMetaDataRepositoryInstance()Create a new empty metadata repository of the configured type.RemoteCommitProvidernewRemoteCommitProviderInstance()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.voidsetCacheDistributionPolicyInstance(CacheDistributionPolicy policy)Sets 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.voidsetConnectionFactoryMode(String mode)The 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.voidsetDataCacheManager(String mgr)The data cache manager manages this configuration's cache instances.voidsetDataCacheManager(DataCacheManager dcm)The 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.voidsetEncryptionProvider(String p)Sets 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.voidsetInstrumentationManager(String mgr)voidsetInstrumentationManager(InstrumentationManager im)voidsetInverseManager(String inverseManager)The plugin to use for managing inverse relations.voidsetLifecycleEventManager(String lem)Sets 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.voidsetMetaDataRepository(MetaDataRepository meta)The 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.voidsetOrphanedKeyAction(OrphanedKeyAction action)The 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.voidsetRefreshFromDataCache(Boolean flag)Sets 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.WARNvoidsetRuntimeUnenhancedClasses(String mode)Specifies 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.voidsetValidatorInstance(Object val)Set 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.Collection<String>supportedOptions()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, writeExternal
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.beans.BeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors
-
Methods inherited from interface org.apache.openjpa.lib.conf.Configuration
addPropertyChangeListener, addValue, clone, close, fromProperties, getId, getLog, getLog, getLogFactory, getProductName, getPropertyKeys, getPropertyKeys, getUserClassLoader, getValue, getValues, isReadOnly, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setReadOnly, setUserClassLoader, toProperties
-
-
-
-
Field Detail
-
metaRepository
protected MetaDataRepository metaRepository
-
remoteEventManager
protected RemoteCommitEventManager remoteEventManager
-
classResolverPlugin
public ObjectValue classResolverPlugin
-
brokerPlugin
public BrokerValue brokerPlugin
-
dataCachePlugin
public ObjectValue dataCachePlugin
-
dataCacheManagerPlugin
public ObjectValue dataCacheManagerPlugin
-
auditorPlugin
public ObjectValue auditorPlugin
-
cacheDistributionPolicyPlugin
public ObjectValue cacheDistributionPolicyPlugin
-
dataCacheTimeout
public IntValue dataCacheTimeout
-
queryCachePlugin
public ObjectValue queryCachePlugin
-
dynamicDataStructs
public BooleanValue dynamicDataStructs
-
managedRuntimePlugin
public ObjectValue managedRuntimePlugin
-
transactionMode
public BooleanValue transactionMode
-
connectionRetainMode
public IntValue connectionRetainMode
-
fetchBatchSize
public IntValue fetchBatchSize
-
maxFetchDepth
public IntValue maxFetchDepth
-
fetchGroups
public StringListValue fetchGroups
-
flushBeforeQueries
public IntValue flushBeforeQueries
-
lockTimeout
public IntValue lockTimeout
-
queryTimeout
public IntValue queryTimeout
-
readLockLevel
public IntValue readLockLevel
-
writeLockLevel
public IntValue writeLockLevel
-
seqPlugin
public ObjectValue seqPlugin
-
filterListenerPlugins
public PluginListValue filterListenerPlugins
-
aggregateListenerPlugins
public PluginListValue aggregateListenerPlugins
-
retryClassRegistration
public BooleanValue retryClassRegistration
-
proxyManagerPlugin
public ObjectValue proxyManagerPlugin
-
connectionUserName
public StringValue connectionUserName
-
connectionPassword
public StringValue connectionPassword
-
encryptionProvider
public PluginValue encryptionProvider
-
connectionURL
public StringValue connectionURL
-
connectionDriverName
public StringValue connectionDriverName
-
connectionFactory
public ObjectValue connectionFactory
-
connectionFactoryName
public StringValue connectionFactoryName
-
connectionProperties
public StringValue connectionProperties
-
connectionFactoryProperties
public StringValue connectionFactoryProperties
-
connectionFactoryMode
public BooleanValue connectionFactoryMode
-
connection2UserName
public StringValue connection2UserName
-
connection2Password
public StringValue connection2Password
-
connection2URL
public StringValue connection2URL
-
connection2DriverName
public StringValue connection2DriverName
-
connection2Properties
public StringValue connection2Properties
-
connectionFactory2
public ObjectValue connectionFactory2
-
connectionFactory2Name
public StringValue connectionFactory2Name
-
connectionFactory2Properties
public StringValue connectionFactory2Properties
-
optimistic
public BooleanValue optimistic
-
autoClear
public IntValue autoClear
-
retainState
public BooleanValue retainState
-
restoreState
public IntValue restoreState
-
detachStatePlugin
public ObjectValue detachStatePlugin
-
ignoreChanges
public BooleanValue ignoreChanges
-
nontransactionalRead
public BooleanValue nontransactionalRead
-
nontransactionalWrite
public BooleanValue nontransactionalWrite
-
refreshFromDataCache
public BooleanValue refreshFromDataCache
-
multithreaded
public BooleanValue multithreaded
-
mapping
public StringValue mapping
-
metaFactoryPlugin
public PluginValue metaFactoryPlugin
-
metaRepositoryPlugin
public MetaDataRepositoryValue metaRepositoryPlugin
-
lockManagerPlugin
public ObjectValue lockManagerPlugin
-
inverseManagerPlugin
public ObjectValue inverseManagerPlugin
-
savepointManagerPlugin
public ObjectValue savepointManagerPlugin
-
orphanedKeyPlugin
public ObjectValue orphanedKeyPlugin
-
compatibilityPlugin
public ObjectValue compatibilityPlugin
-
callbackPlugin
public ObjectValue callbackPlugin
-
queryCompilationCachePlugin
public QueryCompilationCacheValue queryCompilationCachePlugin
-
runtimeUnenhancedClasses
public IntValue runtimeUnenhancedClasses
-
cacheMarshallerPlugins
public CacheMarshallersValue cacheMarshallerPlugins
-
eagerInitialization
public BooleanValue eagerInitialization
-
preparedQueryCachePlugin
public PluginValue preparedQueryCachePlugin
-
finderCachePlugin
public PluginValue finderCachePlugin
-
specification
public ObjectValue specification
-
validationMode
public StringValue validationMode
-
validationFactory
public ObjectValue validationFactory
-
validator
public ObjectValue validator
-
lifecycleEventManager
public ObjectValue lifecycleEventManager
-
validationGroupPrePersist
public StringValue validationGroupPrePersist
-
validationGroupPreUpdate
public StringValue validationGroupPreUpdate
-
validationGroupPreRemove
public StringValue validationGroupPreRemove
-
dataCacheMode
public StringValue dataCacheMode
-
dynamicEnhancementAgent
public BooleanValue dynamicEnhancementAgent
-
instrumentationManager
public ObjectValue instrumentationManager
-
instrumentationProviders
public PluginListValue instrumentationProviders
-
postLoadOnMerge
public BooleanValue postLoadOnMerge
-
optimizeIdCopy
public BooleanValue optimizeIdCopy
-
useTcclForSelectNew
public BooleanValue useTcclForSelectNew
-
typesWithoutEnhancement
public ClassListValue typesWithoutEnhancement
-
databaseAction
public IntValue databaseAction
-
scriptsAction
public IntValue scriptsAction
-
createSource
public IntValue createSource
-
dropSource
public IntValue dropSource
-
createScriptSource
public StringValue createScriptSource
-
dropScriptSource
public StringValue dropScriptSource
-
createScriptTarget
public StringValue createScriptTarget
-
dropScriptTarget
public StringValue dropScriptTarget
-
loadScriptSource
public StringValue loadScriptSource
-
brokerFactoryPlugin
public BrokerFactoryValue brokerFactoryPlugin
-
remoteProviderPlugin
public RemoteCommitProviderValue remoteProviderPlugin
-
autoDetach
public org.apache.openjpa.conf.AutoDetachValue autoDetach
-
-
Constructor Detail
-
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 Detail
-
supportedOptions
public Collection<String> supportedOptions()
Description copied from interface:OpenJPAConfigurationReturn the set of option strings supported by this runtime. This set is mutable.- Specified by:
supportedOptionsin interfaceOpenJPAConfiguration
-
getSpecification
public String 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
public Specification getSpecificationInstance()
Description copied from interface:OpenJPAConfigurationGet the Specification. Specification determines various important default behaviors.- Specified by:
getSpecificationInstancein interfaceOpenJPAConfiguration
-
setSpecification
public void setSpecification(String spec)
Sets Specification from the given String.- Specified by:
setSpecificationin interfaceOpenJPAConfiguration- Parameters:
spec- should be encoded in the format specified inSpecification.- See Also:
Specification
-
setSpecification
public void setSpecification(Specification newSpec)
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:
Specification
-
setClassResolver
public void setClassResolver(String classResolver)
Description copied from interface:OpenJPAConfigurationThe plugin string for theClassResolverto use for custom class loading.- Specified by:
setClassResolverin interfaceOpenJPAConfiguration
-
getClassResolver
public String getClassResolver()
Description copied from interface:OpenJPAConfigurationThe plugin string for theClassResolverto use for custom class loading.- Specified by:
getClassResolverin interfaceOpenJPAConfiguration
-
setClassResolver
public void setClassResolver(ClassResolver classResolver)
Description copied from interface:OpenJPAConfigurationTheClassResolverto use.- Specified by:
setClassResolverin interfaceOpenJPAConfiguration
-
getClassResolverInstance
public ClassResolver getClassResolverInstance()
Description copied from interface:OpenJPAConfigurationTheClassResolverto use.- Specified by:
getClassResolverInstancein interfaceOpenJPAConfiguration
-
setBrokerFactory
public void setBrokerFactory(String factory)
Description copied from interface:OpenJPAConfigurationTheBrokerFactoryclass to use.- Specified by:
setBrokerFactoryin interfaceOpenJPAConfiguration
-
getBrokerFactory
public String getBrokerFactory()
Description copied from interface:OpenJPAConfigurationTheBrokerFactoryclass to use.- Specified by:
getBrokerFactoryin interfaceOpenJPAConfiguration
-
setBrokerImpl
public void setBrokerImpl(String broker)
Description copied from interface:OpenJPAConfigurationThe plugin string of theBrokerImplextension to create.- Specified by:
setBrokerImplin interfaceOpenJPAConfiguration
-
getBrokerImpl
public String getBrokerImpl()
Description copied from interface:OpenJPAConfigurationThe plugin string of theBrokerImplextension to create.- Specified by:
getBrokerImplin interfaceOpenJPAConfiguration
-
newBrokerInstance
public BrokerImpl newBrokerInstance(String user, String pass)
Description copied from interface:OpenJPAConfigurationCreate a new broker instance with the configured plugin data.- Specified by:
newBrokerInstancein interfaceOpenJPAConfiguration
-
setDataCacheManager
public void setDataCacheManager(String mgr)
Description copied from interface:OpenJPAConfigurationThe data cache manager manages this configuration's cache instances.- Specified by:
setDataCacheManagerin interfaceOpenJPAConfiguration
-
getDataCacheManager
public String getDataCacheManager()
Description copied from interface:OpenJPAConfigurationThe data cache manager manages this configuration's cache instances.- Specified by:
getDataCacheManagerin interfaceOpenJPAConfiguration
-
setDataCacheManager
public void setDataCacheManager(DataCacheManager dcm)
Description copied from interface:OpenJPAConfigurationThe data cache manager manages this configuration's cache instances.- Specified by:
setDataCacheManagerin interfaceOpenJPAConfiguration
-
getDataCacheManagerInstance
public DataCacheManager 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
public void setDataCache(String dataCache)
Description copied from interface:OpenJPAConfigurationTheDataCacheto use for level-2 data store caching.- Specified by:
setDataCachein interfaceOpenJPAConfiguration
-
getDataCache
public String 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
public void setDataCacheTimeout(Integer dataCacheTimeout)
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
public void setQueryCache(String queryCache)
Description copied from interface:OpenJPAConfigurationThe plugin to use for level-2 data store query caching.- Specified by:
setQueryCachein interfaceOpenJPAConfiguration
-
getQueryCache
public String 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
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
-
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
public void setDynamicDataStructs(Boolean dynamic)
Description copied from interface:OpenJPAConfigurationWrapper for JCA usage ofOpenJPAConfiguration.setDynamicDataStructs(boolean).- Specified by:
setDynamicDataStructsin interfaceOpenJPAConfiguration
-
setLockManager
public void setLockManager(String lockManager)
Description copied from interface:OpenJPAConfigurationThe plugin to use for datastore lock management.- Specified by:
setLockManagerin interfaceOpenJPAConfiguration
-
getLockManager
public String getLockManager()
Description copied from interface:OpenJPAConfigurationThe plugin to use for datastore lock management.- Specified by:
getLockManagerin interfaceOpenJPAConfiguration
-
newLockManagerInstance
public LockManager newLockManagerInstance()
Description copied from interface:OpenJPAConfigurationReturn a new lock manager instance using the configured plugin settings.- Specified by:
newLockManagerInstancein interfaceOpenJPAConfiguration
-
setInverseManager
public void setInverseManager(String inverseManager)
Description copied from interface:OpenJPAConfigurationThe plugin to use for managing inverse relations.- Specified by:
setInverseManagerin interfaceOpenJPAConfiguration
-
getInverseManager
public String getInverseManager()
Description copied from interface:OpenJPAConfigurationThe plugin to use for managing inverse relations.- Specified by:
getInverseManagerin interfaceOpenJPAConfiguration
-
newInverseManagerInstance
public InverseManager newInverseManagerInstance()
Description copied from interface:OpenJPAConfigurationReturn a new inverse manager instance using the configured plugin settings.- Specified by:
newInverseManagerInstancein interfaceOpenJPAConfiguration
-
setSavepointManager
public void setSavepointManager(String savepointManager)
Description copied from interface:OpenJPAConfigurationThe plugin to use for savepoint management.- Specified by:
setSavepointManagerin interfaceOpenJPAConfiguration
-
getSavepointManager
public String getSavepointManager()
Description copied from interface:OpenJPAConfigurationThe plugin to use for savepoint management.- Specified by:
getSavepointManagerin interfaceOpenJPAConfiguration
-
getSavepointManagerInstance
public SavepointManager getSavepointManagerInstance()
Description copied from interface:OpenJPAConfigurationReturn the configured savepoint manager instance.- Specified by:
getSavepointManagerInstancein interfaceOpenJPAConfiguration
-
setOrphanedKeyAction
public void setOrphanedKeyAction(String action)
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
setOrphanedKeyActionin interfaceOpenJPAConfiguration
-
getOrphanedKeyAction
public String getOrphanedKeyAction()
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
getOrphanedKeyActionin interfaceOpenJPAConfiguration
-
getOrphanedKeyActionInstance
public OrphanedKeyAction getOrphanedKeyActionInstance()
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
getOrphanedKeyActionInstancein interfaceOpenJPAConfiguration
-
setOrphanedKeyAction
public void setOrphanedKeyAction(OrphanedKeyAction action)
Description copied from interface:OpenJPAConfigurationThe action to take when an orphaned key is detected.- Specified by:
setOrphanedKeyActionin interfaceOpenJPAConfiguration
-
setRemoteCommitProvider
public void setRemoteCommitProvider(String remoteCommitProvider)
Description copied from interface:OpenJPAConfigurationThe plugin to use for remote commit notification.- Specified by:
setRemoteCommitProviderin interfaceOpenJPAConfiguration
-
getRemoteCommitProvider
public String getRemoteCommitProvider()
Description copied from interface:OpenJPAConfigurationThe plugin to use for remote commit notification.- Specified by:
getRemoteCommitProviderin interfaceOpenJPAConfiguration
-
newRemoteCommitProviderInstance
public RemoteCommitProvider newRemoteCommitProviderInstance()
Description copied from interface:OpenJPAConfigurationCreate a remote commit provider from the configured plugin.- Specified by:
newRemoteCommitProviderInstancein interfaceOpenJPAConfiguration
-
setRemoteCommitEventManager
public void setRemoteCommitEventManager(RemoteCommitEventManager remoteEventManager)
Description copied from interface:OpenJPAConfigurationThe remote event manager that manages this configuration's remote event listeners.- Specified by:
setRemoteCommitEventManagerin interfaceOpenJPAConfiguration
-
getRemoteCommitEventManager
public RemoteCommitEventManager getRemoteCommitEventManager()
Description copied from interface:OpenJPAConfigurationThe remote event manager that manages this configuration's remote event listeners.- Specified by:
getRemoteCommitEventManagerin interfaceOpenJPAConfiguration
-
setTransactionMode
public void setTransactionMode(String transactionMode)
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
public String 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
public void setManagedRuntime(String managedRuntime)
Description copied from interface:OpenJPAConfigurationThe plugin string for theManagedRuntimeto use for managed environments.- Specified by:
setManagedRuntimein interfaceOpenJPAConfiguration
-
getManagedRuntime
public String getManagedRuntime()
Description copied from interface:OpenJPAConfigurationThe plugin string for theManagedRuntimeto use for managed environments.- Specified by:
getManagedRuntimein interfaceOpenJPAConfiguration
-
setManagedRuntime
public void setManagedRuntime(ManagedRuntime managedRuntime)
Description copied from interface:OpenJPAConfigurationThe plugin to use for integrating with a managed runtime.- Specified by:
setManagedRuntimein interfaceOpenJPAConfiguration
-
getManagedRuntimeInstance
public ManagedRuntime getManagedRuntimeInstance()
Description copied from interface:OpenJPAConfigurationThe plugin to use for integrating with a managed runtime.- Specified by:
getManagedRuntimeInstancein interfaceOpenJPAConfiguration
-
setProxyManager
public void setProxyManager(String proxyManager)
Description copied from interface:OpenJPAConfigurationThe plugin string for theProxyManagerto use for second class object proxies.- Specified by:
setProxyManagerin interfaceOpenJPAConfiguration
-
getProxyManager
public String getProxyManager()
Description copied from interface:OpenJPAConfigurationThe plugin string for theProxyManagerto use for second class object proxies.- Specified by:
getProxyManagerin interfaceOpenJPAConfiguration
-
setProxyManager
public void setProxyManager(ProxyManager proxyManager)
Description copied from interface:OpenJPAConfigurationTheProxyManagerto use.- Specified by:
setProxyManagerin interfaceOpenJPAConfiguration
-
getProxyManagerInstance
public ProxyManager getProxyManagerInstance()
Description copied from interface:OpenJPAConfigurationTheProxyManagerto use.- Specified by:
getProxyManagerInstancein interfaceOpenJPAConfiguration
-
setMapping
public void setMapping(String mapping)
Description copied from interface:OpenJPAConfigurationThe name mapping to use for this data store.- Specified by:
setMappingin interfaceOpenJPAConfiguration
-
getMapping
public String getMapping()
Description copied from interface:OpenJPAConfigurationThe name mapping to use for this data store.- Specified by:
getMappingin interfaceOpenJPAConfiguration
-
setMetaDataFactory
public void setMetaDataFactory(String meta)
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataFactoryto use.- Specified by:
setMetaDataFactoryin interfaceOpenJPAConfiguration
-
getMetaDataFactory
public String getMetaDataFactory()
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataFactoryto use.- Specified by:
getMetaDataFactoryin interfaceOpenJPAConfiguration
-
newMetaDataFactoryInstance
public MetaDataFactory newMetaDataFactoryInstance()
Description copied from interface:OpenJPAConfigurationCreate a newMetaDataFactoryto use with a repository.- Specified by:
newMetaDataFactoryInstancein interfaceOpenJPAConfiguration
-
setMetaDataRepository
public void setMetaDataRepository(String meta)
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataRepositoryto use.- Specified by:
setMetaDataRepositoryin interfaceOpenJPAConfiguration
-
getMetaDataRepository
public String getMetaDataRepository()
Description copied from interface:OpenJPAConfigurationA plugin string describing theMetaDataRepositoryto use.- Specified by:
getMetaDataRepositoryin interfaceOpenJPAConfiguration
-
setMetaDataRepository
public void setMetaDataRepository(MetaDataRepository meta)
Description copied from interface:OpenJPAConfigurationThe metadata repository of managed class information.- Specified by:
setMetaDataRepositoryin interfaceOpenJPAConfiguration
-
getMetaDataRepositoryInstance
public MetaDataRepository 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
public MetaDataRepository newMetaDataRepositoryInstance()
Description copied from interface:OpenJPAConfigurationCreate a new empty metadata repository of the configured type.- Specified by:
newMetaDataRepositoryInstancein interfaceOpenJPAConfiguration
-
setConnectionUserName
public void setConnectionUserName(String connectionUserName)
Description copied from interface:OpenJPAConfigurationThe user name for the data store connection.- Specified by:
setConnectionUserNamein interfaceOpenJPAConfiguration
-
getConnectionUserName
public String getConnectionUserName()
Description copied from interface:OpenJPAConfigurationThe user name for the data store connection.- Specified by:
getConnectionUserNamein interfaceOpenJPAConfiguration
-
setConnectionPassword
public void setConnectionPassword(String connectionPassword)
Description copied from interface:OpenJPAConfigurationThe password for the data store connection.- Specified by:
setConnectionPasswordin interfaceOpenJPAConfiguration
-
getConnectionPassword
public String getConnectionPassword()
Description copied from interface:OpenJPAConfigurationThe password for the data store connection.- Specified by:
getConnectionPasswordin interfaceOpenJPAConfiguration
-
setConnectionURL
public void setConnectionURL(String connectionURL)
Description copied from interface:OpenJPAConfigurationThe URL for the data store connection.- Specified by:
setConnectionURLin interfaceOpenJPAConfiguration
-
getConnectionURL
public String getConnectionURL()
Description copied from interface:OpenJPAConfigurationThe URL for the data store connection.- Specified by:
getConnectionURLin interfaceOpenJPAConfiguration
-
setConnectionDriverName
public void setConnectionDriverName(String driverName)
Description copied from interface:OpenJPAConfigurationClass name of the connection driver.- Specified by:
setConnectionDriverNamein interfaceOpenJPAConfiguration
-
getConnectionDriverName
public String getConnectionDriverName()
Description copied from interface:OpenJPAConfigurationClass name of the connection driver.- Specified by:
getConnectionDriverNamein interfaceOpenJPAConfiguration
-
setConnectionProperties
public void setConnectionProperties(String connectionProperties)
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish connections.- Specified by:
setConnectionPropertiesin interfaceOpenJPAConfiguration
-
getConnectionProperties
public String getConnectionProperties()
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish connections.- Specified by:
getConnectionPropertiesin interfaceOpenJPAConfiguration
-
setConnectionFactoryProperties
public void setConnectionFactoryProperties(String connectionFactoryProperties)
Description copied from interface:OpenJPAConfigurationConfiguration properties for the connection factory.- Specified by:
setConnectionFactoryPropertiesin interfaceOpenJPAConfiguration
-
getConnectionFactoryProperties
public String getConnectionFactoryProperties()
Description copied from interface:OpenJPAConfigurationConfiguration properties for the connection factory.- Specified by:
getConnectionFactoryPropertiesin interfaceOpenJPAConfiguration
-
getConnectionFactoryMode
public String 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
public void setConnectionFactoryMode(String mode)
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
public void setConnectionFactoryName(String connectionFactoryName)
Description copied from interface:OpenJPAConfigurationThe name for the data store connection factory.- Specified by:
setConnectionFactoryNamein interfaceOpenJPAConfiguration
-
getConnectionFactoryName
public String getConnectionFactoryName()
Description copied from interface:OpenJPAConfigurationThe name for the data store connection factory.- Specified by:
getConnectionFactoryNamein interfaceOpenJPAConfiguration
-
setConnectionFactory
public void setConnectionFactory(Object factory)
Description copied from interface:OpenJPAConfigurationThe connection factory.- Specified by:
setConnectionFactoryin interfaceOpenJPAConfiguration
-
getConnectionFactory
public Object getConnectionFactory()
Description copied from interface:OpenJPAConfigurationThe connection factory, possibly from JNDI.- Specified by:
getConnectionFactoryin interfaceOpenJPAConfiguration
-
setConnection2UserName
public void setConnection2UserName(String connection2UserName)
Description copied from interface:OpenJPAConfigurationThe user name for the non-XA data store connection.- Specified by:
setConnection2UserNamein interfaceOpenJPAConfiguration
-
getConnection2UserName
public String getConnection2UserName()
Description copied from interface:OpenJPAConfigurationThe user name for the non-XA data store connection.- Specified by:
getConnection2UserNamein interfaceOpenJPAConfiguration
-
setConnection2Password
public void setConnection2Password(String connection2Password)
Description copied from interface:OpenJPAConfigurationThe password for the non-XA data store connection.- Specified by:
setConnection2Passwordin interfaceOpenJPAConfiguration
-
getConnection2Password
public String getConnection2Password()
Description copied from interface:OpenJPAConfigurationThe password for the non-XA data store connection.- Specified by:
getConnection2Passwordin interfaceOpenJPAConfiguration
-
setConnection2URL
public void setConnection2URL(String connection2URL)
Description copied from interface:OpenJPAConfigurationThe URL for the non-XA data store connection.- Specified by:
setConnection2URLin interfaceOpenJPAConfiguration
-
getConnection2URL
public String getConnection2URL()
Description copied from interface:OpenJPAConfigurationThe URL for the non-XA data store connection.- Specified by:
getConnection2URLin interfaceOpenJPAConfiguration
-
setConnection2DriverName
public void setConnection2DriverName(String driverName)
Description copied from interface:OpenJPAConfigurationClass name of the non-XA connection driver.- Specified by:
setConnection2DriverNamein interfaceOpenJPAConfiguration
-
getConnection2DriverName
public String getConnection2DriverName()
Description copied from interface:OpenJPAConfigurationClass name of the non-XA connection driver.- Specified by:
getConnection2DriverNamein interfaceOpenJPAConfiguration
-
setConnection2Properties
public void setConnection2Properties(String connection2Properties)
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish non-XA connections.- Specified by:
setConnection2Propertiesin interfaceOpenJPAConfiguration
-
getConnection2Properties
public String getConnection2Properties()
Description copied from interface:OpenJPAConfigurationThese properties provide any additional information needed to establish non-XA connections.- Specified by:
getConnection2Propertiesin interfaceOpenJPAConfiguration
-
setConnectionFactory2Properties
public void setConnectionFactory2Properties(String connectionFactory2Properties)
Description copied from interface:OpenJPAConfigurationConfiguration properties for the non-XA connection factory.- Specified by:
setConnectionFactory2Propertiesin interfaceOpenJPAConfiguration
-
getConnectionFactory2Properties
public String getConnectionFactory2Properties()
Description copied from interface:OpenJPAConfigurationConfiguration properties for the non-XA connection factory.- Specified by:
getConnectionFactory2Propertiesin interfaceOpenJPAConfiguration
-
setConnectionFactory2Name
public void setConnectionFactory2Name(String connectionFactory2Name)
Description copied from interface:OpenJPAConfigurationThe name for the second data store connection factory.- Specified by:
setConnectionFactory2Namein interfaceOpenJPAConfiguration
-
getConnectionFactory2Name
public String getConnectionFactory2Name()
Description copied from interface:OpenJPAConfigurationThe name for the second data store connection factory.- Specified by:
getConnectionFactory2Namein interfaceOpenJPAConfiguration
-
setConnectionFactory2
public void setConnectionFactory2(Object factory)
Description copied from interface:OpenJPAConfigurationThe non-XA connection factory.- Specified by:
setConnectionFactory2in interfaceOpenJPAConfiguration
-
getConnectionFactory2
public Object 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
public void setOptimistic(Boolean optimistic)
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
public void setAutoClear(String clear)
Description copied from interface:OpenJPAConfigurationWhether instances clear their state when entering a transaction.- Specified by:
setAutoClearin interfaceOpenJPAConfiguration
-
getAutoClear
public String 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
public void setRetainState(Boolean retainState)
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
public void setRestoreState(String restoreState)
Description copied from interface:OpenJPAConfigurationWhether to restore initial state on rollback by default.- Specified by:
setRestoreStatein interfaceOpenJPAConfiguration
-
getRestoreState
public String 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
public void setAutoDetach(String autoDetach)
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
public String 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
public void setDetachState(String detachState)
Description copied from interface:OpenJPAConfigurationWhich field values to include when detaching.- Specified by:
setDetachStatein interfaceOpenJPAConfiguration
-
getDetachState
public String getDetachState()
-
setDetachState
public void setDetachState(DetachOptions detachState)
Description copied from interface:OpenJPAConfigurationReturn the instance specified by the detach state plugin.- Specified by:
setDetachStatein interfaceOpenJPAConfiguration
-
getDetachStateInstance
public DetachOptions 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
public void setIgnoreChanges(Boolean ignoreChanges)
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
public void setNontransactionalRead(Boolean nontransactionalRead)
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
public void setNontransactionalWrite(Boolean nontransactionalWrite)
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
public void setMultithreaded(Boolean multithreaded)
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
public void setFetchBatchSize(Integer fetchBatchSize)
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
public void setMaxFetchDepth(Integer maxFetchDepth)
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
public void setFetchGroups(String fetchGroups)
Description copied from interface:OpenJPAConfigurationComma-separated list of fetch group names that will be pre-set for all newFetchConfigurations.- Specified by:
setFetchGroupsin interfaceOpenJPAConfiguration
-
getFetchGroups
public String 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
public String[] getFetchGroupsList()
Description copied from interface:OpenJPAConfigurationList of fetch group names that will be pre-set for all newFetchConfigurations.- Specified by:
getFetchGroupsListin interfaceOpenJPAConfiguration
-
setFetchGroups
public void setFetchGroups(String[] fetchGroups)
Description copied from interface:OpenJPAConfigurationList of fetch group names that will be pre-set for all newFetchConfigurations.- Specified by:
setFetchGroupsin interfaceOpenJPAConfiguration
-
setFlushBeforeQueries
public void setFlushBeforeQueries(String flush)
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
public String 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
public void setLockTimeout(Integer timeout)
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
public void setReadLockLevel(String level)
Description copied from interface:OpenJPAConfigurationThe default read lock level to use during non-optimistic transactions. Defaults toread.- Specified by:
setReadLockLevelin interfaceOpenJPAConfiguration
-
getReadLockLevel
public String 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
public void setWriteLockLevel(String level)
Description copied from interface:OpenJPAConfigurationThe default write lock level to use during non-optimistic transactions. Defaults towrite.- Specified by:
setWriteLockLevelin interfaceOpenJPAConfiguration
-
getWriteLockLevel
public String 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
public void setSequence(String sequence)
Description copied from interface:OpenJPAConfigurationPlugin string for the default systemSeq.- Specified by:
setSequencein interfaceOpenJPAConfiguration
-
getSequence
public String getSequence()
Description copied from interface:OpenJPAConfigurationPlugin string for the default systemSeq.- Specified by:
getSequencein interfaceOpenJPAConfiguration
-
setSequence
public void setSequence(Seq seq)
Description copied from interface:OpenJPAConfigurationThe default system sequence.- Specified by:
setSequencein interfaceOpenJPAConfiguration
-
getSequenceInstance
public Seq getSequenceInstance()
Description copied from interface:OpenJPAConfigurationThe default system sequence.- Specified by:
getSequenceInstancein interfaceOpenJPAConfiguration
-
setConnectionRetainMode
public void setConnectionRetainMode(String connectionRetainMode)
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
public String 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
public void setFilterListeners(String filterListeners)
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryFilterListeners to use.- Specified by:
setFilterListenersin interfaceOpenJPAConfiguration
-
getFilterListeners
public String getFilterListeners()
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryFilterListeners to use.- Specified by:
getFilterListenersin interfaceOpenJPAConfiguration
-
setFilterListeners
public void setFilterListeners(FilterListener[] listeners)
Description copied from interface:OpenJPAConfigurationSet the query filter listeners. Overrides the list of listener classes.- Specified by:
setFilterListenersin interfaceOpenJPAConfiguration
-
getFilterListenerInstances
public FilterListener[] 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
public void setAggregateListeners(String aggregateListeners)
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryAggregateListeners to use.- Specified by:
setAggregateListenersin interfaceOpenJPAConfiguration
-
getAggregateListeners
public String getAggregateListeners()
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings of the queryAggregateListeners to use.- Specified by:
getAggregateListenersin interfaceOpenJPAConfiguration
-
setAggregateListeners
public void setAggregateListeners(AggregateListener[] listeners)
Description copied from interface:OpenJPAConfigurationSet the query function listeners. Overrides the list of listener classes.- Specified by:
setAggregateListenersin interfaceOpenJPAConfiguration
-
getAggregateListenerInstances
public AggregateListener[] 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
public void setRetryClassRegistration(Boolean retry)
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
public String getCompatibility()
Description copied from interface:OpenJPAConfigurationBackwards compatibility options.- Specified by:
getCompatibilityin interfaceOpenJPAConfiguration
-
setCompatibility
public void setCompatibility(String compatibility)
Description copied from interface:OpenJPAConfigurationBackwards compatibility options.- Specified by:
setCompatibilityin interfaceOpenJPAConfiguration
-
getCompatibilityInstance
public Compatibility 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
public String getCallbackOptions()
Description copied from interface:OpenJPAConfigurationOptions for configuring callbacks as a String.- Specified by:
getCallbackOptionsin interfaceOpenJPAConfiguration
-
setCallbackOptions
public void setCallbackOptions(String options)
Description copied from interface:OpenJPAConfigurationOptions for configuring callbacks set as a comma-separated string value pair.- Specified by:
setCallbackOptionsin interfaceOpenJPAConfiguration
-
getCallbackOptionsInstance
public CallbackOptions getCallbackOptionsInstance()
Description copied from interface:OpenJPAConfigurationOptions for configuring callbacks.- Specified by:
getCallbackOptionsInstancein interfaceOpenJPAConfiguration
-
getQueryCompilationCache
public String getQueryCompilationCache()
Description copied from interface:OpenJPAConfigurationConfiguration settings for the query compilation cache to use.- Specified by:
getQueryCompilationCachein interfaceOpenJPAConfiguration- See Also:
QueryCompilationCacheValue
-
setQueryCompilationCache
public void setQueryCompilationCache(String queryCompilationCache)
Description copied from interface:OpenJPAConfigurationConfiguration settings for the query compilation cache to use.- Specified by:
setQueryCompilationCachein interfaceOpenJPAConfiguration- See Also:
QueryCompilationCacheValue
-
getQueryCompilationCacheInstance
public Map getQueryCompilationCacheInstance()
Description copied from interface:OpenJPAConfigurationConfiguration settings for the query compilation cache to use.- Specified by:
getQueryCompilationCacheInstancein interfaceOpenJPAConfiguration- See Also:
QueryCompilationCacheValue
-
getStoreFacadeTypeRegistry
public StoreFacadeTypeRegistry getStoreFacadeTypeRegistry()
Description copied from interface:OpenJPAConfigurationReturn theStoreFacadeTypeRegistryinstance associated with this configuration.- Specified by:
getStoreFacadeTypeRegistryin interfaceOpenJPAConfiguration
-
getBrokerFactoryEventManager
public BrokerFactoryEventManager getBrokerFactoryEventManager()
Description copied from interface:OpenJPAConfigurationReturn theBrokerFactoryEventManagerassociated with this configuration.- Specified by:
getBrokerFactoryEventManagerin interfaceOpenJPAConfiguration
-
getRuntimeUnenhancedClasses
public String 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
public void setRuntimeUnenhancedClasses(String mode)
Description copied from interface:OpenJPAConfigurationSpecifies how OpenJPA handles unenhanced types.- Specified by:
setRuntimeUnenhancedClassesin interfaceOpenJPAConfiguration
-
getCacheMarshallers
public String getCacheMarshallers()
Description copied from interface:OpenJPAConfigurationA comma-separted list of the plugin strings specifying theCacheMarshallers to use.- Specified by:
getCacheMarshallersin interfaceOpenJPAConfiguration
-
setCacheMarshallers
public void setCacheMarshallers(String marshallers)
Description copied from interface:OpenJPAConfigurationA comma-separated list of the plugin strings specifying theCacheMarshallers to use.- Specified by:
setCacheMarshallersin interfaceOpenJPAConfiguration
-
getCacheMarshallerInstances
public Map 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
public void setValidationMode(String mode)
Description copied from interface:OpenJPAConfigurationSet the bean validation mode to use for managed classes. If not set, defaults toAUTO.- Specified by:
setValidationModein interfaceOpenJPAConfiguration
-
getValidationMode
public String getValidationMode()
Description copied from interface:OpenJPAConfigurationThe bean validation mode to use for managed classes. Defaults toAUTO.- Specified by:
getValidationModein interfaceOpenJPAConfiguration
-
setValidationGroupPrePersist
public void setValidationGroupPrePersist(String vgPrePersist)
Description copied from interface:OpenJPAConfigurationSets the validation groups for pre-persist- Specified by:
setValidationGroupPrePersistin interfaceOpenJPAConfiguration
-
getValidationGroupPrePersist
public String getValidationGroupPrePersist()
Description copied from interface:OpenJPAConfigurationGets the validation groups for pre-persist- Specified by:
getValidationGroupPrePersistin interfaceOpenJPAConfiguration
-
setValidationGroupPreUpdate
public void setValidationGroupPreUpdate(String vgPreUpdate)
Description copied from interface:OpenJPAConfigurationSets the validation groups for pre-update- Specified by:
setValidationGroupPreUpdatein interfaceOpenJPAConfiguration
-
getValidationGroupPreUpdate
public String getValidationGroupPreUpdate()
Description copied from interface:OpenJPAConfigurationGets the validation groups for pre-update- Specified by:
getValidationGroupPreUpdatein interfaceOpenJPAConfiguration
-
setValidationGroupPreRemove
public void setValidationGroupPreRemove(String vgPreRemove)
Description copied from interface:OpenJPAConfigurationSets the validation groups for pre-remove- Specified by:
setValidationGroupPreRemovein interfaceOpenJPAConfiguration
-
getValidationGroupPreRemove
public String getValidationGroupPreRemove()
Description copied from interface:OpenJPAConfigurationGets the validation groups for pre-remove- Specified by:
getValidationGroupPreRemovein interfaceOpenJPAConfiguration
-
getInstrumentation
public String 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
public void setInstrumentation(String providers)
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
public InstrumentationProvider[] getInstrumentationInstances()
-
setInstrumentationManager
public void setInstrumentationManager(String mgr)
-
getInstrumentationManager
public String getInstrumentationManager()
-
setInstrumentationManager
public void setInstrumentationManager(InstrumentationManager im)
-
getInstrumentationManagerInstance
public InstrumentationManager 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
public Log getConfigurationLog()
Description copied from class:ConfigurationImplReturns the logging channelopenjpa.Runtimeby default.- Specified by:
getConfigurationLogin interfaceConfiguration- Overrides:
getConfigurationLogin classConfigurationImpl
-
setQuerySQLCache
public void setQuerySQLCache(String querySQLCache)
Description copied from interface:OpenJPAConfigurationSets QuerySQLCache with the given configuration.- Specified by:
setQuerySQLCachein interfaceOpenJPAConfiguration
-
setQuerySQLCache
public void setQuerySQLCache(PreparedQueryCache querySQLCache)
Description copied from interface:OpenJPAConfigurationSets QuerySQLCache with the given cache.- Specified by:
setQuerySQLCachein interfaceOpenJPAConfiguration
-
getQuerySQLCache
public String getQuerySQLCache()
Description copied from interface:OpenJPAConfigurationGets the configuration of QuerySQLCache.- Specified by:
getQuerySQLCachein interfaceOpenJPAConfiguration
-
getQuerySQLCacheInstance
public PreparedQueryCache getQuerySQLCacheInstance()
Description copied from interface:OpenJPAConfigurationReturn PreparedQueryCache used for caching datastore queries.- Specified by:
getQuerySQLCacheInstancein interfaceOpenJPAConfiguration
-
setFinderCache
public void setFinderCache(String finderCache)
Description copied from interface:OpenJPAConfigurationSet the finder cache from a string configuration.- Specified by:
setFinderCachein interfaceOpenJPAConfiguration
-
getFinderCache
public String getFinderCache()
Description copied from interface:OpenJPAConfigurationGet the string configuration of the finder cache.- Specified by:
getFinderCachein interfaceOpenJPAConfiguration
-
getFinderCacheInstance
public FinderCache getFinderCacheInstance()
Description copied from interface:OpenJPAConfigurationGet the cache of finder queries.- Specified by:
getFinderCacheInstancein interfaceOpenJPAConfiguration
-
getValidationFactoryInstance
public Object getValidationFactoryInstance()
Description copied from interface:OpenJPAConfigurationThe ValidatorFactory provided by the container or application. Defaults tonull.- Specified by:
getValidationFactoryInstancein interfaceOpenJPAConfiguration
-
setValidationFactory
public void setValidationFactory(Object factory)
Description copied from interface:OpenJPAConfigurationSet the container or application provided ValidatorFactory instance. If not set, defaults tonull.- Specified by:
setValidationFactoryin interfaceOpenJPAConfiguration
-
getValidatorInstance
public Object getValidatorInstance()
Description copied from interface:OpenJPAConfigurationThe Validator provided by the container or created by the runtime. Defaults tonull.- Specified by:
getValidatorInstancein interfaceOpenJPAConfiguration
-
setValidatorInstance
public void setValidatorInstance(Object val)
Description copied from interface:OpenJPAConfigurationSet the container or application provided Validator instance. If not set, defaults tonull.- Specified by:
setValidatorInstancein interfaceOpenJPAConfiguration
-
getLifecycleEventManager
public String getLifecycleEventManager()
Description copied from interface:OpenJPAConfigurationGets the lifecycle event manager instance classname.- Specified by:
getLifecycleEventManagerin interfaceOpenJPAConfiguration
-
getLifecycleEventManagerInstance
public LifecycleEventManager getLifecycleEventManagerInstance()
Description copied from interface:OpenJPAConfigurationGets the lifecycle event manager instance.- Specified by:
getLifecycleEventManagerInstancein interfaceOpenJPAConfiguration
-
setLifecycleEventManager
public void setLifecycleEventManager(String lem)
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
public void setEncryptionProvider(String p)
Description copied from interface:OpenJPAConfigurationSets theEncryptionProvider.- Specified by:
setEncryptionProviderin interfaceOpenJPAConfiguration
-
getEncryptionProvider
public EncryptionProvider getEncryptionProvider()
Description copied from interface:OpenJPAConfigurationGets theEncryptionProvider.- Specified by:
getEncryptionProviderin interfaceOpenJPAConfiguration- Returns:
- EncryptionProvider
-
setDataCacheMode
public void setDataCacheMode(String mode)
Description copied from interface:OpenJPAConfigurationSet theDataCacheMode- Specified by:
setDataCacheModein interfaceOpenJPAConfiguration- Parameters:
mode- One of the Sting constants fromDataCacheMode
-
getDataCacheMode
public String getDataCacheMode()
Description copied from interface:OpenJPAConfigurationReturn the String constant that matches theDataCacheMode- Specified by:
getDataCacheModein interfaceOpenJPAConfiguration- Returns:
- DataCacheMode
-
getCacheDistributionPolicy
public String 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
public 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
public void setCacheDistributionPolicy(String policyPlugin)
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
public void setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
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.
-
getAuditorInstance
public Auditor getAuditorInstance()
Description copied from interface:OpenJPAConfigurationGets the singular instance ofAuditorassociated with this configuration.- Specified by:
getAuditorInstancein interfaceOpenJPAConfiguration
-
setAuditorInstance
public void setAuditorInstance(Auditor auditor)
Description copied from interface:OpenJPAConfigurationSets the singular instance ofAuditorassociated with this configuration.- Specified by:
setAuditorInstancein interfaceOpenJPAConfiguration
-
getAuditor
public String getAuditor()
Description copied from interface:OpenJPAConfigurationGets the plug-in string ofAuditorspecified in this configuration.- Specified by:
getAuditorin interfaceOpenJPAConfiguration
-
setAuditor
public void setAuditor(String auditor)
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
public void setPostLoadOnMerge(Boolean postLoadOnMerge)
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
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
-
getDatabaseAction
public String 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:
OpenJPAConfiguration.getDatabaseAction()
-
getScriptsAction
public String getScriptsAction()
Description copied from interface:OpenJPAConfigurationSimilar toOpenJPAConfiguration.getDatabaseAction()but write the generated SQL to files.- Specified by:
getScriptsActionin interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getDatabaseAction()
-
getScriptsActionConstant
public int getScriptsActionConstant()
- Specified by:
getScriptsActionConstantin interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getScriptsAction()
-
getCreateSource
public String 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:
OpenJPAConfiguration.getScriptsAction()
-
getCreateSourceConstant
public int getCreateSourceConstant()
- Specified by:
getCreateSourceConstantin interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getCreateSource()
-
getDropSource
public String getDropSource()
Description copied from interface:OpenJPAConfigurationSimilar toOpenJPAConfiguration.getCreateSource()but for dropping the database schema and content.- Specified by:
getDropSourcein interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getCreateSource()
-
getDropSourceConstant
public int getDropSourceConstant()
- Specified by:
getDropSourceConstantin interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getDatabaseAction()
-
getCreateScriptSource
public String getCreateScriptSource()
- Specified by:
getCreateScriptSourcein interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getDatabaseAction()
-
getDropScriptSource
public String getDropScriptSource()
- Specified by:
getDropScriptSourcein interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getCreateSource()
-
getCreateScriptTarget
public String getCreateScriptTarget()
- Specified by:
getCreateScriptTargetin interfaceOpenJPAConfiguration- See Also:
'script'
-
getDropScriptTarget
public String getDropScriptTarget()
- Specified by:
getDropScriptTargetin interfaceOpenJPAConfiguration- See Also:
'script'
-
getLoadScriptSource
public String 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
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
-
getTypesWithoutEnhancement
public Collection<Class<?>> getTypesWithoutEnhancement()
- Specified by:
getTypesWithoutEnhancementin interfaceOpenJPAConfiguration- Returns:
- types which should not get enhanced although they are on the included directories.
-
setTypesWithoutEnhancement
public void setTypesWithoutEnhancement(Collection<Class<?>> value)
- Specified by:
setTypesWithoutEnhancementin interfaceOpenJPAConfiguration- See Also:
OpenJPAConfiguration.getTypesWithoutEnhancement()
-
-