|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.conf.ConfigurationImpl org.apache.openjpa.conf.OpenJPAConfigurationImpl
public class OpenJPAConfigurationImpl
Implementation of the OpenJPAConfiguration
interface.
ConfigurationImpl
,
Serialized FormFields 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 AggregateListener s 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 CacheMarshaller s 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 FetchConfiguration s. |
String[] |
getFetchGroupsList()
List of fetch group names that will be pre-set for all new FetchConfiguration s. |
FilterListener[] |
getFilterListenerInstances()
Return the query filter listeners. |
String |
getFilterListeners()
A comma-separted list of the plugin strings of the query FilterListener s 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 AggregateListener s 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 CacheMarshaller s 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 FetchConfiguration s. |
void |
setFetchGroups(String[] fetchGroups)
List of fetch group names that will be pre-set for all new FetchConfiguration s. |
void |
setFilterListeners(FilterListener[] listeners)
Set the query filter listeners. |
void |
setFilterListeners(String filterListeners)
A comma-separted list of the plugin strings of the query FilterListener s 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 propertiespublic OpenJPAConfigurationImpl(boolean derivations, boolean loadGlobals)
derivations
- whether to apply product derivationsloadGlobals
- whether to attempt to load the global propertiesMethod Detail |
---|
public Collection<String> supportedOptions()
OpenJPAConfiguration
supportedOptions
in interface OpenJPAConfiguration
public String getSpecification()
getSpecification
in interface OpenJPAConfiguration
public Specification getSpecificationInstance()
OpenJPAConfiguration
getSpecificationInstance
in interface OpenJPAConfiguration
public void setSpecification(String spec)
setSpecification
in interface OpenJPAConfiguration
spec
- should be encoded in the format specified in Specification
.Specification
public void setSpecification(Specification newSpec)
OpenJPAConfiguration
compatibility
options during runtime.
This change will trigger all registered Product Derivations to mutate
other configuration properties.
setSpecification
in interface OpenJPAConfiguration
newSpec
- fullname of the specification that possibly encodes major and
minor version information. For encoding formatSpecification
public void setClassResolver(String classResolver)
OpenJPAConfiguration
ClassResolver
to use for custom
class loading.
setClassResolver
in interface OpenJPAConfiguration
public String getClassResolver()
OpenJPAConfiguration
ClassResolver
to use for custom
class loading.
getClassResolver
in interface OpenJPAConfiguration
public void setClassResolver(ClassResolver classResolver)
OpenJPAConfiguration
ClassResolver
to use.
setClassResolver
in interface OpenJPAConfiguration
public ClassResolver getClassResolverInstance()
OpenJPAConfiguration
ClassResolver
to use.
getClassResolverInstance
in interface OpenJPAConfiguration
public void setBrokerFactory(String factory)
OpenJPAConfiguration
BrokerFactory
class to use.
setBrokerFactory
in interface OpenJPAConfiguration
public String getBrokerFactory()
OpenJPAConfiguration
BrokerFactory
class to use.
getBrokerFactory
in interface OpenJPAConfiguration
public void setBrokerImpl(String broker)
OpenJPAConfiguration
BrokerImpl
extension to create.
setBrokerImpl
in interface OpenJPAConfiguration
public String getBrokerImpl()
OpenJPAConfiguration
BrokerImpl
extension to create.
getBrokerImpl
in interface OpenJPAConfiguration
public BrokerImpl newBrokerInstance(String user, String pass)
OpenJPAConfiguration
newBrokerInstance
in interface OpenJPAConfiguration
public void setDataCacheManager(String mgr)
OpenJPAConfiguration
setDataCacheManager
in interface OpenJPAConfiguration
public String getDataCacheManager()
OpenJPAConfiguration
getDataCacheManager
in interface OpenJPAConfiguration
public void setDataCacheManager(DataCacheManager dcm)
OpenJPAConfiguration
setDataCacheManager
in interface OpenJPAConfiguration
public DataCacheManager getDataCacheManagerInstance()
OpenJPAConfiguration
getDataCacheManagerInstance
in interface OpenJPAConfiguration
public void setDataCache(String dataCache)
OpenJPAConfiguration
DataCache
to use for level-2 data store caching.
setDataCache
in interface OpenJPAConfiguration
public String getDataCache()
OpenJPAConfiguration
DataCache
to use for level-2 data store caching.
getDataCache
in interface OpenJPAConfiguration
public void setDataCacheTimeout(int dataCacheTimeout)
OpenJPAConfiguration
setDataCacheTimeout
in interface OpenJPAConfiguration
public void setDataCacheTimeout(Integer dataCacheTimeout)
OpenJPAConfiguration
OpenJPAConfiguration.setDataCacheTimeout(int)
.
setDataCacheTimeout
in interface OpenJPAConfiguration
public int getDataCacheTimeout()
OpenJPAConfiguration
getDataCacheTimeout
in interface OpenJPAConfiguration
public void setQueryCache(String queryCache)
OpenJPAConfiguration
setQueryCache
in interface OpenJPAConfiguration
public String getQueryCache()
OpenJPAConfiguration
getQueryCache
in interface OpenJPAConfiguration
public boolean getRefreshFromDataCache()
OpenJPAConfiguration
DataCache
.
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 OpenJPAConfiguration
public void setRefreshFromDataCache(boolean flag)
OpenJPAConfiguration
DataCache
.
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 OpenJPAConfiguration
public void setRefreshFromDataCache(Boolean flag)
OpenJPAConfiguration
DataCache
.
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 OpenJPAConfiguration
public boolean getDynamicDataStructs()
OpenJPAConfiguration
getDynamicDataStructs
in interface OpenJPAConfiguration
public void setDynamicDataStructs(boolean dynamic)
OpenJPAConfiguration
setDynamicDataStructs
in interface OpenJPAConfiguration
public void setDynamicDataStructs(Boolean dynamic)
OpenJPAConfiguration
OpenJPAConfiguration.setDynamicDataStructs(boolean)
.
setDynamicDataStructs
in interface OpenJPAConfiguration
public void setLockManager(String lockManager)
OpenJPAConfiguration
setLockManager
in interface OpenJPAConfiguration
public String getLockManager()
OpenJPAConfiguration
getLockManager
in interface OpenJPAConfiguration
public LockManager newLockManagerInstance()
OpenJPAConfiguration
newLockManagerInstance
in interface OpenJPAConfiguration
public void setInverseManager(String inverseManager)
OpenJPAConfiguration
setInverseManager
in interface OpenJPAConfiguration
public String getInverseManager()
OpenJPAConfiguration
getInverseManager
in interface OpenJPAConfiguration
public InverseManager newInverseManagerInstance()
OpenJPAConfiguration
newInverseManagerInstance
in interface OpenJPAConfiguration
public void setSavepointManager(String savepointManager)
OpenJPAConfiguration
setSavepointManager
in interface OpenJPAConfiguration
public String getSavepointManager()
OpenJPAConfiguration
getSavepointManager
in interface OpenJPAConfiguration
public SavepointManager getSavepointManagerInstance()
OpenJPAConfiguration
getSavepointManagerInstance
in interface OpenJPAConfiguration
public void setOrphanedKeyAction(String action)
OpenJPAConfiguration
setOrphanedKeyAction
in interface OpenJPAConfiguration
public String getOrphanedKeyAction()
OpenJPAConfiguration
getOrphanedKeyAction
in interface OpenJPAConfiguration
public OrphanedKeyAction getOrphanedKeyActionInstance()
OpenJPAConfiguration
getOrphanedKeyActionInstance
in interface OpenJPAConfiguration
public void setOrphanedKeyAction(OrphanedKeyAction action)
OpenJPAConfiguration
setOrphanedKeyAction
in interface OpenJPAConfiguration
public void setRemoteCommitProvider(String remoteCommitProvider)
OpenJPAConfiguration
setRemoteCommitProvider
in interface OpenJPAConfiguration
public String getRemoteCommitProvider()
OpenJPAConfiguration
getRemoteCommitProvider
in interface OpenJPAConfiguration
public RemoteCommitProvider newRemoteCommitProviderInstance()
OpenJPAConfiguration
newRemoteCommitProviderInstance
in interface OpenJPAConfiguration
public void setRemoteCommitEventManager(RemoteCommitEventManager remoteEventManager)
OpenJPAConfiguration
setRemoteCommitEventManager
in interface OpenJPAConfiguration
public RemoteCommitEventManager getRemoteCommitEventManager()
OpenJPAConfiguration
getRemoteCommitEventManager
in interface OpenJPAConfiguration
public void setTransactionMode(String transactionMode)
OpenJPAConfiguration
local
: Perform transaction operations locally.managed
: Use managed environment's global
transactions.
setTransactionMode
in interface OpenJPAConfiguration
public String getTransactionMode()
OpenJPAConfiguration
local
: Perform transaction operations locally.managed
: Use managed environment's global
transactions.
getTransactionMode
in interface OpenJPAConfiguration
public void setTransactionModeManaged(boolean managed)
OpenJPAConfiguration
setTransactionModeManaged
in interface OpenJPAConfiguration
public boolean isTransactionModeManaged()
OpenJPAConfiguration
isTransactionModeManaged
in interface OpenJPAConfiguration
public void setManagedRuntime(String managedRuntime)
OpenJPAConfiguration
ManagedRuntime
to use for managed
environments.
setManagedRuntime
in interface OpenJPAConfiguration
public String getManagedRuntime()
OpenJPAConfiguration
ManagedRuntime
to use for managed
environments.
getManagedRuntime
in interface OpenJPAConfiguration
public void setManagedRuntime(ManagedRuntime managedRuntime)
OpenJPAConfiguration
setManagedRuntime
in interface OpenJPAConfiguration
public ManagedRuntime getManagedRuntimeInstance()
OpenJPAConfiguration
getManagedRuntimeInstance
in interface OpenJPAConfiguration
public void setProxyManager(String proxyManager)
OpenJPAConfiguration
ProxyManager
to use for second
class object proxies.
setProxyManager
in interface OpenJPAConfiguration
public String getProxyManager()
OpenJPAConfiguration
ProxyManager
to use for second
class object proxies.
getProxyManager
in interface OpenJPAConfiguration
public void setProxyManager(ProxyManager proxyManager)
OpenJPAConfiguration
ProxyManager
to use.
setProxyManager
in interface OpenJPAConfiguration
public ProxyManager getProxyManagerInstance()
OpenJPAConfiguration
ProxyManager
to use.
getProxyManagerInstance
in interface OpenJPAConfiguration
public void setMapping(String mapping)
OpenJPAConfiguration
setMapping
in interface OpenJPAConfiguration
public String getMapping()
OpenJPAConfiguration
getMapping
in interface OpenJPAConfiguration
public void setMetaDataFactory(String meta)
OpenJPAConfiguration
MetaDataFactory
to use.
setMetaDataFactory
in interface OpenJPAConfiguration
public String getMetaDataFactory()
OpenJPAConfiguration
MetaDataFactory
to use.
getMetaDataFactory
in interface OpenJPAConfiguration
public MetaDataFactory newMetaDataFactoryInstance()
OpenJPAConfiguration
MetaDataFactory
to use with a repository.
newMetaDataFactoryInstance
in interface OpenJPAConfiguration
public void setMetaDataRepository(String meta)
OpenJPAConfiguration
MetaDataRepository
to use.
setMetaDataRepository
in interface OpenJPAConfiguration
public String getMetaDataRepository()
OpenJPAConfiguration
MetaDataRepository
to use.
getMetaDataRepository
in interface OpenJPAConfiguration
public void setMetaDataRepository(MetaDataRepository meta)
OpenJPAConfiguration
setMetaDataRepository
in interface OpenJPAConfiguration
public MetaDataRepository getMetaDataRepositoryInstance()
OpenJPAConfiguration
getMetaDataRepositoryInstance
in interface OpenJPAConfiguration
public boolean metaDataRepositoryAvailable()
OpenJPAConfiguration
metaDataRepositoryAvailable
in interface OpenJPAConfiguration
public MetaDataRepository newMetaDataRepositoryInstance()
OpenJPAConfiguration
newMetaDataRepositoryInstance
in interface OpenJPAConfiguration
public void setConnectionUserName(String connectionUserName)
OpenJPAConfiguration
setConnectionUserName
in interface OpenJPAConfiguration
public String getConnectionUserName()
OpenJPAConfiguration
getConnectionUserName
in interface OpenJPAConfiguration
public void setConnectionPassword(String connectionPassword)
OpenJPAConfiguration
setConnectionPassword
in interface OpenJPAConfiguration
public String getConnectionPassword()
OpenJPAConfiguration
getConnectionPassword
in interface OpenJPAConfiguration
public void setConnectionURL(String connectionURL)
OpenJPAConfiguration
setConnectionURL
in interface OpenJPAConfiguration
public String getConnectionURL()
OpenJPAConfiguration
getConnectionURL
in interface OpenJPAConfiguration
public void setConnectionDriverName(String driverName)
OpenJPAConfiguration
setConnectionDriverName
in interface OpenJPAConfiguration
public String getConnectionDriverName()
OpenJPAConfiguration
getConnectionDriverName
in interface OpenJPAConfiguration
public void setConnectionProperties(String connectionProperties)
OpenJPAConfiguration
setConnectionProperties
in interface OpenJPAConfiguration
public String getConnectionProperties()
OpenJPAConfiguration
getConnectionProperties
in interface OpenJPAConfiguration
public void setConnectionFactoryProperties(String connectionFactoryProperties)
OpenJPAConfiguration
setConnectionFactoryProperties
in interface OpenJPAConfiguration
public String getConnectionFactoryProperties()
OpenJPAConfiguration
getConnectionFactoryProperties
in interface OpenJPAConfiguration
public String getConnectionFactoryMode()
OpenJPAConfiguration
getConnectionFactoryMode
in interface OpenJPAConfiguration
public void setConnectionFactoryMode(String mode)
OpenJPAConfiguration
setConnectionFactoryMode
in interface OpenJPAConfiguration
public boolean isConnectionFactoryModeManaged()
OpenJPAConfiguration
isConnectionFactoryModeManaged
in interface OpenJPAConfiguration
public void setConnectionFactoryModeManaged(boolean managed)
OpenJPAConfiguration
setConnectionFactoryModeManaged
in interface OpenJPAConfiguration
public void setConnectionFactoryName(String connectionFactoryName)
OpenJPAConfiguration
setConnectionFactoryName
in interface OpenJPAConfiguration
public String getConnectionFactoryName()
OpenJPAConfiguration
getConnectionFactoryName
in interface OpenJPAConfiguration
public void setConnectionFactory(Object factory)
OpenJPAConfiguration
setConnectionFactory
in interface OpenJPAConfiguration
public Object getConnectionFactory()
OpenJPAConfiguration
getConnectionFactory
in interface OpenJPAConfiguration
public void setConnection2UserName(String connection2UserName)
OpenJPAConfiguration
setConnection2UserName
in interface OpenJPAConfiguration
public String getConnection2UserName()
OpenJPAConfiguration
getConnection2UserName
in interface OpenJPAConfiguration
public void setConnection2Password(String connection2Password)
OpenJPAConfiguration
setConnection2Password
in interface OpenJPAConfiguration
public String getConnection2Password()
OpenJPAConfiguration
getConnection2Password
in interface OpenJPAConfiguration
public void setConnection2URL(String connection2URL)
OpenJPAConfiguration
setConnection2URL
in interface OpenJPAConfiguration
public String getConnection2URL()
OpenJPAConfiguration
getConnection2URL
in interface OpenJPAConfiguration
public void setConnection2DriverName(String driverName)
OpenJPAConfiguration
setConnection2DriverName
in interface OpenJPAConfiguration
public String getConnection2DriverName()
OpenJPAConfiguration
getConnection2DriverName
in interface OpenJPAConfiguration
public void setConnection2Properties(String connection2Properties)
OpenJPAConfiguration
setConnection2Properties
in interface OpenJPAConfiguration
public String getConnection2Properties()
OpenJPAConfiguration
getConnection2Properties
in interface OpenJPAConfiguration
public void setConnectionFactory2Properties(String connectionFactory2Properties)
OpenJPAConfiguration
setConnectionFactory2Properties
in interface OpenJPAConfiguration
public String getConnectionFactory2Properties()
OpenJPAConfiguration
getConnectionFactory2Properties
in interface OpenJPAConfiguration
public void setConnectionFactory2Name(String connectionFactory2Name)
OpenJPAConfiguration
setConnectionFactory2Name
in interface OpenJPAConfiguration
public String getConnectionFactory2Name()
OpenJPAConfiguration
getConnectionFactory2Name
in interface OpenJPAConfiguration
public void setConnectionFactory2(Object factory)
OpenJPAConfiguration
setConnectionFactory2
in interface OpenJPAConfiguration
public Object getConnectionFactory2()
OpenJPAConfiguration
getConnectionFactory2
in interface OpenJPAConfiguration
public void setOptimistic(boolean optimistic)
OpenJPAConfiguration
setOptimistic
in interface OpenJPAConfiguration
public void setOptimistic(Boolean optimistic)
OpenJPAConfiguration
OpenJPAConfiguration.setOptimistic(boolean)
.
setOptimistic
in interface OpenJPAConfiguration
public boolean getOptimistic()
OpenJPAConfiguration
getOptimistic
in interface OpenJPAConfiguration
public void setAutoClear(String clear)
OpenJPAConfiguration
setAutoClear
in interface OpenJPAConfiguration
public String getAutoClear()
OpenJPAConfiguration
getAutoClear
in interface OpenJPAConfiguration
public void setAutoClear(int clear)
OpenJPAConfiguration
setAutoClear
in interface OpenJPAConfiguration
public int getAutoClearConstant()
OpenJPAConfiguration
AutoClear
constant.
getAutoClearConstant
in interface OpenJPAConfiguration
public void setRetainState(boolean retainState)
OpenJPAConfiguration
setRetainState
in interface OpenJPAConfiguration
public void setRetainState(Boolean retainState)
OpenJPAConfiguration
OpenJPAConfiguration.setRetainState(boolean)
.
setRetainState
in interface OpenJPAConfiguration
public boolean getRetainState()
OpenJPAConfiguration
getRetainState
in interface OpenJPAConfiguration
public void setRestoreState(String restoreState)
OpenJPAConfiguration
setRestoreState
in interface OpenJPAConfiguration
public String getRestoreState()
OpenJPAConfiguration
getRestoreState
in interface OpenJPAConfiguration
public void setRestoreState(int restoreState)
OpenJPAConfiguration
setRestoreState
in interface OpenJPAConfiguration
public int getRestoreStateConstant()
OpenJPAConfiguration
RestoreState
constant.
getRestoreStateConstant
in interface OpenJPAConfiguration
public void setAutoDetach(String autoDetach)
OpenJPAConfiguration
commit
: When the current transaction commits.close
: When the broker closes.nontx-read
: When instances are read
non-transactionally.
setAutoDetach
in interface OpenJPAConfiguration
public String getAutoDetach()
OpenJPAConfiguration
commit
: When the current transaction commits.close
: When the broker closes.nontx-read
: When instances are read
non-transactionally.
getAutoDetach
in interface OpenJPAConfiguration
public void setAutoDetach(int autoDetachFlags)
OpenJPAConfiguration
AutoDetach
flags.
setAutoDetach
in interface OpenJPAConfiguration
public int getAutoDetachConstant()
OpenJPAConfiguration
AutoDetach
flags.
getAutoDetachConstant
in interface OpenJPAConfiguration
public void setDetachState(String detachState)
OpenJPAConfiguration
setDetachState
in interface OpenJPAConfiguration
public String getDetachState()
public void setDetachState(DetachOptions detachState)
OpenJPAConfiguration
setDetachState
in interface OpenJPAConfiguration
public DetachOptions getDetachStateInstance()
OpenJPAConfiguration
getDetachStateInstance
in interface OpenJPAConfiguration
public void setIgnoreChanges(boolean ignoreChanges)
OpenJPAConfiguration
setIgnoreChanges
in interface OpenJPAConfiguration
public void setIgnoreChanges(Boolean ignoreChanges)
OpenJPAConfiguration
OpenJPAConfiguration.setIgnoreChanges(boolean)
.
setIgnoreChanges
in interface OpenJPAConfiguration
public boolean getIgnoreChanges()
OpenJPAConfiguration
getIgnoreChanges
in interface OpenJPAConfiguration
public void setNontransactionalRead(boolean nontransactionalRead)
OpenJPAConfiguration
setNontransactionalRead
in interface OpenJPAConfiguration
public void setNontransactionalRead(Boolean nontransactionalRead)
OpenJPAConfiguration
OpenJPAConfiguration.setNontransactionalRead(boolean)
.
setNontransactionalRead
in interface OpenJPAConfiguration
public boolean getNontransactionalRead()
OpenJPAConfiguration
getNontransactionalRead
in interface OpenJPAConfiguration
public void setNontransactionalWrite(boolean nontransactionalWrite)
OpenJPAConfiguration
setNontransactionalWrite
in interface OpenJPAConfiguration
public void setNontransactionalWrite(Boolean nontransactionalWrite)
OpenJPAConfiguration
OpenJPAConfiguration.setNontransactionalWrite(boolean)
.
setNontransactionalWrite
in interface OpenJPAConfiguration
public boolean getNontransactionalWrite()
OpenJPAConfiguration
getNontransactionalWrite
in interface OpenJPAConfiguration
public void setMultithreaded(boolean multithreaded)
OpenJPAConfiguration
setMultithreaded
in interface OpenJPAConfiguration
public void setMultithreaded(Boolean multithreaded)
OpenJPAConfiguration
OpenJPAConfiguration.setMultithreaded(boolean)
.
setMultithreaded
in interface OpenJPAConfiguration
public boolean getMultithreaded()
OpenJPAConfiguration
getMultithreaded
in interface OpenJPAConfiguration
public void setFetchBatchSize(int fetchBatchSize)
OpenJPAConfiguration
setFetchBatchSize
in interface OpenJPAConfiguration
public void setFetchBatchSize(Integer fetchBatchSize)
OpenJPAConfiguration
OpenJPAConfiguration.setFetchBatchSize(int)
.
setFetchBatchSize
in interface OpenJPAConfiguration
public int getFetchBatchSize()
OpenJPAConfiguration
getFetchBatchSize
in interface OpenJPAConfiguration
public void setMaxFetchDepth(int maxFetchDepth)
OpenJPAConfiguration
setMaxFetchDepth
in interface OpenJPAConfiguration
public void setMaxFetchDepth(Integer maxFetchDepth)
OpenJPAConfiguration
OpenJPAConfiguration.setMaxFetchDepth(int)
.
setMaxFetchDepth
in interface OpenJPAConfiguration
public int getMaxFetchDepth()
OpenJPAConfiguration
getMaxFetchDepth
in interface OpenJPAConfiguration
public void setFetchGroups(String fetchGroups)
OpenJPAConfiguration
FetchConfiguration
s.
setFetchGroups
in interface OpenJPAConfiguration
public String getFetchGroups()
OpenJPAConfiguration
FetchConfiguration
s.
getFetchGroups
in interface OpenJPAConfiguration
public String[] getFetchGroupsList()
OpenJPAConfiguration
FetchConfiguration
s.
getFetchGroupsList
in interface OpenJPAConfiguration
public void setFetchGroups(String[] fetchGroups)
OpenJPAConfiguration
FetchConfiguration
s.
setFetchGroups
in interface OpenJPAConfiguration
public void setFlushBeforeQueries(String flush)
OpenJPAConfiguration
setFlushBeforeQueries
in interface OpenJPAConfiguration
public String getFlushBeforeQueries()
OpenJPAConfiguration
getFlushBeforeQueries
in interface OpenJPAConfiguration
public void setFlushBeforeQueries(int flush)
OpenJPAConfiguration
QueryFlushModes.FLUSH_TRUE
,
QueryFlushModes.FLUSH_FALSE
, or
QueryFlushModes.FLUSH_WITH_CONNECTION
.
setFlushBeforeQueries
in interface OpenJPAConfiguration
public int getFlushBeforeQueriesConstant()
OpenJPAConfiguration
QueryFlushModes.FLUSH_TRUE
,
QueryFlushModes.FLUSH_FALSE
, or
QueryFlushModes.FLUSH_WITH_CONNECTION
, as determined
by parsing the string returned by OpenJPAConfiguration.getFlushBeforeQueries()
.
getFlushBeforeQueriesConstant
in interface OpenJPAConfiguration
public void setLockTimeout(int timeout)
OpenJPAConfiguration
setLockTimeout
in interface OpenJPAConfiguration
public void setLockTimeout(Integer timeout)
OpenJPAConfiguration
OpenJPAConfiguration.setLockTimeout(int)
.
setLockTimeout
in interface OpenJPAConfiguration
public int getLockTimeout()
OpenJPAConfiguration
getLockTimeout
in interface OpenJPAConfiguration
public int getQueryTimeout()
OpenJPAConfiguration
getQueryTimeout
in interface OpenJPAConfiguration
public void setQueryTimeout(int timeout)
OpenJPAConfiguration
setQueryTimeout
in interface OpenJPAConfiguration
public void setReadLockLevel(String level)
OpenJPAConfiguration
read
.
setReadLockLevel
in interface OpenJPAConfiguration
public String getReadLockLevel()
OpenJPAConfiguration
read
.
getReadLockLevel
in interface OpenJPAConfiguration
public void setReadLockLevel(int level)
OpenJPAConfiguration
setReadLockLevel
in interface OpenJPAConfiguration
public int getReadLockLevelConstant()
OpenJPAConfiguration
getReadLockLevelConstant
in interface OpenJPAConfiguration
public void setWriteLockLevel(String level)
OpenJPAConfiguration
write
.
setWriteLockLevel
in interface OpenJPAConfiguration
public String getWriteLockLevel()
OpenJPAConfiguration
write
.
getWriteLockLevel
in interface OpenJPAConfiguration
public void setWriteLockLevel(int level)
OpenJPAConfiguration
setWriteLockLevel
in interface OpenJPAConfiguration
public int getWriteLockLevelConstant()
OpenJPAConfiguration
getWriteLockLevelConstant
in interface OpenJPAConfiguration
public void setSequence(String sequence)
OpenJPAConfiguration
Seq
.
setSequence
in interface OpenJPAConfiguration
public String getSequence()
OpenJPAConfiguration
Seq
.
getSequence
in interface OpenJPAConfiguration
public void setSequence(Seq seq)
OpenJPAConfiguration
setSequence
in interface OpenJPAConfiguration
public Seq getSequenceInstance()
OpenJPAConfiguration
getSequenceInstance
in interface OpenJPAConfiguration
public void setConnectionRetainMode(String connectionRetainMode)
OpenJPAConfiguration
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.
setConnectionRetainMode
in interface OpenJPAConfiguration
public String getConnectionRetainMode()
OpenJPAConfiguration
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.
getConnectionRetainMode
in interface OpenJPAConfiguration
public void setConnectionRetainMode(int connectionRetainMode)
OpenJPAConfiguration
ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
setConnectionRetainMode
in interface OpenJPAConfiguration
public int getConnectionRetainModeConstant()
OpenJPAConfiguration
ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
getConnectionRetainModeConstant
in interface OpenJPAConfiguration
public void setFilterListeners(String filterListeners)
OpenJPAConfiguration
FilterListener
s to use.
setFilterListeners
in interface OpenJPAConfiguration
public String getFilterListeners()
OpenJPAConfiguration
FilterListener
s to use.
getFilterListeners
in interface OpenJPAConfiguration
public void setFilterListeners(FilterListener[] listeners)
OpenJPAConfiguration
setFilterListeners
in interface OpenJPAConfiguration
public FilterListener[] getFilterListenerInstances()
OpenJPAConfiguration
getFilterListenerInstances
in interface OpenJPAConfiguration
public void setAggregateListeners(String aggregateListeners)
OpenJPAConfiguration
AggregateListener
s to use.
setAggregateListeners
in interface OpenJPAConfiguration
public String getAggregateListeners()
OpenJPAConfiguration
AggregateListener
s to use.
getAggregateListeners
in interface OpenJPAConfiguration
public void setAggregateListeners(AggregateListener[] listeners)
OpenJPAConfiguration
setAggregateListeners
in interface OpenJPAConfiguration
public AggregateListener[] getAggregateListenerInstances()
OpenJPAConfiguration
getAggregateListenerInstances
in interface OpenJPAConfiguration
public void setRetryClassRegistration(boolean retry)
OpenJPAConfiguration
false
.
setRetryClassRegistration
in interface OpenJPAConfiguration
public void setRetryClassRegistration(Boolean retry)
OpenJPAConfiguration
OpenJPAConfiguration.setRetryClassRegistration(boolean)
.
setRetryClassRegistration
in interface OpenJPAConfiguration
public boolean getRetryClassRegistration()
OpenJPAConfiguration
false
.
getRetryClassRegistration
in interface OpenJPAConfiguration
public String getCompatibility()
OpenJPAConfiguration
getCompatibility
in interface OpenJPAConfiguration
public void setCompatibility(String compatibility)
OpenJPAConfiguration
setCompatibility
in interface OpenJPAConfiguration
public Compatibility getCompatibilityInstance()
getCompatibilityInstance
in interface OpenJPAConfiguration
public String getCallbackOptions()
OpenJPAConfiguration
getCallbackOptions
in interface OpenJPAConfiguration
public void setCallbackOptions(String options)
OpenJPAConfiguration
setCallbackOptions
in interface OpenJPAConfiguration
public CallbackOptions getCallbackOptionsInstance()
OpenJPAConfiguration
getCallbackOptionsInstance
in interface OpenJPAConfiguration
public String getQueryCompilationCache()
OpenJPAConfiguration
getQueryCompilationCache
in interface OpenJPAConfiguration
QueryCompilationCacheValue
public void setQueryCompilationCache(String queryCompilationCache)
OpenJPAConfiguration
setQueryCompilationCache
in interface OpenJPAConfiguration
QueryCompilationCacheValue
public Map getQueryCompilationCacheInstance()
OpenJPAConfiguration
getQueryCompilationCacheInstance
in interface OpenJPAConfiguration
QueryCompilationCacheValue
public StoreFacadeTypeRegistry getStoreFacadeTypeRegistry()
OpenJPAConfiguration
StoreFacadeTypeRegistry
instance associated with this
configuration.
getStoreFacadeTypeRegistry
in interface OpenJPAConfiguration
public BrokerFactoryEventManager getBrokerFactoryEventManager()
OpenJPAConfiguration
BrokerFactoryEventManager
associated with this configuration.
getBrokerFactoryEventManager
in interface OpenJPAConfiguration
public String getRuntimeUnenhancedClasses()
OpenJPAConfiguration
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.
getRuntimeUnenhancedClasses
in interface OpenJPAConfiguration
public int getRuntimeUnenhancedClassesConstant()
OpenJPAConfiguration
RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
getRuntimeUnenhancedClassesConstant
in interface OpenJPAConfiguration
public void setRuntimeUnenhancedClasses(int mode)
OpenJPAConfiguration
RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
setRuntimeUnenhancedClasses
in interface OpenJPAConfiguration
public void setRuntimeUnenhancedClasses(String mode)
OpenJPAConfiguration
setRuntimeUnenhancedClasses
in interface OpenJPAConfiguration
#getRuntimeUnenhancedClasses()}
public String getCacheMarshallers()
OpenJPAConfiguration
CacheMarshaller
s to use.
getCacheMarshallers
in interface OpenJPAConfiguration
public void setCacheMarshallers(String marshallers)
OpenJPAConfiguration
CacheMarshaller
s to use.
setCacheMarshallers
in interface OpenJPAConfiguration
public Map getCacheMarshallerInstances()
OpenJPAConfiguration
getCacheMarshallerInstances
in interface OpenJPAConfiguration
public boolean isInitializeEagerly()
OpenJPAConfiguration
isInitializeEagerly
in interface OpenJPAConfiguration
public void setInitializeEagerly(boolean retry)
OpenJPAConfiguration
setInitializeEagerly
in interface OpenJPAConfiguration
public void setValidationMode(String mode)
OpenJPAConfiguration
AUTO
.
setValidationMode
in interface OpenJPAConfiguration
public String getValidationMode()
OpenJPAConfiguration
AUTO
.
getValidationMode
in interface OpenJPAConfiguration
public void setValidationGroupPrePersist(String vgPrePersist)
OpenJPAConfiguration
setValidationGroupPrePersist
in interface OpenJPAConfiguration
public String getValidationGroupPrePersist()
OpenJPAConfiguration
getValidationGroupPrePersist
in interface OpenJPAConfiguration
public void setValidationGroupPreUpdate(String vgPreUpdate)
OpenJPAConfiguration
setValidationGroupPreUpdate
in interface OpenJPAConfiguration
public String getValidationGroupPreUpdate()
OpenJPAConfiguration
getValidationGroupPreUpdate
in interface OpenJPAConfiguration
public void setValidationGroupPreRemove(String vgPreRemove)
OpenJPAConfiguration
setValidationGroupPreRemove
in interface OpenJPAConfiguration
public String getValidationGroupPreRemove()
OpenJPAConfiguration
getValidationGroupPreRemove
in interface OpenJPAConfiguration
public String getInstrumentation()
OpenJPAConfiguration
getInstrumentation
in interface OpenJPAConfiguration
public void setInstrumentation(String providers)
OpenJPAConfiguration
setInstrumentation
in interface OpenJPAConfiguration
providers
- 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 OpenJPAConfiguration
public void instantiateAll()
Configuration
instantiateAll
in interface Configuration
instantiateAll
in class ConfigurationImpl
protected void preClose()
ConfigurationImpl
ConfigurationImpl.close()
after invoking the
ProductDerivation.beforeConfigurationClose(org.apache.openjpa.lib.conf.Configuration)
callbacks
but before performing internal close operations.
preClose
in class ConfigurationImpl
public Log getConfigurationLog()
ConfigurationImpl
openjpa.Runtime
by default.
getConfigurationLog
in interface Configuration
getConfigurationLog
in class ConfigurationImpl
public void setQuerySQLCache(String querySQLCache)
OpenJPAConfiguration
setQuerySQLCache
in interface OpenJPAConfiguration
public void setQuerySQLCache(PreparedQueryCache querySQLCache)
OpenJPAConfiguration
setQuerySQLCache
in interface OpenJPAConfiguration
public String getQuerySQLCache()
OpenJPAConfiguration
getQuerySQLCache
in interface OpenJPAConfiguration
public PreparedQueryCache getQuerySQLCacheInstance()
OpenJPAConfiguration
getQuerySQLCacheInstance
in interface OpenJPAConfiguration
public void setFinderCache(String finderCache)
OpenJPAConfiguration
setFinderCache
in interface OpenJPAConfiguration
public String getFinderCache()
OpenJPAConfiguration
getFinderCache
in interface OpenJPAConfiguration
public FinderCache getFinderCacheInstance()
OpenJPAConfiguration
getFinderCacheInstance
in interface OpenJPAConfiguration
public Object getValidationFactoryInstance()
OpenJPAConfiguration
null
.
getValidationFactoryInstance
in interface OpenJPAConfiguration
public void setValidationFactory(Object factory)
OpenJPAConfiguration
null
.
setValidationFactory
in interface OpenJPAConfiguration
public Object getValidatorInstance()
OpenJPAConfiguration
null
.
getValidatorInstance
in interface OpenJPAConfiguration
public void setValidatorInstance(Object val)
OpenJPAConfiguration
null
.
setValidatorInstance
in interface OpenJPAConfiguration
public String getLifecycleEventManager()
OpenJPAConfiguration
getLifecycleEventManager
in interface OpenJPAConfiguration
public LifecycleEventManager getLifecycleEventManagerInstance()
OpenJPAConfiguration
getLifecycleEventManagerInstance
in interface OpenJPAConfiguration
public void setLifecycleEventManager(String lem)
OpenJPAConfiguration
setLifecycleEventManager
in interface OpenJPAConfiguration
public boolean getDynamicEnhancementAgent()
OpenJPAConfiguration
getDynamicEnhancementAgent
in interface OpenJPAConfiguration
public void setDynamicEnhancementAgent(boolean dynamic)
OpenJPAConfiguration
setDynamicEnhancementAgent
in interface OpenJPAConfiguration
public void setEncryptionProvider(String p)
OpenJPAConfiguration
EncryptionProvider
.
setEncryptionProvider
in interface OpenJPAConfiguration
public EncryptionProvider getEncryptionProvider()
OpenJPAConfiguration
EncryptionProvider
.
getEncryptionProvider
in interface OpenJPAConfiguration
public void setDataCacheMode(String mode)
OpenJPAConfiguration
DataCacheMode
setDataCacheMode
in interface OpenJPAConfiguration
mode
- One of the Sting constants from DataCacheMode
public String getDataCacheMode()
OpenJPAConfiguration
DataCacheMode
getDataCacheMode
in interface OpenJPAConfiguration
public String getCacheDistributionPolicy()
OpenJPAConfiguration
getCacheDistributionPolicy
in interface OpenJPAConfiguration
CacheDistributionPolicy
.public CacheDistributionPolicy getCacheDistributionPolicyInstance()
OpenJPAConfiguration
getCacheDistributionPolicyInstance
in interface OpenJPAConfiguration
CacheDistributionPolicy
.public void setCacheDistributionPolicy(String policyPlugin)
OpenJPAConfiguration
setCacheDistributionPolicy
in interface OpenJPAConfiguration
public void setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
OpenJPAConfiguration
setCacheDistributionPolicyInstance
in interface OpenJPAConfiguration
policy
- a non-null implementation of CacheDistributionPolicy
.public void setPersistenceEnvironment(Map<String,Object> peMap)
public Map<String,Object> getPersistenceEnvironment()
public Auditor getAuditorInstance()
OpenJPAConfiguration
Auditor
associated with this configuration.
getAuditorInstance
in interface OpenJPAConfiguration
public void setAuditorInstance(Auditor auditor)
OpenJPAConfiguration
Auditor
associated with this configuration.
setAuditorInstance
in interface OpenJPAConfiguration
public String getAuditor()
OpenJPAConfiguration
Auditor
specified in this configuration.
getAuditor
in interface OpenJPAConfiguration
public void setAuditor(String auditor)
OpenJPAConfiguration
Auditor
specified in this configuration.
setAuditor
in interface OpenJPAConfiguration
public boolean getPostLoadOnMerge()
OpenJPAConfiguration
getPostLoadOnMerge
in interface OpenJPAConfiguration
public void setPostLoadOnMerge(boolean postLoadOnMerge)
OpenJPAConfiguration
setPostLoadOnMerge
in interface OpenJPAConfiguration
public void setPostLoadOnMerge(Boolean postLoadOnMerge)
OpenJPAConfiguration
setPostLoadOnMerge
in interface OpenJPAConfiguration
public boolean getOptimizeIdCopy()
OpenJPAConfiguration
getOptimizeIdCopy
in interface OpenJPAConfiguration
public void setOptimizeIdCopy(boolean optimizeId)
OpenJPAConfiguration
setOptimizeIdCopy
in interface OpenJPAConfiguration
public 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 |