|
||||||||||
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 |
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 |
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 |
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()
Backwards compatibility options. |
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. |
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. |
Value[] |
getDynamicValues()
Gets the values that can be modified dynamically i.e. |
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 |
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 |
getInverseManager()
The plugin to use for managing inverse relations. |
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. |
String |
getOrphanedKeyAction()
The action to take when an orphaned key is detected. |
OrphanedKeyAction |
getOrphanedKeyActionInstance()
The action to take when an orphaned key is detected. |
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 |
getReadLockLevel()
The default read lock level to use during non-optimistic transactions. |
int |
getReadLockLevelConstant()
The numeric read lock level. |
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: RuntimeUnenhancedClasssesModes#SUPPORTED
RuntimeUnenhancedClasssesModes#UNSUPPORTED
RuntimeUnenhancedClasssesModes#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()
A configuration can be set with defaults for a specific specification. |
StoreFacadeTypeRegistry |
getStoreFacadeTypeRegistry()
Return the StoreFacadeTypeRegistry instance associated with this
configuration. |
String |
getTransactionMode()
Specifies the behavior of the transaction model. |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
setInverseManager(String inverseManager)
The plugin to use for managing inverse relations. |
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 |
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 |
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 |
setReadLockLevel(int level)
The numeric read lock level. |
void |
setReadLockLevel(String level)
The default read lock level to use during non-optimistic transactions. |
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: RuntimeUnenhancedClasssesModes#SUPPORTED
RuntimeUnenhancedClasssesModes#UNSUPPORTED
RuntimeUnenhancedClasssesModes#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 . |
boolean |
setSpecification(String spec)
Set the specification that this configuration should use for the various properties that need to have different defaults for different spec environments. |
void |
setTransactionMode(String transactionMode)
Specifies the behavior of the transaction model. |
void |
setTransactionModeManaged(boolean managed)
Set whether managed transactions are being used. |
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 |
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, getValue, getValues, isDynamic, isReadOnly, modifyDynamic, 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 ObjectValue brokerPlugin
public ObjectValue dataCachePlugin
public ObjectValue dataCacheManagerPlugin
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 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 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 multithreaded
public StringValue mapping
public PluginValue metaFactoryPlugin
public ObjectValue metaRepositoryPlugin
public ObjectValue lockManagerPlugin
public ObjectValue inverseManagerPlugin
public ObjectValue savepointManagerPlugin
public ObjectValue orphanedKeyPlugin
public ObjectValue compatibilityPlugin
public QueryCompilationCacheValue queryCompilationCachePlugin
public IntValue runtimeUnenhancedClasses
public BrokerFactoryValue brokerFactoryPlugin
public RemoteCommitProviderValue remoteProviderPlugin
public org.apache.openjpa.conf.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 supportedOptions()
OpenJPAConfiguration
supportedOptions
in interface OpenJPAConfiguration
public String getSpecification()
OpenJPAConfiguration
getSpecification
in interface OpenJPAConfiguration
public boolean setSpecification(String spec)
OpenJPAConfiguration
setSpecification
in interface OpenJPAConfiguration
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 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 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()
OpenJPAConfiguration
getCompatibilityInstance
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
RuntimeUnenhancedClasssesModes#SUPPORTED
RuntimeUnenhancedClasssesModes#UNSUPPORTED
RuntimeUnenhancedClasssesModes#WARN
getRuntimeUnenhancedClassesConstant
in interface OpenJPAConfiguration
public void setRuntimeUnenhancedClasses(int mode)
OpenJPAConfiguration
RuntimeUnenhancedClasssesModes#SUPPORTED
RuntimeUnenhancedClasssesModes#UNSUPPORTED
RuntimeUnenhancedClasssesModes#WARN
setRuntimeUnenhancedClasses
in interface OpenJPAConfiguration
public void setRuntimeUnenhancedClasses(String mode)
OpenJPAConfiguration
setRuntimeUnenhancedClasses
in interface OpenJPAConfiguration
#getRuntimeUnenhancedClasses()}
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 Value[] getDynamicValues()
Configuration
frozen
.
getDynamicValues
in interface Configuration
getDynamicValues
in class ConfigurationImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |