|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OpenJPAConfiguration
Defines the properties necessary to configure runtime properties and
connect to a data source. There is a 1-1 relation between a configuration
and a BrokerFactory
.
All setter methods that take primitive parameters also have wrapper
setter with the appropriate primitive wrapper. This is so the interface
can be in accordance with the J2EE Connector Architecture.
Configuration
Field Summary | |
---|---|
static String |
LOG_DATACACHE
Name of logger for messages from the data cache: openjpa.DataCache . |
static String |
LOG_ENHANCE
Name of logger for enhancement-related messages: openjpa.Enhance . |
static String |
LOG_METADATA
Name of logger for metadata-related messages: openjpa.MetaData . |
static String |
LOG_QUERY
Name of logger for query logging: openjpa.Query . |
static String |
LOG_RUNTIME
Name of logger for messages from the runtime system: openjpa.Runtime . |
static String |
LOG_TOOL
Name of logger for messages from the development tools: openjpa.Tool . |
static String |
OPTION_DATASTORE_CONNECTION
Option for runtimes that support returning the datastore connection. |
static String |
OPTION_EMBEDDED_COLLECTION_RELATION
Option for runtimes that support collections of embedded relations to other persistence capable objects. |
static String |
OPTION_EMBEDDED_MAP_RELATION
Option for runtimes that support maps of embedded relations to other persistence capable objects. |
static String |
OPTION_EMBEDDED_RELATION
Option for runtimes that support embedded relations to other persistence capable objects. |
static String |
OPTION_ID_APPLICATION
Option for runtimes that support application identity. |
static String |
OPTION_ID_DATASTORE
Option for runtimes that support application identity. |
static String |
OPTION_INC_FLUSH
Option for runtimes that support incremental flushing. |
static String |
OPTION_JDBC_CONNECTION
Option for runtimes that support returning the datastore connection that is a JDBC Connection. |
static String |
OPTION_NONTRANS_READ
Option for runtimes that support nontransactional reads. |
static String |
OPTION_NULL_CONTAINER
Option for runtime that can differentiate between null and empty container fields. |
static String |
OPTION_OPTIMISTIC
Option for runtimes that support optimistic transactions. |
static String |
OPTION_QUERY_SQL
Option for SQL support. |
static String |
OPTION_TYPE_ARRAY
Option for runtimes that support persistent array fields. |
static String |
OPTION_TYPE_COLLECTION
Option for runtimes that support persistent collection fields. |
static String |
OPTION_TYPE_MAP
Option for runtimes that support persistent map fields. |
static String |
OPTION_VALUE_AUTOASSIGN
Option for runtimes that the autoassign value strategy. |
static String |
OPTION_VALUE_INCREMENT
Option for runtimes that the increment value strategy. |
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 |
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. |
Map |
getCacheMarshallerInstances()
Return the cache marshaller listeners. |
String |
getCacheMarshallers()
A comma-separted list of the plugin strings specifying the CacheMarshaller s to use. |
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. |
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. |
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. |
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 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. |
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. |
void |
setAggregateListeners(AggregateListener[] listeners)
Set the query function listeners. |
void |
setAggregateListeners(String listeners)
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 flags)
The AutoDetach flags. |
void |
setAutoDetach(String detach)
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 |
setCacheMarshallers(String marshallers)
A comma-separted list of the plugin strings specifying the CacheMarshaller s to use. |
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 connectionPassword)
The password for the non-XA data store connection. |
void |
setConnection2Properties(String props)
These properties provide any additional information needed to establish non-XA connections. |
void |
setConnection2URL(String connectionURL)
The URL for the non-XA data store connection. |
void |
setConnection2UserName(String connectionUserName)
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 cf2Name)
The name for the second data store connection factory. |
void |
setConnectionFactory2Properties(String props)
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 cfName)
The name for the data store connection factory. |
void |
setConnectionFactoryProperties(String props)
Configuration properties for the connection factory. |
void |
setConnectionPassword(String connectionPassword)
The password for the data store connection. |
void |
setConnectionProperties(String props)
These properties provide any additional information needed to establish connections. |
void |
setConnectionRetainMode(int mode)
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 mode)
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 manager)
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 timeout)
Default data cache timeout. |
void |
setDataCacheTimeout(Integer timeout)
Wrapper for JCA usage of 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 setDynamicDataStructs(boolean) . |
void |
setFetchBatchSize(int size)
Set the size of the batch that will be pre-selected when accessing elements in a query or relationship. |
void |
setFetchBatchSize(Integer size)
Wrapper for JCA usage of setFetchBatchSize(int) . |
void |
setFetchGroups(String groups)
Comma-separated list of fetch group names that will be pre-set for all new FetchConfiguration s. |
void |
setFetchGroups(String[] names)
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 listeners)
A comma-separted list of the plugin strings of the query FilterListener s to use. |
void |
setFlushBeforeQueries(int flushBeforeQueries)
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 setIgnoreChanges(boolean) . |
void |
setInverseManager(String inverse)
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 setLockTimeout(int) . |
void |
setManagedRuntime(ManagedRuntime runtime)
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 depth)
The maximum relation depth to traverse when eager fetching. |
void |
setMaxFetchDepth(Integer size)
Wrapper for JCA usage of setMaxFetchDepth(int) . |
void |
setMetaDataFactory(String meta)
A plugin string describing the MetaDataFactory to use. |
void |
setMetaDataRepository(MetaDataRepository mdRepos)
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 setMultithreaded(boolean) . |
void |
setNontransactionalRead(boolean ntRead)
Whether persistent state is accessible outside a transaction by default. |
void |
setNontransactionalRead(Boolean ntRead)
Wrapper for JCA usage of setNontransactionalRead(boolean) . |
void |
setNontransactionalWrite(boolean ntWrite)
Whether persistent state can be modified outside a transaction by default. |
void |
setNontransactionalWrite(Boolean ntWrite)
Wrapper for JCA usage of setNontransactionalWrite(boolean) . |
void |
setOptimistic(boolean optimistic)
Whether to use optimistic transactions by default. |
void |
setOptimistic(Boolean optimistic)
Wrapper for JCA usage of 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 manager)
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 conf)
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 manager)
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 setRetainState(boolean) . |
void |
setRetryClassRegistration(boolean warn)
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed. |
void |
setRetryClassRegistration(Boolean warn)
Wrapper for JCA usage of 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 sequence)
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 mode)
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 interface org.apache.openjpa.lib.conf.Configuration |
---|
addPropertyChangeListener, addValue, clone, close, fromProperties, getConfigurationLog, getId, getLog, getLog, getLogFactory, getProductName, getValue, getValues, instantiateAll, 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 |
---|
static final String LOG_METADATA
openjpa.MetaData
.
static final String LOG_ENHANCE
openjpa.Enhance
.
static final String LOG_RUNTIME
openjpa.Runtime
.
static final String LOG_QUERY
openjpa.Query
.
static final String LOG_DATACACHE
openjpa.DataCache
.
static final String LOG_TOOL
openjpa.Tool
.
static final String OPTION_NONTRANS_READ
static final String OPTION_OPTIMISTIC
static final String OPTION_ID_APPLICATION
static final String OPTION_ID_DATASTORE
static final String OPTION_QUERY_SQL
static final String OPTION_TYPE_COLLECTION
static final String OPTION_TYPE_MAP
static final String OPTION_TYPE_ARRAY
static final String OPTION_NULL_CONTAINER
static final String OPTION_EMBEDDED_RELATION
static final String OPTION_EMBEDDED_COLLECTION_RELATION
static final String OPTION_EMBEDDED_MAP_RELATION
static final String OPTION_INC_FLUSH
static final String OPTION_VALUE_AUTOASSIGN
static final String OPTION_VALUE_INCREMENT
static final String OPTION_DATASTORE_CONNECTION
static final String OPTION_JDBC_CONNECTION
Method Detail |
---|
Collection supportedOptions()
String getSpecification()
boolean setSpecification(String spec)
String getClassResolver()
ClassResolver
to use for custom
class loading.
void setClassResolver(String classResolver)
ClassResolver
to use for custom
class loading.
ClassResolver getClassResolverInstance()
ClassResolver
to use.
void setClassResolver(ClassResolver classResolver)
ClassResolver
to use.
String getBrokerFactory()
BrokerFactory
class to use.
void setBrokerFactory(String factory)
BrokerFactory
class to use.
String getBrokerImpl()
BrokerImpl
extension to create.
void setBrokerImpl(String broker)
BrokerImpl
extension to create.
BrokerImpl newBrokerInstance(String user, String pass)
String getDataCache()
DataCache
to use for level-2 data store caching.
void setDataCache(String dataCache)
DataCache
to use for level-2 data store caching.
String getDataCacheManager()
void setDataCacheManager(String mgr)
DataCacheManager getDataCacheManagerInstance()
void setDataCacheManager(DataCacheManager manager)
int getDataCacheTimeout()
void setDataCacheTimeout(int timeout)
void setDataCacheTimeout(Integer timeout)
setDataCacheTimeout(int)
.
String getQueryCache()
void setQueryCache(String queryCache)
boolean getDynamicDataStructs()
void setDynamicDataStructs(boolean dynamic)
void setDynamicDataStructs(Boolean dynamic)
setDynamicDataStructs(boolean)
.
String getLockManager()
void setLockManager(String lockManager)
LockManager newLockManagerInstance()
String getInverseManager()
void setInverseManager(String inverse)
InverseManager newInverseManagerInstance()
String getSavepointManager()
void setSavepointManager(String savepointManager)
SavepointManager getSavepointManagerInstance()
String getOrphanedKeyAction()
void setOrphanedKeyAction(String action)
OrphanedKeyAction getOrphanedKeyActionInstance()
void setOrphanedKeyAction(OrphanedKeyAction action)
String getRemoteCommitProvider()
void setRemoteCommitProvider(String remoteCommitProvider)
RemoteCommitProvider newRemoteCommitProviderInstance()
RemoteCommitEventManager getRemoteCommitEventManager()
void setRemoteCommitEventManager(RemoteCommitEventManager manager)
String getTransactionMode()
local
: Perform transaction operations locally.managed
: Use managed environment's global
transactions.
void setTransactionMode(String mode)
local
: Perform transaction operations locally.managed
: Use managed environment's global
transactions.
boolean isTransactionModeManaged()
void setTransactionModeManaged(boolean managed)
String getManagedRuntime()
ManagedRuntime
to use for managed
environments.
void setManagedRuntime(String managedRuntime)
ManagedRuntime
to use for managed
environments.
ManagedRuntime getManagedRuntimeInstance()
void setManagedRuntime(ManagedRuntime runtime)
String getProxyManager()
ProxyManager
to use for second
class object proxies.
void setProxyManager(String proxyManager)
ProxyManager
to use for second
class object proxies.
ProxyManager getProxyManagerInstance()
ProxyManager
to use.
void setProxyManager(ProxyManager manager)
ProxyManager
to use.
String getMapping()
void setMapping(String mapping)
String getMetaDataFactory()
MetaDataFactory
to use.
void setMetaDataFactory(String meta)
MetaDataFactory
to use.
MetaDataFactory newMetaDataFactoryInstance()
MetaDataFactory
to use with a repository.
String getMetaDataRepository()
MetaDataRepository
to use.
void setMetaDataRepository(String meta)
MetaDataRepository
to use.
MetaDataRepository getMetaDataRepositoryInstance()
boolean metaDataRepositoryAvailable()
MetaDataRepository newMetaDataRepositoryInstance()
void setMetaDataRepository(MetaDataRepository mdRepos)
String getConnectionUserName()
void setConnectionUserName(String connectionUserName)
String getConnectionPassword()
void setConnectionPassword(String connectionPassword)
String getConnectionURL()
void setConnectionURL(String connectionURL)
String getConnectionDriverName()
void setConnectionDriverName(String driverName)
String getConnectionFactoryName()
void setConnectionFactoryName(String cfName)
Object getConnectionFactory()
void setConnectionFactory(Object factory)
String getConnectionProperties()
void setConnectionProperties(String props)
String getConnectionFactoryProperties()
void setConnectionFactoryProperties(String props)
String getConnectionFactoryMode()
void setConnectionFactoryMode(String mode)
boolean isConnectionFactoryModeManaged()
void setConnectionFactoryModeManaged(boolean managed)
String getConnection2UserName()
void setConnection2UserName(String connectionUserName)
String getConnection2Password()
void setConnection2Password(String connectionPassword)
String getConnection2URL()
void setConnection2URL(String connectionURL)
String getConnection2DriverName()
void setConnection2DriverName(String driverName)
String getConnectionFactory2Name()
void setConnectionFactory2Name(String cf2Name)
Object getConnectionFactory2()
void setConnectionFactory2(Object factory)
String getConnection2Properties()
void setConnection2Properties(String props)
String getConnectionFactory2Properties()
void setConnectionFactory2Properties(String props)
boolean getOptimistic()
void setOptimistic(boolean optimistic)
void setOptimistic(Boolean optimistic)
setOptimistic(boolean)
.
boolean getRetainState()
void setRetainState(boolean retainState)
void setRetainState(Boolean retainState)
setRetainState(boolean)
.
String getAutoClear()
void setAutoClear(String clear)
int getAutoClearConstant()
AutoClear
constant.
void setAutoClear(int clear)
String getRestoreState()
void setRestoreState(String restoreState)
int getRestoreStateConstant()
RestoreState
constant.
void setRestoreState(int restoreState)
boolean getIgnoreChanges()
void setIgnoreChanges(boolean ignoreChanges)
void setIgnoreChanges(Boolean ignoreChanges)
setIgnoreChanges(boolean)
.
String getAutoDetach()
commit
: When the current transaction commits.close
: When the broker closes.nontx-read
: When instances are read
non-transactionally.
void setAutoDetach(String detach)
commit
: When the current transaction commits.close
: When the broker closes.nontx-read
: When instances are read
non-transactionally.
int getAutoDetachConstant()
AutoDetach
flags.
void setAutoDetach(int flags)
AutoDetach
flags.
void setDetachState(String detachState)
DetachOptions getDetachStateInstance()
void setDetachState(DetachOptions detachState)
boolean getNontransactionalRead()
void setNontransactionalRead(boolean ntRead)
void setNontransactionalRead(Boolean ntRead)
setNontransactionalRead(boolean)
.
boolean getNontransactionalWrite()
void setNontransactionalWrite(boolean ntWrite)
void setNontransactionalWrite(Boolean ntWrite)
setNontransactionalWrite(boolean)
.
boolean getMultithreaded()
void setMultithreaded(boolean multithreaded)
void setMultithreaded(Boolean multithreaded)
setMultithreaded(boolean)
.
int getFetchBatchSize()
void setFetchBatchSize(int size)
void setFetchBatchSize(Integer size)
setFetchBatchSize(int)
.
int getMaxFetchDepth()
void setMaxFetchDepth(int depth)
void setMaxFetchDepth(Integer size)
setMaxFetchDepth(int)
.
String getFetchGroups()
FetchConfiguration
s.
void setFetchGroups(String groups)
FetchConfiguration
s.
String[] getFetchGroupsList()
FetchConfiguration
s.
void setFetchGroups(String[] names)
FetchConfiguration
s.
String getFlushBeforeQueries()
void setFlushBeforeQueries(String flush)
int getFlushBeforeQueriesConstant()
QueryFlushModes.FLUSH_TRUE
,
QueryFlushModes.FLUSH_FALSE
, or
QueryFlushModes.FLUSH_WITH_CONNECTION
, as determined
by parsing the string returned by getFlushBeforeQueries()
.
void setFlushBeforeQueries(int flushBeforeQueries)
QueryFlushModes.FLUSH_TRUE
,
QueryFlushModes.FLUSH_FALSE
, or
QueryFlushModes.FLUSH_WITH_CONNECTION
.
int getLockTimeout()
void setLockTimeout(int timeout)
void setLockTimeout(Integer timeout)
setLockTimeout(int)
.
String getReadLockLevel()
read
.
void setReadLockLevel(String level)
read
.
int getReadLockLevelConstant()
void setReadLockLevel(int level)
String getWriteLockLevel()
write
.
void setWriteLockLevel(String level)
write
.
int getWriteLockLevelConstant()
void setWriteLockLevel(int level)
String getSequence()
Seq
.
void setSequence(String sequence)
Seq
.
Seq getSequenceInstance()
void setSequence(Seq sequence)
String getConnectionRetainMode()
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.
void setConnectionRetainMode(String mode)
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.
int getConnectionRetainModeConstant()
ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
void setConnectionRetainMode(int mode)
ConnectionRetainModes.CONN_RETAIN_ALWAYS
ConnectionRetainModes.CONN_RETAIN_TRANS
ConnectionRetainModes.CONN_RETAIN_DEMAND
String getFilterListeners()
FilterListener
s to use.
void setFilterListeners(String listeners)
FilterListener
s to use.
FilterListener[] getFilterListenerInstances()
void setFilterListeners(FilterListener[] listeners)
String getAggregateListeners()
AggregateListener
s to use.
void setAggregateListeners(String listeners)
AggregateListener
s to use.
AggregateListener[] getAggregateListenerInstances()
void setAggregateListeners(AggregateListener[] listeners)
boolean getRetryClassRegistration()
false
.
void setRetryClassRegistration(boolean warn)
false
.
void setRetryClassRegistration(Boolean warn)
setRetryClassRegistration(boolean)
.
String getCompatibility()
void setCompatibility(String compatibility)
Compatibility getCompatibilityInstance()
String getQueryCompilationCache()
QueryCompilationCacheValue
void setQueryCompilationCache(String conf)
QueryCompilationCacheValue
Map getQueryCompilationCacheInstance()
QueryCompilationCacheValue
StoreFacadeTypeRegistry getStoreFacadeTypeRegistry()
StoreFacadeTypeRegistry
instance associated with this
configuration.
BrokerFactoryEventManager getBrokerFactoryEventManager()
BrokerFactoryEventManager
associated with this configuration.
String getRuntimeUnenhancedClasses()
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.
void setRuntimeUnenhancedClasses(String mode)
#getRuntimeUnenhancedClasses()}
int getRuntimeUnenhancedClassesConstant()
RuntimeUnenhancedClasssesModes#SUPPORTED
RuntimeUnenhancedClasssesModes#UNSUPPORTED
RuntimeUnenhancedClasssesModes#WARN
void setRuntimeUnenhancedClasses(int mode)
RuntimeUnenhancedClasssesModes#SUPPORTED
RuntimeUnenhancedClasssesModes#UNSUPPORTED
RuntimeUnenhancedClasssesModes#WARN
String getCacheMarshallers()
CacheMarshaller
s to use.
void setCacheMarshallers(String marshallers)
CacheMarshaller
s to use.
Map getCacheMarshallerInstances()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |