|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.conf.ConfigurationImpl
org.apache.openjpa.conf.OpenJPAConfigurationImpl
public class OpenJPAConfigurationImpl
Implementation of the OpenJPAConfiguration interface.
ConfigurationImpl,
Serialized Form| Fields inherited from class org.apache.openjpa.lib.conf.ConfigurationImpl |
|---|
id, logFactoryPlugin |
| 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 java.beans.BeanInfo |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
|---|---|
OpenJPAConfigurationImpl()
Default constructor. |
|
OpenJPAConfigurationImpl(boolean loadGlobals)
Constructor. |
|
OpenJPAConfigurationImpl(boolean derivations,
boolean loadGlobals)
Constructor. |
|
| Method Summary | |
|---|---|
AggregateListener[] |
getAggregateListenerInstances()
Return the query function listeners. |
String |
getAggregateListeners()
A comma-separted list of the plugin strings of the query AggregateListeners to use. |
String |
getAuditor()
Gets the plug-in string of Auditor specified in this configuration. |
Auditor |
getAuditorInstance()
Gets the singular instance of Auditor associated with this configuration. |
String |
getAutoClear()
Whether instances clear their state when entering a transaction. |
int |
getAutoClearConstant()
Return the AutoClear constant. |
String |
getAutoDetach()
A comma-separated list of events which trigger auto-detachment in place of managed states. |
int |
getAutoDetachConstant()
The AutoDetach flags. |
String |
getBrokerFactory()
The BrokerFactory class to use. |
BrokerFactoryEventManager |
getBrokerFactoryEventManager()
Return the BrokerFactoryEventManager
associated with this configuration. |
String |
getBrokerImpl()
The plugin string of the BrokerImpl extension to create. |
String |
getCacheDistributionPolicy()
Gets the plug-in string that described the policy to distribute cached instances across named partitions of L2 data cache. |
CacheDistributionPolicy |
getCacheDistributionPolicyInstance()
Gets the policy object that determines distribution of cached instances across named partitions of L2 data cache. |
Map |
getCacheMarshallerInstances()
Return the cache marshaller listeners. |
String |
getCacheMarshallers()
A comma-separted list of the plugin strings specifying the CacheMarshallers to use. |
String |
getCallbackOptions()
Options for configuring callbacks as a String. |
CallbackOptions |
getCallbackOptionsInstance()
Options for configuring callbacks. |
String |
getClassResolver()
The plugin string for the ClassResolver to use for custom
class loading. |
ClassResolver |
getClassResolverInstance()
The ClassResolver to use. |
String |
getCompatibility()
Backwards compatibility options. |
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. |
Log |
getConfigurationLog()
Returns the logging channel openjpa.Runtime by default. |
String |
getConnection2DriverName()
Class name of the non-XA connection driver. |
String |
getConnection2Password()
The password for the non-XA data store connection. |
String |
getConnection2Properties()
These properties provide any additional information needed to establish non-XA connections. |
String |
getConnection2URL()
The URL for the non-XA data store connection. |
String |
getConnection2UserName()
The user name for the non-XA data store connection. |
String |
getConnectionDriverName()
Class name of the connection driver. |
Object |
getConnectionFactory()
The connection factory, possibly from JNDI. |
Object |
getConnectionFactory2()
The non-XA connection factory. |
String |
getConnectionFactory2Name()
The name for the second data store connection factory. |
String |
getConnectionFactory2Properties()
Configuration properties for the non-XA connection factory. |
String |
getConnectionFactoryMode()
The mode of the connection factory in use. |
String |
getConnectionFactoryName()
The name for the data store connection factory. |
String |
getConnectionFactoryProperties()
Configuration properties for the connection factory. |
String |
getConnectionPassword()
The password for the data store connection. |
String |
getConnectionProperties()
These properties provide any additional information needed to establish connections. |
String |
getConnectionRetainMode()
Specifies the behavior of the broker with respect to data store connections. |
int |
getConnectionRetainModeConstant()
Return the connection retain mode as one of the following symbolic constants: ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
|
String |
getConnectionURL()
The URL for the data store connection. |
String |
getConnectionUserName()
The user name for the data store connection. |
String |
getDataCache()
The DataCache to use for level-2 data store caching. |
String |
getDataCacheManager()
The data cache manager manages this configuration's cache instances. |
DataCacheManager |
getDataCacheManagerInstance()
The data cache manager manages this configuration's cache instances. |
String |
getDataCacheMode()
Return the String constant that matches the DataCacheMode |
int |
getDataCacheTimeout()
Default data cache timeout. |
String |
getDetachState()
|
DetachOptions |
getDetachStateInstance()
Return the instance specified by the detach state plugin. |
boolean |
getDynamicDataStructs()
Return whether to generate dynamic data structures where possible for cache and runtime usage. |
boolean |
getDynamicEnhancementAgent()
Whether OpenJPA will attempt to dynamically load the enhancement agent. |
EncryptionProvider |
getEncryptionProvider()
Gets the EncryptionProvider. |
int |
getFetchBatchSize()
Get the size of the batch that will be pre-selected when accessing elements in a query or relationship. |
String |
getFetchGroups()
Comma-separated list of fetch group names that will be pre-set for all new FetchConfigurations. |
String[] |
getFetchGroupsList()
List of fetch group names that will be pre-set for all new FetchConfigurations. |
FilterListener[] |
getFilterListenerInstances()
Return the query filter listeners. |
String |
getFilterListeners()
A comma-separted list of the plugin strings of the query FilterListeners to use. |
String |
getFinderCache()
Get the string configuration of the finder cache. |
FinderCache |
getFinderCacheInstance()
Get the cache of finder queries. |
String |
getFlushBeforeQueries()
Returns whether or not OpenJPA should automatically flush modifications to the data store before executing queries. |
int |
getFlushBeforeQueriesConstant()
Returns one of QueryFlushModes.FLUSH_TRUE,
QueryFlushModes.FLUSH_FALSE, or
QueryFlushModes.FLUSH_WITH_CONNECTION, as determined
by parsing the string returned by OpenJPAConfiguration.getFlushBeforeQueries(). |
boolean |
getIgnoreChanges()
Whether changes in the current transaction are taken into account when executing queries and iterating extents. |
String |
getInstrumentation()
Gets the plug-in string that defines instrumentation providers and what they instrument. |
InstrumentationProvider[] |
getInstrumentationInstances()
|
String |
getInstrumentationManager()
|
InstrumentationManager |
getInstrumentationManagerInstance()
Gets an instance of the instrumentation manager. |
String |
getInverseManager()
The plugin to use for managing inverse relations. |
String |
getLifecycleEventManager()
Gets the lifecycle event manager instance classname. |
LifecycleEventManager |
getLifecycleEventManagerInstance()
Gets the lifecycle event manager instance. |
String |
getLockManager()
The plugin to use for datastore lock management. |
int |
getLockTimeout()
The time to wait for an object lock in milliseconds, or -1 for no timeout. |
String |
getManagedRuntime()
The plugin string for the ManagedRuntime to use for managed
environments. |
ManagedRuntime |
getManagedRuntimeInstance()
The plugin to use for integrating with a managed runtime. |
String |
getMapping()
The name mapping to use for this data store. |
int |
getMaxFetchDepth()
The maximum relation depth to traverse when eager fetching. |
String |
getMetaDataFactory()
A plugin string describing the MetaDataFactory to use. |
String |
getMetaDataRepository()
A plugin string describing the MetaDataRepository to use. |
MetaDataRepository |
getMetaDataRepositoryInstance()
The metadata repository of managed class information. |
boolean |
getMultithreaded()
Whether brokers or their managed objects will be used by multiple concurrent threads. |
boolean |
getNontransactionalRead()
Whether persistent state is accessible outside a transaction by default. |
boolean |
getNontransactionalWrite()
Whether persistent state can be modified outside a transaction by default. |
boolean |
getOptimistic()
Whether to use optimistic transactions by default. |
boolean |
getOptimizeIdCopy()
Whether to attempt to optimize id class copy operations during the enhancement process. |
String |
getOrphanedKeyAction()
The action to take when an orphaned key is detected. |
OrphanedKeyAction |
getOrphanedKeyActionInstance()
The action to take when an orphaned key is detected. |
Map<String,Object> |
getPersistenceEnvironment()
|
boolean |
getPostLoadOnMerge()
Whether to send @PostLoad events on a merge operation. |
String |
getProxyManager()
The plugin string for the ProxyManager to use for second
class object proxies. |
ProxyManager |
getProxyManagerInstance()
The ProxyManager to use. |
String |
getQueryCache()
The plugin to use for level-2 data store query caching. |
String |
getQueryCompilationCache()
Configuration settings for the query compilation cache to use. |
Map |
getQueryCompilationCacheInstance()
Configuration settings for the query compilation cache to use. |
String |
getQuerySQLCache()
Gets the configuration of QuerySQLCache. |
PreparedQueryCache |
getQuerySQLCacheInstance()
Return PreparedQueryCache used for caching datastore queries. |
int |
getQueryTimeout()
The time to wait for a query to execute in milliseconds, or -1 for no timeout. |
String |
getReadLockLevel()
The default read lock level to use during non-optimistic transactions. |
int |
getReadLockLevelConstant()
The numeric read lock level. |
boolean |
getRefreshFromDataCache()
Gets whether entity state is to be refreshed from DataCache. |
RemoteCommitEventManager |
getRemoteCommitEventManager()
The remote event manager that manages this configuration's remote event listeners. |
String |
getRemoteCommitProvider()
The plugin to use for remote commit notification. |
String |
getRestoreState()
Whether to restore initial state on rollback by default. |
int |
getRestoreStateConstant()
Return the RestoreState constant. |
boolean |
getRetainState()
Whether to retain state after a transaction by default. |
boolean |
getRetryClassRegistration()
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed. |
String |
getRuntimeUnenhancedClasses()
Specifies how OpenJPA handles unenhanced types. |
int |
getRuntimeUnenhancedClassesConstant()
Return the runtime class optimization setting as one of the following symbolic constants: RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
|
String |
getSavepointManager()
The plugin to use for savepoint management. |
SavepointManager |
getSavepointManagerInstance()
Return the configured savepoint manager instance. |
String |
getSequence()
Plugin string for the default system Seq. |
Seq |
getSequenceInstance()
The default system sequence. |
String |
getSpecification()
Get the name of the Specification only (not the version or other information) or an empty String if not set. |
Specification |
getSpecificationInstance()
Get the Specification. |
StoreFacadeTypeRegistry |
getStoreFacadeTypeRegistry()
Return the StoreFacadeTypeRegistry instance associated with this
configuration. |
String |
getTransactionMode()
Specifies the behavior of the transaction model. |
Object |
getValidationFactoryInstance()
The ValidatorFactory provided by the container or application. |
String |
getValidationGroupPrePersist()
Gets the validation groups for pre-persist |
String |
getValidationGroupPreRemove()
Gets the validation groups for pre-remove |
String |
getValidationGroupPreUpdate()
Gets the validation groups for pre-update |
String |
getValidationMode()
The bean validation mode to use for managed classes. |
Object |
getValidatorInstance()
The Validator provided by the container or created by the runtime. |
String |
getWriteLockLevel()
The default write lock level to use during non-optimistic transactions. |
int |
getWriteLockLevelConstant()
The numeric write lock level. |
void |
instantiateAll()
Call the instantiating get methods for all values. |
boolean |
isConnectionFactoryModeManaged()
Whether connections are automatically enlisted in global transactions. |
boolean |
isInitializeEagerly()
Affirms if all configured elements are initialized eagerly as opposed to lazily on-demand. |
boolean |
isTransactionModeManaged()
Return whether managed transactions are being used. |
boolean |
metaDataRepositoryAvailable()
Returns true if a metaDataRepository has been created for this configuration. |
BrokerImpl |
newBrokerInstance(String user,
String pass)
Create a new broker instance with the configured plugin data. |
InverseManager |
newInverseManagerInstance()
Return a new inverse manager instance using the configured plugin settings. |
LockManager |
newLockManagerInstance()
Return a new lock manager instance using the configured plugin settings. |
MetaDataFactory |
newMetaDataFactoryInstance()
Create a new MetaDataFactory to use with a repository. |
MetaDataRepository |
newMetaDataRepositoryInstance()
Create a new empty metadata repository of the configured type. |
RemoteCommitProvider |
newRemoteCommitProviderInstance()
Create a remote commit provider from the configured plugin. |
protected void |
preClose()
Invoked by final method ConfigurationImpl.close() after invoking the
ProductDerivation.beforeConfigurationClose(org.apache.openjpa.lib.conf.Configuration) callbacks
but before performing internal close operations. |
void |
setAggregateListeners(AggregateListener[] listeners)
Set the query function listeners. |
void |
setAggregateListeners(String aggregateListeners)
A comma-separted list of the plugin strings of the query AggregateListeners to use. |
void |
setAuditor(String auditor)
Sets the plug-in string of Auditor specified in this configuration. |
void |
setAuditorInstance(Auditor auditor)
Sets the singular instance of Auditor associated with this configuration. |
void |
setAutoClear(int clear)
Whether instances clear their state when entering a transaction. |
void |
setAutoClear(String clear)
Whether instances clear their state when entering a transaction. |
void |
setAutoDetach(int autoDetachFlags)
The AutoDetach flags. |
void |
setAutoDetach(String autoDetach)
A comma-separated list of events which trigger auto-detachment in place of managed states. |
void |
setBrokerFactory(String factory)
The BrokerFactory class to use. |
void |
setBrokerImpl(String broker)
The plugin string of the BrokerImpl extension to create. |
void |
setCacheDistributionPolicy(String policyPlugin)
Sets the plug-in string that describes the policy to distribute cached instances across named partitions of L2 data cache. |
void |
setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
Sets the policy object that determines distribution of cached instances across named partitions of L2 data cache. |
void |
setCacheMarshallers(String marshallers)
A comma-separated list of the plugin strings specifying the CacheMarshallers to use. |
void |
setCallbackOptions(String options)
Options for configuring callbacks set as a comma-separated string value pair. |
void |
setClassResolver(ClassResolver classResolver)
The ClassResolver to use. |
void |
setClassResolver(String classResolver)
The plugin string for the ClassResolver to use for custom
class loading. |
void |
setCompatibility(String compatibility)
Backwards compatibility options. |
void |
setConnection2DriverName(String driverName)
Class name of the non-XA connection driver. |
void |
setConnection2Password(String connection2Password)
The password for the non-XA data store connection. |
void |
setConnection2Properties(String connection2Properties)
These properties provide any additional information needed to establish non-XA connections. |
void |
setConnection2URL(String connection2URL)
The URL for the non-XA data store connection. |
void |
setConnection2UserName(String connection2UserName)
The user name for the non-XA data store connection. |
void |
setConnectionDriverName(String driverName)
Class name of the connection driver. |
void |
setConnectionFactory(Object factory)
The connection factory. |
void |
setConnectionFactory2(Object factory)
The non-XA connection factory. |
void |
setConnectionFactory2Name(String connectionFactory2Name)
The name for the second data store connection factory. |
void |
setConnectionFactory2Properties(String connectionFactory2Properties)
Configuration properties for the non-XA connection factory. |
void |
setConnectionFactoryMode(String mode)
The mode of the connection factory in use. |
void |
setConnectionFactoryModeManaged(boolean managed)
Whether connections are automatically enlisted in global transactions. |
void |
setConnectionFactoryName(String connectionFactoryName)
The name for the data store connection factory. |
void |
setConnectionFactoryProperties(String connectionFactoryProperties)
Configuration properties for the connection factory. |
void |
setConnectionPassword(String connectionPassword)
The password for the data store connection. |
void |
setConnectionProperties(String connectionProperties)
These properties provide any additional information needed to establish connections. |
void |
setConnectionRetainMode(int connectionRetainMode)
Set the connection retain mode as one of the following symbolic constants: ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
|
void |
setConnectionRetainMode(String connectionRetainMode)
Specifies the behavior of the broker with respect to data store connections. |
void |
setConnectionURL(String connectionURL)
The URL for the data store connection. |
void |
setConnectionUserName(String connectionUserName)
The user name for the data store connection. |
void |
setDataCache(String dataCache)
The DataCache to use for level-2 data store caching. |
void |
setDataCacheManager(DataCacheManager dcm)
The data cache manager manages this configuration's cache instances. |
void |
setDataCacheManager(String mgr)
The data cache manager manages this configuration's cache instances. |
void |
setDataCacheMode(String mode)
Set the DataCacheMode |
void |
setDataCacheTimeout(int dataCacheTimeout)
Default data cache timeout. |
void |
setDataCacheTimeout(Integer dataCacheTimeout)
Wrapper for JCA usage of OpenJPAConfiguration.setDataCacheTimeout(int). |
void |
setDetachState(DetachOptions detachState)
Return the instance specified by the detach state plugin. |
void |
setDetachState(String detachState)
Which field values to include when detaching. |
void |
setDynamicDataStructs(boolean dynamic)
Set whether to generate dynamic data structures where possible for cache and runtime usage. |
void |
setDynamicDataStructs(Boolean dynamic)
Wrapper for JCA usage of OpenJPAConfiguration.setDynamicDataStructs(boolean). |
void |
setDynamicEnhancementAgent(boolean dynamic)
Sets whether OpenJPA will attempt to dynamically load the enhancement agent. |
void |
setEncryptionProvider(String p)
Sets the EncryptionProvider. |
void |
setFetchBatchSize(int fetchBatchSize)
Set the size of the batch that will be pre-selected when accessing elements in a query or relationship. |
void |
setFetchBatchSize(Integer fetchBatchSize)
Wrapper for JCA usage of OpenJPAConfiguration.setFetchBatchSize(int). |
void |
setFetchGroups(String fetchGroups)
Comma-separated list of fetch group names that will be pre-set for all new FetchConfigurations. |
void |
setFetchGroups(String[] fetchGroups)
List of fetch group names that will be pre-set for all new FetchConfigurations. |
void |
setFilterListeners(FilterListener[] listeners)
Set the query filter listeners. |
void |
setFilterListeners(String filterListeners)
A comma-separted list of the plugin strings of the query FilterListeners to use. |
void |
setFinderCache(String finderCache)
Set the finder cache from a string configuration. |
void |
setFlushBeforeQueries(int flush)
Set to one of QueryFlushModes.FLUSH_TRUE,
QueryFlushModes.FLUSH_FALSE, or
QueryFlushModes.FLUSH_WITH_CONNECTION. |
void |
setFlushBeforeQueries(String flush)
Sets whether or not OpenJPA should automatically flush modifications to the data store before executing queries. |
void |
setIgnoreChanges(boolean ignoreChanges)
Whether changes in the current transaction are taken into account when executing queries and iterating extents. |
void |
setIgnoreChanges(Boolean ignoreChanges)
Wrapper for JCA usage of OpenJPAConfiguration.setIgnoreChanges(boolean). |
void |
setInitializeEagerly(boolean retry)
Sets whether all configured elements will be initialized eagerly or lazily on-demand. |
void |
setInstrumentation(String providers)
Sets the plug-in string that defines instrumentation providers and what they instrument. |
void |
setInstrumentationManager(InstrumentationManager im)
|
void |
setInstrumentationManager(String mgr)
|
void |
setInverseManager(String inverseManager)
The plugin to use for managing inverse relations. |
void |
setLifecycleEventManager(String lem)
Sets the lifecycle event manager instance classname. |
void |
setLockManager(String lockManager)
The plugin to use for datastore lock management. |
void |
setLockTimeout(int timeout)
The time to wait for an object lock in milliseconds, or -1 for no timeout. |
void |
setLockTimeout(Integer timeout)
Wrapper for JCA usage of OpenJPAConfiguration.setLockTimeout(int). |
void |
setManagedRuntime(ManagedRuntime managedRuntime)
The plugin to use for integrating with a managed runtime. |
void |
setManagedRuntime(String managedRuntime)
The plugin string for the ManagedRuntime to use for managed
environments. |
void |
setMapping(String mapping)
The name mapping to use for this data store. |
void |
setMaxFetchDepth(int maxFetchDepth)
The maximum relation depth to traverse when eager fetching. |
void |
setMaxFetchDepth(Integer maxFetchDepth)
Wrapper for JCA usage of OpenJPAConfiguration.setMaxFetchDepth(int). |
void |
setMetaDataFactory(String meta)
A plugin string describing the MetaDataFactory to use. |
void |
setMetaDataRepository(MetaDataRepository meta)
The metadata repository of managed class information. |
void |
setMetaDataRepository(String meta)
A plugin string describing the MetaDataRepository to use. |
void |
setMultithreaded(boolean multithreaded)
Whether brokers or their managed objects will be used by multiple concurrent threads. |
void |
setMultithreaded(Boolean multithreaded)
Wrapper for JCA usage of OpenJPAConfiguration.setMultithreaded(boolean). |
void |
setNontransactionalRead(boolean nontransactionalRead)
Whether persistent state is accessible outside a transaction by default. |
void |
setNontransactionalRead(Boolean nontransactionalRead)
Wrapper for JCA usage of OpenJPAConfiguration.setNontransactionalRead(boolean). |
void |
setNontransactionalWrite(boolean nontransactionalWrite)
Whether persistent state can be modified outside a transaction by default. |
void |
setNontransactionalWrite(Boolean nontransactionalWrite)
Wrapper for JCA usage of OpenJPAConfiguration.setNontransactionalWrite(boolean). |
void |
setOptimistic(boolean optimistic)
Whether to use optimistic transactions by default. |
void |
setOptimistic(Boolean optimistic)
Wrapper for JCA usage of OpenJPAConfiguration.setOptimistic(boolean). |
void |
setOptimizeIdCopy(boolean optimizeId)
Whether to attempt to optimize id class copy operations during the enhancement process. |
void |
setOptimizeIdCopy(Boolean optimizeId)
Whether to attempt to optimize id class copy operations during the enhancement process. |
void |
setOrphanedKeyAction(OrphanedKeyAction action)
The action to take when an orphaned key is detected. |
void |
setOrphanedKeyAction(String action)
The action to take when an orphaned key is detected. |
void |
setPersistenceEnvironment(Map<String,Object> peMap)
|
void |
setPostLoadOnMerge(boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation. |
void |
setPostLoadOnMerge(Boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation. |
void |
setProxyManager(ProxyManager proxyManager)
The ProxyManager to use. |
void |
setProxyManager(String proxyManager)
The plugin string for the ProxyManager to use for second
class object proxies. |
void |
setQueryCache(String queryCache)
The plugin to use for level-2 data store query caching. |
void |
setQueryCompilationCache(String queryCompilationCache)
Configuration settings for the query compilation cache to use. |
void |
setQuerySQLCache(PreparedQueryCache querySQLCache)
Sets QuerySQLCache with the given cache. |
void |
setQuerySQLCache(String querySQLCache)
Sets QuerySQLCache with the given configuration. |
void |
setQueryTimeout(int timeout)
The time to wait for a query to execute in milliseconds, or -1 for no timeout. |
void |
setReadLockLevel(int level)
The numeric read lock level. |
void |
setReadLockLevel(String level)
The default read lock level to use during non-optimistic transactions. |
void |
setRefreshFromDataCache(boolean flag)
Sets whether entity state is to be refreshed from DataCache. |
void |
setRefreshFromDataCache(Boolean flag)
Sets whether entity state is to be refreshed from DataCache. |
void |
setRemoteCommitEventManager(RemoteCommitEventManager remoteEventManager)
The remote event manager that manages this configuration's remote event listeners. |
void |
setRemoteCommitProvider(String remoteCommitProvider)
The plugin to use for remote commit notification. |
void |
setRestoreState(int restoreState)
Whether to restore initial state on rollback by default. |
void |
setRestoreState(String restoreState)
Whether to restore initial state on rollback by default. |
void |
setRetainState(boolean retainState)
Whether to retain state after a transaction by default. |
void |
setRetainState(Boolean retainState)
Wrapper for JCA usage of OpenJPAConfiguration.setRetainState(boolean). |
void |
setRetryClassRegistration(boolean retry)
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed. |
void |
setRetryClassRegistration(Boolean retry)
Wrapper for JCA usage of OpenJPAConfiguration.setRetryClassRegistration(boolean). |
void |
setRuntimeUnenhancedClasses(int mode)
Set the runtime class optimization setting as one of the following symbolic constants: RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
|
void |
setRuntimeUnenhancedClasses(String mode)
Specifies how OpenJPA handles unenhanced types. |
void |
setSavepointManager(String savepointManager)
The plugin to use for savepoint management. |
void |
setSequence(Seq seq)
The default system sequence. |
void |
setSequence(String sequence)
Plugin string for the default system Seq. |
void |
setSpecification(Specification newSpec)
Set the Specification for this configuration. |
void |
setSpecification(String spec)
Sets Specification from the given String. |
void |
setTransactionMode(String transactionMode)
Specifies the behavior of the transaction model. |
void |
setTransactionModeManaged(boolean managed)
Set whether managed transactions are being used. |
void |
setValidationFactory(Object factory)
Set the container or application provided ValidatorFactory instance. |
void |
setValidationGroupPrePersist(String vgPrePersist)
Sets the validation groups for pre-persist |
void |
setValidationGroupPreRemove(String vgPreRemove)
Sets the validation groups for pre-remove |
void |
setValidationGroupPreUpdate(String vgPreUpdate)
Sets the validation groups for pre-update |
void |
setValidationMode(String mode)
Set the bean validation mode to use for managed classes. |
void |
setValidatorInstance(Object val)
Set the container or application provided Validator instance. |
void |
setWriteLockLevel(int level)
The numeric write lock level. |
void |
setWriteLockLevel(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 java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.openjpa.lib.conf.Configuration |
|---|
addPropertyChangeListener, addValue, clone, close, fromProperties, getId, getLog, getLog, getLogFactory, getProductName, getPropertyKeys, getPropertyKeys, getValue, getValues, isReadOnly, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setReadOnly, toProperties |
| Methods inherited from interface java.beans.BeanInfo |
|---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
| Field Detail |
|---|
protected MetaDataRepository metaRepository
protected RemoteCommitEventManager remoteEventManager
public ObjectValue classResolverPlugin
public BrokerValue brokerPlugin
public ObjectValue dataCachePlugin
public ObjectValue dataCacheManagerPlugin
public ObjectValue auditorPlugin
public ObjectValue cacheDistributionPolicyPlugin
public IntValue dataCacheTimeout
public ObjectValue queryCachePlugin
public BooleanValue dynamicDataStructs
public ObjectValue managedRuntimePlugin
public BooleanValue transactionMode
public IntValue connectionRetainMode
public IntValue fetchBatchSize
public IntValue maxFetchDepth
public StringListValue fetchGroups
public IntValue flushBeforeQueries
public IntValue lockTimeout
public IntValue queryTimeout
public IntValue readLockLevel
public IntValue writeLockLevel
public ObjectValue seqPlugin
public PluginListValue filterListenerPlugins
public PluginListValue aggregateListenerPlugins
public BooleanValue retryClassRegistration
public ObjectValue proxyManagerPlugin
public StringValue connectionUserName
public StringValue connectionPassword
public PluginValue encryptionProvider
public StringValue connectionURL
public StringValue connectionDriverName
public ObjectValue connectionFactory
public StringValue connectionFactoryName
public StringValue connectionProperties
public StringValue connectionFactoryProperties
public BooleanValue connectionFactoryMode
public StringValue connection2UserName
public StringValue connection2Password
public StringValue connection2URL
public StringValue connection2DriverName
public StringValue connection2Properties
public ObjectValue connectionFactory2
public StringValue connectionFactory2Name
public StringValue connectionFactory2Properties
public BooleanValue optimistic
public IntValue autoClear
public BooleanValue retainState
public IntValue restoreState
public ObjectValue detachStatePlugin
public BooleanValue ignoreChanges
public BooleanValue nontransactionalRead
public BooleanValue nontransactionalWrite
public BooleanValue refreshFromDataCache
public BooleanValue multithreaded
public StringValue mapping
public PluginValue metaFactoryPlugin
public MetaDataRepositoryValue metaRepositoryPlugin
public ObjectValue lockManagerPlugin
public ObjectValue inverseManagerPlugin
public ObjectValue savepointManagerPlugin
public ObjectValue orphanedKeyPlugin
public ObjectValue compatibilityPlugin
public ObjectValue callbackPlugin
public QueryCompilationCacheValue queryCompilationCachePlugin
public IntValue runtimeUnenhancedClasses
public CacheMarshallersValue cacheMarshallerPlugins
public BooleanValue eagerInitialization
public PluginValue preparedQueryCachePlugin
public PluginValue finderCachePlugin
public ObjectValue specification
public StringValue validationMode
public ObjectValue validationFactory
public ObjectValue validator
public ObjectValue lifecycleEventManager
public StringValue validationGroupPrePersist
public StringValue validationGroupPreUpdate
public StringValue validationGroupPreRemove
public StringValue dataCacheMode
public BooleanValue dynamicEnhancementAgent
public ObjectValue instrumentationManager
public PluginListValue instrumentationProviders
public BooleanValue postLoadOnMerge
public BooleanValue optimizeIdCopy
public BrokerFactoryValue brokerFactoryPlugin
public RemoteCommitProviderValue remoteProviderPlugin
public AutoDetachValue autoDetach
| Constructor Detail |
|---|
public OpenJPAConfigurationImpl()
public OpenJPAConfigurationImpl(boolean loadGlobals)
loadGlobals - whether to attempt to load the global properties
public OpenJPAConfigurationImpl(boolean derivations,
boolean loadGlobals)
derivations - whether to apply product derivationsloadGlobals - whether to attempt to load the global properties| Method Detail |
|---|
public Collection<String> supportedOptions()
OpenJPAConfiguration
supportedOptions in interface OpenJPAConfigurationpublic String getSpecification()
getSpecification in interface OpenJPAConfigurationpublic Specification getSpecificationInstance()
OpenJPAConfiguration
getSpecificationInstance in interface OpenJPAConfigurationpublic void setSpecification(String spec)
setSpecification in interface OpenJPAConfigurationspec - should be encoded in the format specified in Specification.Specificationpublic void setSpecification(Specification newSpec)
OpenJPAConfigurationcompatibility options during runtime.
This change will trigger all registered Product Derivations to mutate
other configuration properties.
setSpecification in interface OpenJPAConfigurationnewSpec - fullname of the specification that possibly encodes major and
minor version information. For encoding formatSpecificationpublic void setClassResolver(String classResolver)
OpenJPAConfigurationClassResolver to use for custom
class loading.
setClassResolver in interface OpenJPAConfigurationpublic String getClassResolver()
OpenJPAConfigurationClassResolver to use for custom
class loading.
getClassResolver in interface OpenJPAConfigurationpublic void setClassResolver(ClassResolver classResolver)
OpenJPAConfigurationClassResolver to use.
setClassResolver in interface OpenJPAConfigurationpublic ClassResolver getClassResolverInstance()
OpenJPAConfigurationClassResolver to use.
getClassResolverInstance in interface OpenJPAConfigurationpublic void setBrokerFactory(String factory)
OpenJPAConfigurationBrokerFactory class to use.
setBrokerFactory in interface OpenJPAConfigurationpublic String getBrokerFactory()
OpenJPAConfigurationBrokerFactory class to use.
getBrokerFactory in interface OpenJPAConfigurationpublic void setBrokerImpl(String broker)
OpenJPAConfigurationBrokerImpl extension to create.
setBrokerImpl in interface OpenJPAConfigurationpublic String getBrokerImpl()
OpenJPAConfigurationBrokerImpl extension to create.
getBrokerImpl in interface OpenJPAConfiguration
public BrokerImpl newBrokerInstance(String user,
String pass)
OpenJPAConfiguration
newBrokerInstance in interface OpenJPAConfigurationpublic void setDataCacheManager(String mgr)
OpenJPAConfiguration
setDataCacheManager in interface OpenJPAConfigurationpublic String getDataCacheManager()
OpenJPAConfiguration
getDataCacheManager in interface OpenJPAConfigurationpublic void setDataCacheManager(DataCacheManager dcm)
OpenJPAConfiguration
setDataCacheManager in interface OpenJPAConfigurationpublic DataCacheManager getDataCacheManagerInstance()
OpenJPAConfiguration
getDataCacheManagerInstance in interface OpenJPAConfigurationpublic void setDataCache(String dataCache)
OpenJPAConfigurationDataCache to use for level-2 data store caching.
setDataCache in interface OpenJPAConfigurationpublic String getDataCache()
OpenJPAConfigurationDataCache to use for level-2 data store caching.
getDataCache in interface OpenJPAConfigurationpublic void setDataCacheTimeout(int dataCacheTimeout)
OpenJPAConfiguration
setDataCacheTimeout in interface OpenJPAConfigurationpublic void setDataCacheTimeout(Integer dataCacheTimeout)
OpenJPAConfigurationOpenJPAConfiguration.setDataCacheTimeout(int).
setDataCacheTimeout in interface OpenJPAConfigurationpublic int getDataCacheTimeout()
OpenJPAConfiguration
getDataCacheTimeout in interface OpenJPAConfigurationpublic void setQueryCache(String queryCache)
OpenJPAConfiguration
setQueryCache in interface OpenJPAConfigurationpublic String getQueryCache()
OpenJPAConfiguration
getQueryCache in interface OpenJPAConfigurationpublic boolean getRefreshFromDataCache()
OpenJPAConfigurationDataCache.
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.
getRefreshFromDataCache in interface OpenJPAConfigurationpublic void setRefreshFromDataCache(boolean flag)
OpenJPAConfigurationDataCache.
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.
setRefreshFromDataCache in interface OpenJPAConfigurationpublic void setRefreshFromDataCache(Boolean flag)
OpenJPAConfigurationDataCache.
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.
setRefreshFromDataCache in interface OpenJPAConfigurationpublic boolean getDynamicDataStructs()
OpenJPAConfiguration
getDynamicDataStructs in interface OpenJPAConfigurationpublic void setDynamicDataStructs(boolean dynamic)
OpenJPAConfiguration
setDynamicDataStructs in interface OpenJPAConfigurationpublic void setDynamicDataStructs(Boolean dynamic)
OpenJPAConfigurationOpenJPAConfiguration.setDynamicDataStructs(boolean).
setDynamicDataStructs in interface OpenJPAConfigurationpublic void setLockManager(String lockManager)
OpenJPAConfiguration
setLockManager in interface OpenJPAConfigurationpublic String getLockManager()
OpenJPAConfiguration
getLockManager in interface OpenJPAConfigurationpublic LockManager newLockManagerInstance()
OpenJPAConfiguration
newLockManagerInstance in interface OpenJPAConfigurationpublic void setInverseManager(String inverseManager)
OpenJPAConfiguration
setInverseManager in interface OpenJPAConfigurationpublic String getInverseManager()
OpenJPAConfiguration
getInverseManager in interface OpenJPAConfigurationpublic InverseManager newInverseManagerInstance()
OpenJPAConfiguration
newInverseManagerInstance in interface OpenJPAConfigurationpublic void setSavepointManager(String savepointManager)
OpenJPAConfiguration
setSavepointManager in interface OpenJPAConfigurationpublic String getSavepointManager()
OpenJPAConfiguration
getSavepointManager in interface OpenJPAConfigurationpublic SavepointManager getSavepointManagerInstance()
OpenJPAConfiguration
getSavepointManagerInstance in interface OpenJPAConfigurationpublic void setOrphanedKeyAction(String action)
OpenJPAConfiguration
setOrphanedKeyAction in interface OpenJPAConfigurationpublic String getOrphanedKeyAction()
OpenJPAConfiguration
getOrphanedKeyAction in interface OpenJPAConfigurationpublic OrphanedKeyAction getOrphanedKeyActionInstance()
OpenJPAConfiguration
getOrphanedKeyActionInstance in interface OpenJPAConfigurationpublic void setOrphanedKeyAction(OrphanedKeyAction action)
OpenJPAConfiguration
setOrphanedKeyAction in interface OpenJPAConfigurationpublic void setRemoteCommitProvider(String remoteCommitProvider)
OpenJPAConfiguration
setRemoteCommitProvider in interface OpenJPAConfigurationpublic String getRemoteCommitProvider()
OpenJPAConfiguration
getRemoteCommitProvider in interface OpenJPAConfigurationpublic RemoteCommitProvider newRemoteCommitProviderInstance()
OpenJPAConfiguration
newRemoteCommitProviderInstance in interface OpenJPAConfigurationpublic void setRemoteCommitEventManager(RemoteCommitEventManager remoteEventManager)
OpenJPAConfiguration
setRemoteCommitEventManager in interface OpenJPAConfigurationpublic RemoteCommitEventManager getRemoteCommitEventManager()
OpenJPAConfiguration
getRemoteCommitEventManager in interface OpenJPAConfigurationpublic void setTransactionMode(String transactionMode)
OpenJPAConfigurationlocal: Perform transaction operations locally.managed: Use managed environment's global
transactions.
setTransactionMode in interface OpenJPAConfigurationpublic String getTransactionMode()
OpenJPAConfigurationlocal: Perform transaction operations locally.managed: Use managed environment's global
transactions.
getTransactionMode in interface OpenJPAConfigurationpublic void setTransactionModeManaged(boolean managed)
OpenJPAConfiguration
setTransactionModeManaged in interface OpenJPAConfigurationpublic boolean isTransactionModeManaged()
OpenJPAConfiguration
isTransactionModeManaged in interface OpenJPAConfigurationpublic void setManagedRuntime(String managedRuntime)
OpenJPAConfigurationManagedRuntime to use for managed
environments.
setManagedRuntime in interface OpenJPAConfigurationpublic String getManagedRuntime()
OpenJPAConfigurationManagedRuntime to use for managed
environments.
getManagedRuntime in interface OpenJPAConfigurationpublic void setManagedRuntime(ManagedRuntime managedRuntime)
OpenJPAConfiguration
setManagedRuntime in interface OpenJPAConfigurationpublic ManagedRuntime getManagedRuntimeInstance()
OpenJPAConfiguration
getManagedRuntimeInstance in interface OpenJPAConfigurationpublic void setProxyManager(String proxyManager)
OpenJPAConfigurationProxyManager to use for second
class object proxies.
setProxyManager in interface OpenJPAConfigurationpublic String getProxyManager()
OpenJPAConfigurationProxyManager to use for second
class object proxies.
getProxyManager in interface OpenJPAConfigurationpublic void setProxyManager(ProxyManager proxyManager)
OpenJPAConfigurationProxyManager to use.
setProxyManager in interface OpenJPAConfigurationpublic ProxyManager getProxyManagerInstance()
OpenJPAConfigurationProxyManager to use.
getProxyManagerInstance in interface OpenJPAConfigurationpublic void setMapping(String mapping)
OpenJPAConfiguration
setMapping in interface OpenJPAConfigurationpublic String getMapping()
OpenJPAConfiguration
getMapping in interface OpenJPAConfigurationpublic void setMetaDataFactory(String meta)
OpenJPAConfigurationMetaDataFactory to use.
setMetaDataFactory in interface OpenJPAConfigurationpublic String getMetaDataFactory()
OpenJPAConfigurationMetaDataFactory to use.
getMetaDataFactory in interface OpenJPAConfigurationpublic MetaDataFactory newMetaDataFactoryInstance()
OpenJPAConfigurationMetaDataFactory to use with a repository.
newMetaDataFactoryInstance in interface OpenJPAConfigurationpublic void setMetaDataRepository(String meta)
OpenJPAConfigurationMetaDataRepository to use.
setMetaDataRepository in interface OpenJPAConfigurationpublic String getMetaDataRepository()
OpenJPAConfigurationMetaDataRepository to use.
getMetaDataRepository in interface OpenJPAConfigurationpublic void setMetaDataRepository(MetaDataRepository meta)
OpenJPAConfiguration
setMetaDataRepository in interface OpenJPAConfigurationpublic MetaDataRepository getMetaDataRepositoryInstance()
OpenJPAConfiguration
getMetaDataRepositoryInstance in interface OpenJPAConfigurationpublic boolean metaDataRepositoryAvailable()
OpenJPAConfiguration
metaDataRepositoryAvailable in interface OpenJPAConfigurationpublic MetaDataRepository newMetaDataRepositoryInstance()
OpenJPAConfiguration
newMetaDataRepositoryInstance in interface OpenJPAConfigurationpublic void setConnectionUserName(String connectionUserName)
OpenJPAConfiguration
setConnectionUserName in interface OpenJPAConfigurationpublic String getConnectionUserName()
OpenJPAConfiguration
getConnectionUserName in interface OpenJPAConfigurationpublic void setConnectionPassword(String connectionPassword)
OpenJPAConfiguration
setConnectionPassword in interface OpenJPAConfigurationpublic String getConnectionPassword()
OpenJPAConfiguration
getConnectionPassword in interface OpenJPAConfigurationpublic void setConnectionURL(String connectionURL)
OpenJPAConfiguration
setConnectionURL in interface OpenJPAConfigurationpublic String getConnectionURL()
OpenJPAConfiguration
getConnectionURL in interface OpenJPAConfigurationpublic void setConnectionDriverName(String driverName)
OpenJPAConfiguration
setConnectionDriverName in interface OpenJPAConfigurationpublic String getConnectionDriverName()
OpenJPAConfiguration
getConnectionDriverName in interface OpenJPAConfigurationpublic void setConnectionProperties(String connectionProperties)
OpenJPAConfiguration
setConnectionProperties in interface OpenJPAConfigurationpublic String getConnectionProperties()
OpenJPAConfiguration
getConnectionProperties in interface OpenJPAConfigurationpublic void setConnectionFactoryProperties(String connectionFactoryProperties)
OpenJPAConfiguration
setConnectionFactoryProperties in interface OpenJPAConfigurationpublic String getConnectionFactoryProperties()
OpenJPAConfiguration
getConnectionFactoryProperties in interface OpenJPAConfigurationpublic String getConnectionFactoryMode()
OpenJPAConfiguration
getConnectionFactoryMode in interface OpenJPAConfigurationpublic void setConnectionFactoryMode(String mode)
OpenJPAConfiguration
setConnectionFactoryMode in interface OpenJPAConfigurationpublic boolean isConnectionFactoryModeManaged()
OpenJPAConfiguration
isConnectionFactoryModeManaged in interface OpenJPAConfigurationpublic void setConnectionFactoryModeManaged(boolean managed)
OpenJPAConfiguration
setConnectionFactoryModeManaged in interface OpenJPAConfigurationpublic void setConnectionFactoryName(String connectionFactoryName)
OpenJPAConfiguration
setConnectionFactoryName in interface OpenJPAConfigurationpublic String getConnectionFactoryName()
OpenJPAConfiguration
getConnectionFactoryName in interface OpenJPAConfigurationpublic void setConnectionFactory(Object factory)
OpenJPAConfiguration
setConnectionFactory in interface OpenJPAConfigurationpublic Object getConnectionFactory()
OpenJPAConfiguration
getConnectionFactory in interface OpenJPAConfigurationpublic void setConnection2UserName(String connection2UserName)
OpenJPAConfiguration
setConnection2UserName in interface OpenJPAConfigurationpublic String getConnection2UserName()
OpenJPAConfiguration
getConnection2UserName in interface OpenJPAConfigurationpublic void setConnection2Password(String connection2Password)
OpenJPAConfiguration
setConnection2Password in interface OpenJPAConfigurationpublic String getConnection2Password()
OpenJPAConfiguration
getConnection2Password in interface OpenJPAConfigurationpublic void setConnection2URL(String connection2URL)
OpenJPAConfiguration
setConnection2URL in interface OpenJPAConfigurationpublic String getConnection2URL()
OpenJPAConfiguration
getConnection2URL in interface OpenJPAConfigurationpublic void setConnection2DriverName(String driverName)
OpenJPAConfiguration
setConnection2DriverName in interface OpenJPAConfigurationpublic String getConnection2DriverName()
OpenJPAConfiguration
getConnection2DriverName in interface OpenJPAConfigurationpublic void setConnection2Properties(String connection2Properties)
OpenJPAConfiguration
setConnection2Properties in interface OpenJPAConfigurationpublic String getConnection2Properties()
OpenJPAConfiguration
getConnection2Properties in interface OpenJPAConfigurationpublic void setConnectionFactory2Properties(String connectionFactory2Properties)
OpenJPAConfiguration
setConnectionFactory2Properties in interface OpenJPAConfigurationpublic String getConnectionFactory2Properties()
OpenJPAConfiguration
getConnectionFactory2Properties in interface OpenJPAConfigurationpublic void setConnectionFactory2Name(String connectionFactory2Name)
OpenJPAConfiguration
setConnectionFactory2Name in interface OpenJPAConfigurationpublic String getConnectionFactory2Name()
OpenJPAConfiguration
getConnectionFactory2Name in interface OpenJPAConfigurationpublic void setConnectionFactory2(Object factory)
OpenJPAConfiguration
setConnectionFactory2 in interface OpenJPAConfigurationpublic Object getConnectionFactory2()
OpenJPAConfiguration
getConnectionFactory2 in interface OpenJPAConfigurationpublic void setOptimistic(boolean optimistic)
OpenJPAConfiguration
setOptimistic in interface OpenJPAConfigurationpublic void setOptimistic(Boolean optimistic)
OpenJPAConfigurationOpenJPAConfiguration.setOptimistic(boolean).
setOptimistic in interface OpenJPAConfigurationpublic boolean getOptimistic()
OpenJPAConfiguration
getOptimistic in interface OpenJPAConfigurationpublic void setAutoClear(String clear)
OpenJPAConfiguration
setAutoClear in interface OpenJPAConfigurationpublic String getAutoClear()
OpenJPAConfiguration
getAutoClear in interface OpenJPAConfigurationpublic void setAutoClear(int clear)
OpenJPAConfiguration
setAutoClear in interface OpenJPAConfigurationpublic int getAutoClearConstant()
OpenJPAConfigurationAutoClear constant.
getAutoClearConstant in interface OpenJPAConfigurationpublic void setRetainState(boolean retainState)
OpenJPAConfiguration
setRetainState in interface OpenJPAConfigurationpublic void setRetainState(Boolean retainState)
OpenJPAConfigurationOpenJPAConfiguration.setRetainState(boolean).
setRetainState in interface OpenJPAConfigurationpublic boolean getRetainState()
OpenJPAConfiguration
getRetainState in interface OpenJPAConfigurationpublic void setRestoreState(String restoreState)
OpenJPAConfiguration
setRestoreState in interface OpenJPAConfigurationpublic String getRestoreState()
OpenJPAConfiguration
getRestoreState in interface OpenJPAConfigurationpublic void setRestoreState(int restoreState)
OpenJPAConfiguration
setRestoreState in interface OpenJPAConfigurationpublic int getRestoreStateConstant()
OpenJPAConfigurationRestoreState constant.
getRestoreStateConstant in interface OpenJPAConfigurationpublic void setAutoDetach(String autoDetach)
OpenJPAConfigurationcommit: When the current transaction commits.close: When the broker closes.nontx-read: When instances are read
non-transactionally.
setAutoDetach in interface OpenJPAConfigurationpublic String getAutoDetach()
OpenJPAConfigurationcommit: When the current transaction commits.close: When the broker closes.nontx-read: When instances are read
non-transactionally.
getAutoDetach in interface OpenJPAConfigurationpublic void setAutoDetach(int autoDetachFlags)
OpenJPAConfigurationAutoDetach flags.
setAutoDetach in interface OpenJPAConfigurationpublic int getAutoDetachConstant()
OpenJPAConfigurationAutoDetach flags.
getAutoDetachConstant in interface OpenJPAConfigurationpublic void setDetachState(String detachState)
OpenJPAConfiguration
setDetachState in interface OpenJPAConfigurationpublic String getDetachState()
public void setDetachState(DetachOptions detachState)
OpenJPAConfiguration
setDetachState in interface OpenJPAConfigurationpublic DetachOptions getDetachStateInstance()
OpenJPAConfiguration
getDetachStateInstance in interface OpenJPAConfigurationpublic void setIgnoreChanges(boolean ignoreChanges)
OpenJPAConfiguration
setIgnoreChanges in interface OpenJPAConfigurationpublic void setIgnoreChanges(Boolean ignoreChanges)
OpenJPAConfigurationOpenJPAConfiguration.setIgnoreChanges(boolean).
setIgnoreChanges in interface OpenJPAConfigurationpublic boolean getIgnoreChanges()
OpenJPAConfiguration
getIgnoreChanges in interface OpenJPAConfigurationpublic void setNontransactionalRead(boolean nontransactionalRead)
OpenJPAConfiguration
setNontransactionalRead in interface OpenJPAConfigurationpublic void setNontransactionalRead(Boolean nontransactionalRead)
OpenJPAConfigurationOpenJPAConfiguration.setNontransactionalRead(boolean).
setNontransactionalRead in interface OpenJPAConfigurationpublic boolean getNontransactionalRead()
OpenJPAConfiguration
getNontransactionalRead in interface OpenJPAConfigurationpublic void setNontransactionalWrite(boolean nontransactionalWrite)
OpenJPAConfiguration
setNontransactionalWrite in interface OpenJPAConfigurationpublic void setNontransactionalWrite(Boolean nontransactionalWrite)
OpenJPAConfigurationOpenJPAConfiguration.setNontransactionalWrite(boolean).
setNontransactionalWrite in interface OpenJPAConfigurationpublic boolean getNontransactionalWrite()
OpenJPAConfiguration
getNontransactionalWrite in interface OpenJPAConfigurationpublic void setMultithreaded(boolean multithreaded)
OpenJPAConfiguration
setMultithreaded in interface OpenJPAConfigurationpublic void setMultithreaded(Boolean multithreaded)
OpenJPAConfigurationOpenJPAConfiguration.setMultithreaded(boolean).
setMultithreaded in interface OpenJPAConfigurationpublic boolean getMultithreaded()
OpenJPAConfiguration
getMultithreaded in interface OpenJPAConfigurationpublic void setFetchBatchSize(int fetchBatchSize)
OpenJPAConfiguration
setFetchBatchSize in interface OpenJPAConfigurationpublic void setFetchBatchSize(Integer fetchBatchSize)
OpenJPAConfigurationOpenJPAConfiguration.setFetchBatchSize(int).
setFetchBatchSize in interface OpenJPAConfigurationpublic int getFetchBatchSize()
OpenJPAConfiguration
getFetchBatchSize in interface OpenJPAConfigurationpublic void setMaxFetchDepth(int maxFetchDepth)
OpenJPAConfiguration
setMaxFetchDepth in interface OpenJPAConfigurationpublic void setMaxFetchDepth(Integer maxFetchDepth)
OpenJPAConfigurationOpenJPAConfiguration.setMaxFetchDepth(int).
setMaxFetchDepth in interface OpenJPAConfigurationpublic int getMaxFetchDepth()
OpenJPAConfiguration
getMaxFetchDepth in interface OpenJPAConfigurationpublic void setFetchGroups(String fetchGroups)
OpenJPAConfigurationFetchConfigurations.
setFetchGroups in interface OpenJPAConfigurationpublic String getFetchGroups()
OpenJPAConfigurationFetchConfigurations.
getFetchGroups in interface OpenJPAConfigurationpublic String[] getFetchGroupsList()
OpenJPAConfigurationFetchConfigurations.
getFetchGroupsList in interface OpenJPAConfigurationpublic void setFetchGroups(String[] fetchGroups)
OpenJPAConfigurationFetchConfigurations.
setFetchGroups in interface OpenJPAConfigurationpublic void setFlushBeforeQueries(String flush)
OpenJPAConfiguration
setFlushBeforeQueries in interface OpenJPAConfigurationpublic String getFlushBeforeQueries()
OpenJPAConfiguration
getFlushBeforeQueries in interface OpenJPAConfigurationpublic void setFlushBeforeQueries(int flush)
OpenJPAConfigurationQueryFlushModes.FLUSH_TRUE,
QueryFlushModes.FLUSH_FALSE, or
QueryFlushModes.FLUSH_WITH_CONNECTION.
setFlushBeforeQueries in interface OpenJPAConfigurationpublic int getFlushBeforeQueriesConstant()
OpenJPAConfigurationQueryFlushModes.FLUSH_TRUE,
QueryFlushModes.FLUSH_FALSE, or
QueryFlushModes.FLUSH_WITH_CONNECTION, as determined
by parsing the string returned by OpenJPAConfiguration.getFlushBeforeQueries().
getFlushBeforeQueriesConstant in interface OpenJPAConfigurationpublic void setLockTimeout(int timeout)
OpenJPAConfiguration
setLockTimeout in interface OpenJPAConfigurationpublic void setLockTimeout(Integer timeout)
OpenJPAConfigurationOpenJPAConfiguration.setLockTimeout(int).
setLockTimeout in interface OpenJPAConfigurationpublic int getLockTimeout()
OpenJPAConfiguration
getLockTimeout in interface OpenJPAConfigurationpublic int getQueryTimeout()
OpenJPAConfiguration
getQueryTimeout in interface OpenJPAConfigurationpublic void setQueryTimeout(int timeout)
OpenJPAConfiguration
setQueryTimeout in interface OpenJPAConfigurationpublic void setReadLockLevel(String level)
OpenJPAConfigurationread.
setReadLockLevel in interface OpenJPAConfigurationpublic String getReadLockLevel()
OpenJPAConfigurationread.
getReadLockLevel in interface OpenJPAConfigurationpublic void setReadLockLevel(int level)
OpenJPAConfiguration
setReadLockLevel in interface OpenJPAConfigurationpublic int getReadLockLevelConstant()
OpenJPAConfiguration
getReadLockLevelConstant in interface OpenJPAConfigurationpublic void setWriteLockLevel(String level)
OpenJPAConfigurationwrite.
setWriteLockLevel in interface OpenJPAConfigurationpublic String getWriteLockLevel()
OpenJPAConfigurationwrite.
getWriteLockLevel in interface OpenJPAConfigurationpublic void setWriteLockLevel(int level)
OpenJPAConfiguration
setWriteLockLevel in interface OpenJPAConfigurationpublic int getWriteLockLevelConstant()
OpenJPAConfiguration
getWriteLockLevelConstant in interface OpenJPAConfigurationpublic void setSequence(String sequence)
OpenJPAConfigurationSeq.
setSequence in interface OpenJPAConfigurationpublic String getSequence()
OpenJPAConfigurationSeq.
getSequence in interface OpenJPAConfigurationpublic void setSequence(Seq seq)
OpenJPAConfiguration
setSequence in interface OpenJPAConfigurationpublic Seq getSequenceInstance()
OpenJPAConfiguration
getSequenceInstance in interface OpenJPAConfigurationpublic void setConnectionRetainMode(String connectionRetainMode)
OpenJPAConfigurationalways: 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.
setConnectionRetainMode in interface OpenJPAConfigurationpublic String getConnectionRetainMode()
OpenJPAConfigurationalways: 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.
getConnectionRetainMode in interface OpenJPAConfigurationpublic void setConnectionRetainMode(int connectionRetainMode)
OpenJPAConfigurationConnectionRetainModes.CONN_RETAIN_ALWAYSConnectionRetainModes.CONN_RETAIN_TRANSConnectionRetainModes.CONN_RETAIN_DEMAND
setConnectionRetainMode in interface OpenJPAConfigurationpublic int getConnectionRetainModeConstant()
OpenJPAConfigurationConnectionRetainModes.CONN_RETAIN_ALWAYSConnectionRetainModes.CONN_RETAIN_TRANSConnectionRetainModes.CONN_RETAIN_DEMAND
getConnectionRetainModeConstant in interface OpenJPAConfigurationpublic void setFilterListeners(String filterListeners)
OpenJPAConfigurationFilterListeners to use.
setFilterListeners in interface OpenJPAConfigurationpublic String getFilterListeners()
OpenJPAConfigurationFilterListeners to use.
getFilterListeners in interface OpenJPAConfigurationpublic void setFilterListeners(FilterListener[] listeners)
OpenJPAConfiguration
setFilterListeners in interface OpenJPAConfigurationpublic FilterListener[] getFilterListenerInstances()
OpenJPAConfiguration
getFilterListenerInstances in interface OpenJPAConfigurationpublic void setAggregateListeners(String aggregateListeners)
OpenJPAConfigurationAggregateListeners to use.
setAggregateListeners in interface OpenJPAConfigurationpublic String getAggregateListeners()
OpenJPAConfigurationAggregateListeners to use.
getAggregateListeners in interface OpenJPAConfigurationpublic void setAggregateListeners(AggregateListener[] listeners)
OpenJPAConfiguration
setAggregateListeners in interface OpenJPAConfigurationpublic AggregateListener[] getAggregateListenerInstances()
OpenJPAConfiguration
getAggregateListenerInstances in interface OpenJPAConfigurationpublic void setRetryClassRegistration(boolean retry)
OpenJPAConfigurationfalse.
setRetryClassRegistration in interface OpenJPAConfigurationpublic void setRetryClassRegistration(Boolean retry)
OpenJPAConfigurationOpenJPAConfiguration.setRetryClassRegistration(boolean).
setRetryClassRegistration in interface OpenJPAConfigurationpublic boolean getRetryClassRegistration()
OpenJPAConfigurationfalse.
getRetryClassRegistration in interface OpenJPAConfigurationpublic String getCompatibility()
OpenJPAConfiguration
getCompatibility in interface OpenJPAConfigurationpublic void setCompatibility(String compatibility)
OpenJPAConfiguration
setCompatibility in interface OpenJPAConfigurationpublic Compatibility getCompatibilityInstance()
getCompatibilityInstance in interface OpenJPAConfigurationpublic String getCallbackOptions()
OpenJPAConfiguration
getCallbackOptions in interface OpenJPAConfigurationpublic void setCallbackOptions(String options)
OpenJPAConfiguration
setCallbackOptions in interface OpenJPAConfigurationpublic CallbackOptions getCallbackOptionsInstance()
OpenJPAConfiguration
getCallbackOptionsInstance in interface OpenJPAConfigurationpublic String getQueryCompilationCache()
OpenJPAConfiguration
getQueryCompilationCache in interface OpenJPAConfigurationQueryCompilationCacheValuepublic void setQueryCompilationCache(String queryCompilationCache)
OpenJPAConfiguration
setQueryCompilationCache in interface OpenJPAConfigurationQueryCompilationCacheValuepublic Map getQueryCompilationCacheInstance()
OpenJPAConfiguration
getQueryCompilationCacheInstance in interface OpenJPAConfigurationQueryCompilationCacheValuepublic StoreFacadeTypeRegistry getStoreFacadeTypeRegistry()
OpenJPAConfigurationStoreFacadeTypeRegistry instance associated with this
configuration.
getStoreFacadeTypeRegistry in interface OpenJPAConfigurationpublic BrokerFactoryEventManager getBrokerFactoryEventManager()
OpenJPAConfigurationBrokerFactoryEventManager
associated with this configuration.
getBrokerFactoryEventManager in interface OpenJPAConfigurationpublic String getRuntimeUnenhancedClasses()
OpenJPAConfigurationsupported: 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.
getRuntimeUnenhancedClasses in interface OpenJPAConfigurationpublic int getRuntimeUnenhancedClassesConstant()
OpenJPAConfigurationRuntimeUnenhancedClassesModes.SUPPORTEDRuntimeUnenhancedClassesModes.UNSUPPORTEDRuntimeUnenhancedClassesModes.WARN
getRuntimeUnenhancedClassesConstant in interface OpenJPAConfigurationpublic void setRuntimeUnenhancedClasses(int mode)
OpenJPAConfigurationRuntimeUnenhancedClassesModes.SUPPORTEDRuntimeUnenhancedClassesModes.UNSUPPORTEDRuntimeUnenhancedClassesModes.WARN
setRuntimeUnenhancedClasses in interface OpenJPAConfigurationpublic void setRuntimeUnenhancedClasses(String mode)
OpenJPAConfiguration
setRuntimeUnenhancedClasses in interface OpenJPAConfiguration#getRuntimeUnenhancedClasses()}public String getCacheMarshallers()
OpenJPAConfigurationCacheMarshallers to use.
getCacheMarshallers in interface OpenJPAConfigurationpublic void setCacheMarshallers(String marshallers)
OpenJPAConfigurationCacheMarshallers to use.
setCacheMarshallers in interface OpenJPAConfigurationpublic Map getCacheMarshallerInstances()
OpenJPAConfiguration
getCacheMarshallerInstances in interface OpenJPAConfigurationpublic boolean isInitializeEagerly()
OpenJPAConfiguration
isInitializeEagerly in interface OpenJPAConfigurationpublic void setInitializeEagerly(boolean retry)
OpenJPAConfiguration
setInitializeEagerly in interface OpenJPAConfigurationpublic void setValidationMode(String mode)
OpenJPAConfigurationAUTO.
setValidationMode in interface OpenJPAConfigurationpublic String getValidationMode()
OpenJPAConfigurationAUTO.
getValidationMode in interface OpenJPAConfigurationpublic void setValidationGroupPrePersist(String vgPrePersist)
OpenJPAConfiguration
setValidationGroupPrePersist in interface OpenJPAConfigurationpublic String getValidationGroupPrePersist()
OpenJPAConfiguration
getValidationGroupPrePersist in interface OpenJPAConfigurationpublic void setValidationGroupPreUpdate(String vgPreUpdate)
OpenJPAConfiguration
setValidationGroupPreUpdate in interface OpenJPAConfigurationpublic String getValidationGroupPreUpdate()
OpenJPAConfiguration
getValidationGroupPreUpdate in interface OpenJPAConfigurationpublic void setValidationGroupPreRemove(String vgPreRemove)
OpenJPAConfiguration
setValidationGroupPreRemove in interface OpenJPAConfigurationpublic String getValidationGroupPreRemove()
OpenJPAConfiguration
getValidationGroupPreRemove in interface OpenJPAConfigurationpublic String getInstrumentation()
OpenJPAConfiguration
getInstrumentation in interface OpenJPAConfigurationpublic void setInstrumentation(String providers)
OpenJPAConfiguration
setInstrumentation in interface OpenJPAConfigurationproviders - a plug-in string for the instrumentation configurationpublic InstrumentationProvider[] getInstrumentationInstances()
public void setInstrumentationManager(String mgr)
public String getInstrumentationManager()
public void setInstrumentationManager(InstrumentationManager im)
public InstrumentationManager getInstrumentationManagerInstance()
OpenJPAConfiguration
getInstrumentationManagerInstance in interface OpenJPAConfigurationpublic void instantiateAll()
Configuration
instantiateAll in interface ConfigurationinstantiateAll in class ConfigurationImplprotected void preClose()
ConfigurationImplConfigurationImpl.close() after invoking the
ProductDerivation.beforeConfigurationClose(org.apache.openjpa.lib.conf.Configuration) callbacks
but before performing internal close operations.
preClose in class ConfigurationImplpublic Log getConfigurationLog()
ConfigurationImplopenjpa.Runtime by default.
getConfigurationLog in interface ConfigurationgetConfigurationLog in class ConfigurationImplpublic void setQuerySQLCache(String querySQLCache)
OpenJPAConfiguration
setQuerySQLCache in interface OpenJPAConfigurationpublic void setQuerySQLCache(PreparedQueryCache querySQLCache)
OpenJPAConfiguration
setQuerySQLCache in interface OpenJPAConfigurationpublic String getQuerySQLCache()
OpenJPAConfiguration
getQuerySQLCache in interface OpenJPAConfigurationpublic PreparedQueryCache getQuerySQLCacheInstance()
OpenJPAConfiguration
getQuerySQLCacheInstance in interface OpenJPAConfigurationpublic void setFinderCache(String finderCache)
OpenJPAConfiguration
setFinderCache in interface OpenJPAConfigurationpublic String getFinderCache()
OpenJPAConfiguration
getFinderCache in interface OpenJPAConfigurationpublic FinderCache getFinderCacheInstance()
OpenJPAConfiguration
getFinderCacheInstance in interface OpenJPAConfigurationpublic Object getValidationFactoryInstance()
OpenJPAConfigurationnull.
getValidationFactoryInstance in interface OpenJPAConfigurationpublic void setValidationFactory(Object factory)
OpenJPAConfigurationnull.
setValidationFactory in interface OpenJPAConfigurationpublic Object getValidatorInstance()
OpenJPAConfigurationnull.
getValidatorInstance in interface OpenJPAConfigurationpublic void setValidatorInstance(Object val)
OpenJPAConfigurationnull.
setValidatorInstance in interface OpenJPAConfigurationpublic String getLifecycleEventManager()
OpenJPAConfiguration
getLifecycleEventManager in interface OpenJPAConfigurationpublic LifecycleEventManager getLifecycleEventManagerInstance()
OpenJPAConfiguration
getLifecycleEventManagerInstance in interface OpenJPAConfigurationpublic void setLifecycleEventManager(String lem)
OpenJPAConfiguration
setLifecycleEventManager in interface OpenJPAConfigurationpublic boolean getDynamicEnhancementAgent()
OpenJPAConfiguration
getDynamicEnhancementAgent in interface OpenJPAConfigurationpublic void setDynamicEnhancementAgent(boolean dynamic)
OpenJPAConfiguration
setDynamicEnhancementAgent in interface OpenJPAConfigurationpublic void setEncryptionProvider(String p)
OpenJPAConfigurationEncryptionProvider.
setEncryptionProvider in interface OpenJPAConfigurationpublic EncryptionProvider getEncryptionProvider()
OpenJPAConfigurationEncryptionProvider.
getEncryptionProvider in interface OpenJPAConfigurationpublic void setDataCacheMode(String mode)
OpenJPAConfigurationDataCacheMode
setDataCacheMode in interface OpenJPAConfigurationmode - One of the Sting constants from DataCacheModepublic String getDataCacheMode()
OpenJPAConfigurationDataCacheMode
getDataCacheMode in interface OpenJPAConfigurationpublic String getCacheDistributionPolicy()
OpenJPAConfiguration
getCacheDistributionPolicy in interface OpenJPAConfigurationCacheDistributionPolicy.public CacheDistributionPolicy getCacheDistributionPolicyInstance()
OpenJPAConfiguration
getCacheDistributionPolicyInstance in interface OpenJPAConfigurationCacheDistributionPolicy.public void setCacheDistributionPolicy(String policyPlugin)
OpenJPAConfiguration
setCacheDistributionPolicy in interface OpenJPAConfigurationpublic void setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
OpenJPAConfiguration
setCacheDistributionPolicyInstance in interface OpenJPAConfigurationpolicy - a non-null implementation of CacheDistributionPolicy.public void setPersistenceEnvironment(Map<String,Object> peMap)
public Map<String,Object> getPersistenceEnvironment()
public Auditor getAuditorInstance()
OpenJPAConfigurationAuditor associated with this configuration.
getAuditorInstance in interface OpenJPAConfigurationpublic void setAuditorInstance(Auditor auditor)
OpenJPAConfigurationAuditor associated with this configuration.
setAuditorInstance in interface OpenJPAConfigurationpublic String getAuditor()
OpenJPAConfigurationAuditor specified in this configuration.
getAuditor in interface OpenJPAConfigurationpublic void setAuditor(String auditor)
OpenJPAConfigurationAuditor specified in this configuration.
setAuditor in interface OpenJPAConfigurationpublic boolean getPostLoadOnMerge()
OpenJPAConfiguration
getPostLoadOnMerge in interface OpenJPAConfigurationpublic void setPostLoadOnMerge(boolean postLoadOnMerge)
OpenJPAConfiguration
setPostLoadOnMerge in interface OpenJPAConfigurationpublic void setPostLoadOnMerge(Boolean postLoadOnMerge)
OpenJPAConfiguration
setPostLoadOnMerge in interface OpenJPAConfigurationpublic boolean getOptimizeIdCopy()
OpenJPAConfiguration
getOptimizeIdCopy in interface OpenJPAConfigurationpublic void setOptimizeIdCopy(boolean optimizeId)
OpenJPAConfiguration
setOptimizeIdCopy in interface OpenJPAConfigurationpublic void setOptimizeIdCopy(Boolean optimizeId)
OpenJPAConfiguration
setOptimizeIdCopy in interface OpenJPAConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||