public interface OpenJPAConfiguration extends Configuration
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
Modifier and Type | Field and Description |
---|---|
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_POSTLOAD_ON_MERGE
Option for enable fire @PostLoad events on merge operations
|
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_USE_TCCL_IN_SELECT_NEW
Option to enable TCCL if the result class for select new is not found
in the entities classloader
|
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.
|
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_INTERFACE, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE, ATTRIBUTE_XML, INIT_STATE_FREEZING, INIT_STATE_FROZEN, INIT_STATE_LIQUID
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
Modifier and Type | Method and Description |
---|---|
AggregateListener[] |
getAggregateListenerInstances()
Return the query function listeners.
|
String |
getAggregateListeners()
A comma-separted list of the plugin strings of the query
AggregateListener s to use. |
String |
getAuditor()
Gets the plug-in string of
Auditor specified in this configuration. |
Auditor |
getAuditorInstance()
Gets the singular instance of
Auditor associated with this configuration. |
String |
getAutoClear()
Whether instances clear their state when entering a transaction.
|
int |
getAutoClearConstant()
Return the
AutoClear constant. |
String |
getAutoDetach()
A comma-separated list of events which trigger auto-detachment
in place of managed states.
|
int |
getAutoDetachConstant()
The
AutoDetach flags. |
String |
getBrokerFactory()
The
BrokerFactory class to use. |
BrokerFactoryEventManager |
getBrokerFactoryEventManager()
Return the
BrokerFactoryEventManager
associated with this configuration. |
String |
getBrokerImpl()
The plugin string of the
BrokerImpl extension to create. |
String |
getCacheDistributionPolicy()
Gets the plug-in string that described the policy to distribute cached instances
across named partitions of L2 data cache.
|
CacheDistributionPolicy |
getCacheDistributionPolicyInstance()
Gets the policy object that determines distribution of cached instances
across named partitions of L2 data cache.
|
Map<String,CacheMarshaller> |
getCacheMarshallerInstances()
Return the cache marshaller listeners.
|
String |
getCacheMarshallers()
A comma-separted list of the plugin strings specifying the
CacheMarshaller s to use. |
String |
getCallbackOptions()
Options for configuring callbacks as a String.
|
CallbackOptions |
getCallbackOptionsInstance()
Options for configuring callbacks.
|
String |
getClassResolver()
The plugin string for the
ClassResolver to use for custom
class loading. |
ClassResolver |
getClassResolverInstance()
The
ClassResolver to use. |
String |
getCompatibility()
Backwards compatibility options.
|
Compatibility |
getCompatibilityInstance()
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.
|
String |
getDataCacheMode()
Return the String constant that matches the
DataCacheMode |
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.
|
boolean |
getDynamicEnhancementAgent()
Whether OpenJPA will attempt to dynamically load the enhancement agent.
|
EncryptionProvider |
getEncryptionProvider()
Gets the
EncryptionProvider . |
int |
getFetchBatchSize()
Get the size of the batch that will be pre-selected when accessing
elements in a query or relationship.
|
String |
getFetchGroups()
Comma-separated list of fetch group names that will be pre-set for
all new
FetchConfiguration s. |
String[] |
getFetchGroupsList()
List of fetch group names that will be pre-set for all new
FetchConfiguration s. |
FilterListener[] |
getFilterListenerInstances()
Return the query filter listeners.
|
String |
getFilterListeners()
A comma-separted list of the plugin strings of the query
FilterListener s to use. |
String |
getFinderCache()
Get the string configuration of the finder cache.
|
FinderCache |
getFinderCacheInstance()
Get the cache of finder queries.
|
String |
getFlushBeforeQueries()
Returns whether or not OpenJPA should automatically flush
modifications to the data store before executing queries.
|
int |
getFlushBeforeQueriesConstant()
Returns one of
QueryFlushModes.FLUSH_TRUE ,
QueryFlushModes.FLUSH_FALSE , or
QueryFlushModes.FLUSH_WITH_CONNECTION , as determined
by parsing the string returned by getFlushBeforeQueries() . |
boolean |
getIgnoreChanges()
Whether changes in the current transaction are taken into account when
executing queries and iterating extents.
|
String |
getInstrumentation()
Gets the plug-in string that defines instrumentation providers and what
they instrument.
|
InstrumentationManager |
getInstrumentationManagerInstance()
Gets an instance of the instrumentation manager.
|
String |
getInverseManager()
The plugin to use for managing inverse relations.
|
String |
getLifecycleEventManager()
Gets the lifecycle event manager instance classname.
|
LifecycleEventManager |
getLifecycleEventManagerInstance()
Gets the lifecycle event manager instance.
|
String |
getLockManager()
The plugin to use for datastore lock management.
|
int |
getLockTimeout()
The time to wait for an object lock in milliseconds, or -1 for no
timeout.
|
String |
getManagedRuntime()
The plugin string for the
ManagedRuntime to use for managed
environments. |
ManagedRuntime |
getManagedRuntimeInstance()
The plugin to use for integrating with a managed runtime.
|
String |
getMapping()
The name mapping to use for this data store.
|
int |
getMaxFetchDepth()
The maximum relation depth to traverse when eager fetching.
|
String |
getMetaDataFactory()
A plugin string describing the
MetaDataFactory to use. |
String |
getMetaDataRepository()
A plugin string describing the
MetaDataRepository to use. |
MetaDataRepository |
getMetaDataRepositoryInstance()
The metadata repository of managed class information.
|
boolean |
getMultithreaded()
Whether brokers or their managed objects will be used by multiple
concurrent threads.
|
boolean |
getNontransactionalRead()
Whether persistent state is accessible outside a transaction by default.
|
boolean |
getNontransactionalWrite()
Whether persistent state can be modified outside a transaction by
default.
|
boolean |
getOptimistic()
Whether to use optimistic transactions by default.
|
boolean |
getOptimizeIdCopy()
Whether to attempt to optimize id class copy operations during the
enhancement process.
|
String |
getOrphanedKeyAction()
The action to take when an orphaned key is detected.
|
OrphanedKeyAction |
getOrphanedKeyActionInstance()
The action to take when an orphaned key is detected.
|
boolean |
getPostLoadOnMerge()
Whether to send @PostLoad events on a merge operation.
|
String |
getProxyManager()
The plugin string for the
ProxyManager to use for second
class object proxies. |
ProxyManager |
getProxyManagerInstance()
The
ProxyManager to use. |
String |
getQueryCache()
The plugin to use for level-2 data store query caching.
|
String |
getQueryCompilationCache()
Configuration settings for the query compilation cache to use.
|
Map |
getQueryCompilationCacheInstance()
Configuration settings for the query compilation cache to use.
|
String |
getQuerySQLCache()
Gets the configuration of QuerySQLCache.
|
PreparedQueryCache |
getQuerySQLCacheInstance()
Return PreparedQueryCache used for caching datastore queries.
|
int |
getQueryTimeout()
The time to wait for a query to execute in milliseconds, or -1 for no
timeout.
|
String |
getReadLockLevel()
The default read lock level to use during non-optimistic transactions.
|
int |
getReadLockLevelConstant()
The numeric read lock level.
|
boolean |
getRefreshFromDataCache()
Gets whether entity state is to be refreshed from
DataCache . |
RemoteCommitEventManager |
getRemoteCommitEventManager()
The remote event manager that manages this configuration's remote
event listeners.
|
String |
getRemoteCommitProvider()
The plugin to use for remote commit notification.
|
String |
getRestoreState()
Whether to restore initial state on rollback by default.
|
int |
getRestoreStateConstant()
Return the
RestoreState constant. |
boolean |
getRetainState()
Whether to retain state after a transaction by default.
|
boolean |
getRetryClassRegistration()
Whether to warn and defer registration instead of throwing an
exception when a registered persistent class cannot be processed.
|
String |
getRuntimeUnenhancedClasses()
Specifies how OpenJPA handles unenhanced types.
|
int |
getRuntimeUnenhancedClassesConstant()
Return the runtime class optimization setting as one of the
following symbolic constants:
RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
|
String |
getSavepointManager()
The plugin to use for savepoint management.
|
SavepointManager |
getSavepointManagerInstance()
Return the configured savepoint manager instance.
|
String |
getSequence()
Plugin string for the default system
Seq . |
Seq |
getSequenceInstance()
The default system sequence.
|
String |
getSpecification()
Get a name of the Specification.
|
Specification |
getSpecificationInstance()
Get the Specification.
|
StoreFacadeTypeRegistry |
getStoreFacadeTypeRegistry()
Return the
StoreFacadeTypeRegistry instance associated with this
configuration. |
String |
getTransactionMode()
Specifies the behavior of the transaction model.
|
boolean |
getUseTCCLinSelectNew()
Indicates if the
Thread.contextClassLoader should be used
as fallback if the result class for select new is not found
by the classloader of the entity. |
Object |
getValidationFactoryInstance()
The ValidatorFactory provided by the container or application.
|
String |
getValidationGroupPrePersist()
Gets the validation groups for pre-persist
|
String |
getValidationGroupPreRemove()
Gets the validation groups for pre-remove
|
String |
getValidationGroupPreUpdate()
Gets the validation groups for pre-update
|
String |
getValidationMode()
The bean validation mode to use for managed classes.
|
Object |
getValidatorInstance()
The Validator provided by the container or created by the runtime.
|
String |
getWriteLockLevel()
The default write lock level to use during non-optimistic transactions.
|
int |
getWriteLockLevelConstant()
The numeric write lock level.
|
boolean |
isConnectionFactoryModeManaged()
Whether connections are automatically enlisted in global transactions.
|
boolean |
isInitializeEagerly()
Affirms if all configured elements are initialized eagerly as opposed
to lazily on-demand.
|
boolean |
isTransactionModeManaged()
Return whether managed transactions are being used.
|
boolean |
metaDataRepositoryAvailable()
Returns true if a metaDataRepository has been created for this
configuration.
|
BrokerImpl |
newBrokerInstance(String user,
String pass)
Create a new broker instance with the configured plugin data.
|
InverseManager |
newInverseManagerInstance()
Return a new inverse manager instance using the configured plugin
settings.
|
LockManager |
newLockManagerInstance()
Return a new lock manager instance using the configured plugin settings.
|
MetaDataFactory |
newMetaDataFactoryInstance()
Create a new
MetaDataFactory to use with a repository. |
MetaDataRepository |
newMetaDataRepositoryInstance()
Create a new empty metadata repository of the configured type.
|
RemoteCommitProvider |
newRemoteCommitProviderInstance()
Create a remote commit provider from the configured plugin.
|
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 |
setAuditor(String s)
Sets the plug-in string of
Auditor specified in this configuration. |
void |
setAuditorInstance(Auditor auditor)
Sets the singular instance of
Auditor associated with this configuration. |
void |
setAutoClear(int clear)
Whether instances clear their state when entering a transaction.
|
void |
setAutoClear(String clear)
Whether instances clear their state when entering a transaction.
|
void |
setAutoDetach(int 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 |
setCacheDistributionPolicy(String policyPlugin)
Sets the plug-in string that describes the policy to distribute cached instances
across named partitions of L2 data cache.
|
void |
setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
Sets the policy object that determines distribution of cached instances
across named partitions of L2 data cache.
|
void |
setCacheMarshallers(String marshallers)
A comma-separated list of the plugin strings specifying the
CacheMarshaller s to use. |
void |
setCallbackOptions(String options)
Options for configuring callbacks set as a comma-separated string value
pair.
|
void |
setClassResolver(ClassResolver classResolver)
The
ClassResolver to use. |
void |
setClassResolver(String classResolver)
The plugin string for the
ClassResolver to use for custom
class loading. |
void |
setCompatibility(String compatibility)
Backwards compatibility options.
|
void |
setConnection2DriverName(String driverName)
Class name of the non-XA connection driver.
|
void |
setConnection2Password(String 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 |
setDataCacheMode(String mode)
Set the
DataCacheMode |
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 |
setDynamicEnhancementAgent(boolean dynamic)
Sets whether OpenJPA will attempt to dynamically load the enhancement
agent.
|
void |
setEncryptionProvider(String className)
Sets the
EncryptionProvider . |
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 |
setFinderCache(String cache)
Set the finder cache from a string configuration.
|
void |
setFlushBeforeQueries(int flushBeforeQueries)
|
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 |
setInitializeEagerly(boolean flag)
Sets whether all configured elements will be initialized eagerly or
lazily on-demand.
|
void |
setInstrumentation(String providers)
Sets the plug-in string that defines instrumentation providers and what
they instrument.
|
void |
setInverseManager(String inverse)
The plugin to use for managing inverse relations.
|
void |
setLifecycleEventManager(String eventMgr)
Sets the lifecycle event manager instance classname.
|
void |
setLockManager(String lockManager)
The plugin to use for datastore lock management.
|
void |
setLockTimeout(int timeout)
The time to wait for an object lock in milliseconds, or -1 for no
timeout.
|
void |
setLockTimeout(Integer timeout)
Wrapper for JCA usage of
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 |
setOptimizeIdCopy(boolean optimizeIds)
Whether to attempt to optimize id class copy operations during the
enhancement process.
|
void |
setOptimizeIdCopy(Boolean optimizeIds)
Whether to attempt to optimize id class copy operations during the
enhancement process.
|
void |
setOrphanedKeyAction(OrphanedKeyAction action)
The action to take when an orphaned key is detected.
|
void |
setOrphanedKeyAction(String action)
The action to take when an orphaned key is detected.
|
void |
setPostLoadOnMerge(boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation.
|
void |
setPostLoadOnMerge(Boolean postLoadOnMerge)
Whether to send @PostLoad events on a merge operation.
|
void |
setProxyManager(ProxyManager 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 |
setQuerySQLCache(PreparedQueryCache cache)
Sets QuerySQLCache with the given cache.
|
void |
setQuerySQLCache(String config)
Sets QuerySQLCache with the given configuration.
|
void |
setQueryTimeout(int timeout)
The time to wait for a query to execute in milliseconds, or -1 for no
timeout.
|
void |
setReadLockLevel(int level)
The numeric read lock level.
|
void |
setReadLockLevel(String level)
The default read lock level to use during non-optimistic transactions.
|
void |
setRefreshFromDataCache(boolean refreshFromDataCache)
Sets whether entity state is to be refreshed from
DataCache . |
void |
setRefreshFromDataCache(Boolean refreshFromDataCache)
Sets whether entity state is to be refreshed from
DataCache . |
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:
RuntimeUnenhancedClassesModes.SUPPORTED
RuntimeUnenhancedClassesModes.UNSUPPORTED
RuntimeUnenhancedClassesModes.WARN
|
void |
setRuntimeUnenhancedClasses(String mode)
Specifies how OpenJPA handles unenhanced types.
|
void |
setSavepointManager(String savepointManager)
The plugin to use for savepoint management.
|
void |
setSequence(Seq sequence)
The default system sequence.
|
void |
setSequence(String sequence)
Plugin string for the default system
Seq . |
void |
setSpecification(Specification spec)
Set the Specification for this configuration.
|
void |
setSpecification(String spec)
Set the Specification for this configuration.
|
void |
setTransactionMode(String mode)
Specifies the behavior of the transaction model.
|
void |
setTransactionModeManaged(boolean managed)
Set whether managed transactions are being used.
|
void |
setUseTCCLinSelectNew(boolean useTcclForSelectNew)
Indicates if the
Thread.contextClassLoader should be used
as fallback if the result class for select new is not found
by the classloader of the entity. |
void |
setUseTCCLinSelectNew(Boolean useTcclForSelectNew)
Indicates if the
Thread.contextClassLoader should be used
as fallback if the result class for select new is not found
by the classloader of the entity. |
void |
setValidationFactory(Object factory)
Set the container or application provided ValidatorFactory instance.
|
void |
setValidationGroupPrePersist(String vgPrePersist)
Sets the validation groups for pre-persist
|
void |
setValidationGroupPreRemove(String vgPreRemove)
Sets the validation groups for pre-remove
|
void |
setValidationGroupPreUpdate(String vgPreUpdate)
Sets the validation groups for pre-update
|
void |
setValidationMode(String mode)
Set the bean validation mode to use for managed classes.
|
void |
setValidatorInstance(Object val)
Set the container or application provided Validator instance.
|
void |
setWriteLockLevel(int level)
The numeric write lock level.
|
void |
setWriteLockLevel(String level)
The default write lock level to use during non-optimistic transactions.
|
Collection<String> |
supportedOptions()
Return the set of option strings supported by this runtime.
|
addPropertyChangeListener, addValue, clone, close, fromProperties, getConfigurationLog, getId, getLog, getLog, getLogFactory, getProductName, getPropertyKeys, getPropertyKeys, getUserClassLoader, getValue, getValues, instantiateAll, isReadOnly, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setReadOnly, setUserClassLoader, toProperties
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors
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
static final String OPTION_POSTLOAD_ON_MERGE
static final String OPTION_USE_TCCL_IN_SELECT_NEW
Collection<String> supportedOptions()
String getSpecification()
Specification getSpecificationInstance()
void setSpecification(String spec)
compatibility
options during runtime.
This change will trigger all registered Product Derivations to mutate
other configuration properties.spec
- fullname of the specification that possibly encodes major and
minor version information. For encoding formatSpecification
void setSpecification(Specification spec)
compatibility
options during runtime.
This change will trigger all registered Product Derivations to mutate
other configuration properties.spec
- fullname of the specification that possibly encodes major and
minor version information. For encoding formatSpecification
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)
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)
.boolean getRefreshFromDataCache()
DataCache
.
The entities are never refreshed from DataCache if lock is being applied
(e.g. in a pessimistic transaction) and hence this setting only refers
to behavior when not locking.
This flag can be used to overwrite RetrieveMode.BYPASS.
By default, however, this falg is false.void setRefreshFromDataCache(boolean refreshFromDataCache)
DataCache
.
The entities are never refreshed from DataCache if lock is being applied
(e.g. in a pessimistic transaction) and hence this setting only refers
to behavior when not locking.void setRefreshFromDataCache(Boolean refreshFromDataCache)
DataCache
.
The entities are never refreshed from DataCache if lock is being applied
(e.g. in a pessimistic transaction) and hence this setting only refers
to behavior when not locking.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)
.int getQueryTimeout()
void setQueryTimeout(int timeout)
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)
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()
void setConnectionRetainMode(int mode)
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 getCallbackOptions()
CallbackOptions getCallbackOptionsInstance()
void setCallbackOptions(String options)
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()
void setRuntimeUnenhancedClasses(int mode)
boolean getDynamicEnhancementAgent()
void setDynamicEnhancementAgent(boolean dynamic)
String getCacheMarshallers()
CacheMarshaller
s to use.void setCacheMarshallers(String marshallers)
CacheMarshaller
s to use.Map<String,CacheMarshaller> getCacheMarshallerInstances()
boolean isInitializeEagerly()
void setInitializeEagerly(boolean flag)
PreparedQueryCache getQuerySQLCacheInstance()
String getQuerySQLCache()
void setQuerySQLCache(PreparedQueryCache cache)
void setQuerySQLCache(String config)
FinderCache getFinderCacheInstance()
String getFinderCache()
void setFinderCache(String cache)
String getValidationMode()
AUTO
.void setValidationMode(String mode)
AUTO
.Object getValidationFactoryInstance()
null
.void setValidationFactory(Object factory)
null
.Object getValidatorInstance()
null
.void setValidatorInstance(Object val)
null
.String getLifecycleEventManager()
LifecycleEventManager getLifecycleEventManagerInstance()
void setLifecycleEventManager(String eventMgr)
String getValidationGroupPrePersist()
void setValidationGroupPrePersist(String vgPrePersist)
String getValidationGroupPreUpdate()
void setValidationGroupPreUpdate(String vgPreUpdate)
String getValidationGroupPreRemove()
void setValidationGroupPreRemove(String vgPreRemove)
void setEncryptionProvider(String className)
EncryptionProvider
.EncryptionProvider getEncryptionProvider()
EncryptionProvider
.void setDataCacheMode(String mode)
DataCacheMode
mode
- One of the Sting constants from DataCacheMode
String getDataCacheMode()
DataCacheMode
CacheDistributionPolicy getCacheDistributionPolicyInstance()
CacheDistributionPolicy
.void setCacheDistributionPolicyInstance(CacheDistributionPolicy policy)
policy
- a non-null implementation of CacheDistributionPolicy
.String getCacheDistributionPolicy()
CacheDistributionPolicy
.void setCacheDistributionPolicy(String policyPlugin)
a
- plug-in string for CacheDistributionPolicy
.String getInstrumentation()
void setInstrumentation(String providers)
providers
- a plug-in string for the instrumentation configurationInstrumentationManager getInstrumentationManagerInstance()
Auditor getAuditorInstance()
Auditor
associated with this configuration.void setAuditorInstance(Auditor auditor)
Auditor
associated with this configuration.String getAuditor()
Auditor
specified in this configuration.void setAuditor(String s)
Auditor
specified in this configuration.boolean getPostLoadOnMerge()
void setPostLoadOnMerge(boolean postLoadOnMerge)
void setPostLoadOnMerge(Boolean postLoadOnMerge)
boolean getOptimizeIdCopy()
void setOptimizeIdCopy(boolean optimizeIds)
void setOptimizeIdCopy(Boolean optimizeIds)
boolean getUseTCCLinSelectNew()
Thread.contextClassLoader
should be used
as fallback if the result class for select new
is not found
by the classloader of the entity.void setUseTCCLinSelectNew(boolean useTcclForSelectNew)
Thread.contextClassLoader
should be used
as fallback if the result class for select new
is not found
by the classloader of the entity.void setUseTCCLinSelectNew(Boolean useTcclForSelectNew)
Thread.contextClassLoader
should be used
as fallback if the result class for select new
is not found
by the classloader of the entity.Copyright © 2006–2017 Apache Software Foundation. All rights reserved.