Java Doc for OpenJPAConfiguration.java in  » Database-ORM » openjpa » org » apache » openjpa » conf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » openjpa » org.apache.openjpa.conf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.openjpa.conf.OpenJPAConfiguration

All known Subclasses:   org.apache.openjpa.conf.OpenJPAConfigurationImpl,
OpenJPAConfiguration
public interface OpenJPAConfiguration extends Configuration(Code)
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.
author:
   Marc Prud'hommeaux
author:
   Abe White
See Also:   Configuration


Field Summary
final public static  StringLOG_DATACACHE
     Name of logger for messages from the data cache: openjpa.DataCache.
final public static  StringLOG_ENHANCE
     Name of logger for enhancement-related messages: openjpa.Enhance.
final public static  StringLOG_METADATA
     Name of logger for metadata-related messages: openjpa.MetaData.
final public static  StringLOG_QUERY
     Name of logger for query logging: openjpa.Query.
final public static  StringLOG_RUNTIME
     Name of logger for messages from the runtime system: openjpa.Runtime.
final public static  StringLOG_TOOL
     Name of logger for messages from the development tools: openjpa.Tool.
final public static  StringOPTION_DATASTORE_CONNECTION
     Option for runtimes that support returning the datastore connection.
final public static  StringOPTION_EMBEDDED_COLLECTION_RELATION
     Option for runtimes that support collections of embedded relations to other persistence capable objects.
final public static  StringOPTION_EMBEDDED_MAP_RELATION
     Option for runtimes that support maps of embedded relations to other persistence capable objects.
final public static  StringOPTION_EMBEDDED_RELATION
     Option for runtimes that support embedded relations to other persistence capable objects.
final public static  StringOPTION_ID_APPLICATION
     Option for runtimes that support application identity.
final public static  StringOPTION_ID_DATASTORE
     Option for runtimes that support application identity.
final public static  StringOPTION_INC_FLUSH
     Option for runtimes that support incremental flushing.
final public static  StringOPTION_JDBC_CONNECTION
     Option for runtimes that support returning the datastore connection that is a JDBC Connection.
final public static  StringOPTION_NONTRANS_READ
     Option for runtimes that support nontransactional reads.
final public static  StringOPTION_NULL_CONTAINER
     Option for runtime that can differentiate between null and empty container fields.
final public static  StringOPTION_OPTIMISTIC
     Option for runtimes that support optimistic transactions.
final public static  StringOPTION_QUERY_SQL
     Option for SQL support.
final public static  StringOPTION_TYPE_ARRAY
     Option for runtimes that support persistent array fields.
final public static  StringOPTION_TYPE_COLLECTION
     Option for runtimes that support persistent collection fields.
final public static  StringOPTION_TYPE_MAP
     Option for runtimes that support persistent map fields.
final public static  StringOPTION_VALUE_AUTOASSIGN
     Option for runtimes that the autoassign value strategy.
final public static  StringOPTION_VALUE_INCREMENT
     Option for runtimes that the increment value strategy.


Method Summary
public  AggregateListener[]getAggregateListenerInstances()
     Return the query function listeners.
public  StringgetAggregateListeners()
     A comma-separted list of the plugin strings of the query AggregateListener s to use.
public  StringgetAutoClear()
     Whether instances clear their state when entering a transaction.
public  intgetAutoClearConstant()
     Return the AutoClear constant.
public  StringgetAutoDetach()
     A comma-separated list of events which trigger auto-detachment in place of managed states.
public  intgetAutoDetachConstant()
     The AutoDetach flags.
public  StringgetBrokerFactory()
     The BrokerFactory class to use.
public  BrokerFactoryEventManagergetBrokerFactoryEventManager()
     Return the org.apache.openjpa.event.BrokerFactoryEventManager associated with this configuration.
public  StringgetBrokerImpl()
     The plugin string of the BrokerImpl extension to create.
public  MapgetCacheMarshallerInstances()
     Return the cache marshaller listeners.
public  StringgetCacheMarshallers()
     A comma-separted list of the plugin strings specifying the CacheMarshaller s to use.
public  StringgetClassResolver()
     The plugin string for the ClassResolver to use for custom class loading.
public  ClassResolvergetClassResolverInstance()
     The ClassResolver to use.
public  StringgetCompatibility()
     Backwards compatibility options.
public  CompatibilitygetCompatibilityInstance()
     Backwards compatibility options.
public  StringgetConnection2DriverName()
     Class name of the non-XA connection driver.
public  StringgetConnection2Password()
     The password for the non-XA data store connection.
public  StringgetConnection2Properties()
     These properties provide any additional information needed to establish non-XA connections.
public  StringgetConnection2URL()
     The URL for the non-XA data store connection.
public  StringgetConnection2UserName()
     The user name for the non-XA data store connection.
public  StringgetConnectionDriverName()
     Class name of the connection driver.
public  ObjectgetConnectionFactory()
     The connection factory, possibly from JNDI.
public  ObjectgetConnectionFactory2()
     The non-XA connection factory.
public  StringgetConnectionFactory2Name()
     The name for the second data store connection factory.
public  StringgetConnectionFactory2Properties()
     Configuration properties for the non-XA connection factory.
public  StringgetConnectionFactoryMode()
     The mode of the connection factory in use.
public  StringgetConnectionFactoryName()
     The name for the data store connection factory.
public  StringgetConnectionFactoryProperties()
     Configuration properties for the connection factory.
public  StringgetConnectionPassword()
     The password for the data store connection.
public  StringgetConnectionProperties()
     These properties provide any additional information needed to establish connections.
public  StringgetConnectionRetainMode()
     Specifies the behavior of the broker with respect to data store connections.
public  intgetConnectionRetainModeConstant()
    
public  StringgetConnectionURL()
     The URL for the data store connection.
public  StringgetConnectionUserName()
     The user name for the data store connection.
public  StringgetDataCache()
     The DataCache to use for level-2 data store caching.
public  StringgetDataCacheManager()
     The data cache manager manages this configuration's cache instances.
public  DataCacheManagergetDataCacheManagerInstance()
     The data cache manager manages this configuration's cache instances. The cache manager is created if it has not been set.
public  intgetDataCacheTimeout()
     Default data cache timeout.
public  DetachOptionsgetDetachStateInstance()
     Return the instance specified by the detach state plugin.
public  booleangetDynamicDataStructs()
     Return whether to generate dynamic data structures where possible for cache and runtime usage.
public  intgetFetchBatchSize()
     Get the size of the batch that will be pre-selected when accessing elements in a query or relationship.
public  StringgetFetchGroups()
     Comma-separated list of fetch group names that will be pre-set for all new FetchConfiguration s.
public  String[]getFetchGroupsList()
     List of fetch group names that will be pre-set for all new FetchConfiguration s.
public  FilterListener[]getFilterListenerInstances()
     Return the query filter listeners.
public  StringgetFilterListeners()
     A comma-separted list of the plugin strings of the query FilterListener s to use.
public  StringgetFlushBeforeQueries()
     Returns whether or not OpenJPA should automatically flush modifications to the data store before executing queries.
public  intgetFlushBeforeQueriesConstant()
     Returns one of QueryFlushModes.FLUSH_TRUE , QueryFlushModes.FLUSH_FALSE , or QueryFlushModes.FLUSH_WITH_CONNECTION , as determined by parsing the string returned by OpenJPAConfiguration.getFlushBeforeQueries .
public  booleangetIgnoreChanges()
     Whether changes in the current transaction are taken into account when executing queries and iterating extents.
public  StringgetInverseManager()
     The plugin to use for managing inverse relations.
public  StringgetLockManager()
     The plugin to use for datastore lock management.
public  intgetLockTimeout()
     The time to wait for an object lock in milliseconds, or -1 for no timeout.
public  StringgetManagedRuntime()
     The plugin string for the ManagedRuntime to use for managed environments.
public  ManagedRuntimegetManagedRuntimeInstance()
     The plugin to use for integrating with a managed runtime.
public  StringgetMapping()
     The name mapping to use for this data store.
public  intgetMaxFetchDepth()
     The maximum relation depth to traverse when eager fetching.
public  StringgetMetaDataFactory()
     A plugin string describing the MetaDataFactory to use.
public  StringgetMetaDataRepository()
     A plugin string describing the MetaDataRepository to use.
public  MetaDataRepositorygetMetaDataRepositoryInstance()
     The metadata repository of managed class information.
public  booleangetMultithreaded()
     Whether brokers or their managed objects will be used by multiple concurrent threads.
public  booleangetNontransactionalRead()
     Whether persistent state is accessible outside a transaction by default.
public  booleangetNontransactionalWrite()
     Whether persistent state can be modified outside a transaction by default.
public  booleangetOptimistic()
     Whether to use optimistic transactions by default.
public  StringgetOrphanedKeyAction()
     The action to take when an orphaned key is detected.
public  OrphanedKeyActiongetOrphanedKeyActionInstance()
     The action to take when an orphaned key is detected.
public  StringgetProxyManager()
     The plugin string for the ProxyManager to use for second class object proxies.
public  ProxyManagergetProxyManagerInstance()
     The ProxyManager to use.
public  StringgetQueryCache()
     The plugin to use for level-2 data store query caching.
public  StringgetQueryCompilationCache()
     Configuration settings for the query compilation cache to use.
public  MapgetQueryCompilationCacheInstance()
     Configuration settings for the query compilation cache to use.
public  StringgetReadLockLevel()
     The default read lock level to use during non-optimistic transactions.
public  intgetReadLockLevelConstant()
     The numeric read lock level.
public  RemoteCommitEventManagergetRemoteCommitEventManager()
     The remote event manager that manages this configuration's remote event listeners.
public  StringgetRemoteCommitProvider()
     The plugin to use for remote commit notification.
public  StringgetRestoreState()
     Whether to restore initial state on rollback by default.
public  intgetRestoreStateConstant()
     Return the RestoreState constant.
public  booleangetRetainState()
     Whether to retain state after a transaction by default.
public  booleangetRetryClassRegistration()
     Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed.
public  StringgetRuntimeUnenhancedClasses()
     Specifies how OpenJPA handles unenhanced types.
public  intgetRuntimeUnenhancedClassesConstant()
    
public  StringgetSavepointManager()
     The plugin to use for savepoint management.
public  SavepointManagergetSavepointManagerInstance()
     Return the configured savepoint manager instance.
public  StringgetSequence()
     Plugin string for the default system Seq .
public  SeqgetSequenceInstance()
     The default system sequence.
public  StringgetSpecification()
     A configuration can be set with defaults for a specific specification.
public  StoreFacadeTypeRegistrygetStoreFacadeTypeRegistry()
     Return the StoreFacadeTypeRegistry instance associated with this configuration.
public  StringgetTransactionMode()
     Specifies the behavior of the transaction model.
public  StringgetWriteLockLevel()
     The default write lock level to use during non-optimistic transactions.
public  intgetWriteLockLevelConstant()
     The numeric write lock level.
public  booleanisConnectionFactoryModeManaged()
     Whether connections are automatically enlisted in global transactions.
public  booleanisTransactionModeManaged()
     Return whether managed transactions are being used.
public  booleanmetaDataRepositoryAvailable()
     Returns true if a metaDataRepository has been created for this configuration.
public  BrokerImplnewBrokerInstance(String user, String pass)
     Create a new broker instance with the configured plugin data.
public  InverseManagernewInverseManagerInstance()
     Return a new inverse manager instance using the configured plugin settings.
public  LockManagernewLockManagerInstance()
     Return a new lock manager instance using the configured plugin settings.
public  MetaDataFactorynewMetaDataFactoryInstance()
     Create a new MetaDataFactory to use with a repository.
public  MetaDataRepositorynewMetaDataRepositoryInstance()
     Create a new empty metadata repository of the configured type.
public  RemoteCommitProvidernewRemoteCommitProviderInstance()
     Create a remote commit provider from the configured plugin.
public  voidsetAggregateListeners(String listeners)
     A comma-separted list of the plugin strings of the query AggregateListener s to use.
public  voidsetAggregateListeners(AggregateListener[] listeners)
     Set the query function listeners.
public  voidsetAutoClear(String clear)
     Whether instances clear their state when entering a transaction.
public  voidsetAutoClear(int clear)
     Whether instances clear their state when entering a transaction.
public  voidsetAutoDetach(String detach)
     A comma-separated list of events which trigger auto-detachment in place of managed states.
public  voidsetAutoDetach(int flags)
     The AutoDetach flags.
public  voidsetBrokerFactory(String factory)
     The BrokerFactory class to use.
public  voidsetBrokerImpl(String broker)
     The plugin string of the BrokerImpl extension to create.
public  voidsetCacheMarshallers(String marshallers)
     A comma-separted list of the plugin strings specifying the CacheMarshaller s to use.
public  voidsetClassResolver(String classResolver)
     The plugin string for the ClassResolver to use for custom class loading.
public  voidsetClassResolver(ClassResolver classResolver)
     The ClassResolver to use.
public  voidsetCompatibility(String compatibility)
     Backwards compatibility options.
public  voidsetConnection2DriverName(String driverName)
     Class name of the non-XA connection driver.
public  voidsetConnection2Password(String connectionPassword)
     The password for the non-XA data store connection.
public  voidsetConnection2Properties(String props)
     These properties provide any additional information needed to establish non-XA connections.
public  voidsetConnection2URL(String connectionURL)
     The URL for the non-XA data store connection.
public  voidsetConnection2UserName(String connectionUserName)
     The user name for the non-XA data store connection.
public  voidsetConnectionDriverName(String driverName)
     Class name of the connection driver.
public  voidsetConnectionFactory(Object factory)
     The connection factory.
public  voidsetConnectionFactory2(Object factory)
     The non-XA connection factory.
public  voidsetConnectionFactory2Name(String cf2Name)
     The name for the second data store connection factory.
public  voidsetConnectionFactory2Properties(String props)
     Configuration properties for the non-XA connection factory.
public  voidsetConnectionFactoryMode(String mode)
     The mode of the connection factory in use.
public  voidsetConnectionFactoryModeManaged(boolean managed)
     Whether connections are automatically enlisted in global transactions.
public  voidsetConnectionFactoryName(String cfName)
     The name for the data store connection factory.
public  voidsetConnectionFactoryProperties(String props)
     Configuration properties for the connection factory.
public  voidsetConnectionPassword(String connectionPassword)
     The password for the data store connection.
public  voidsetConnectionProperties(String props)
     These properties provide any additional information needed to establish connections.
public  voidsetConnectionRetainMode(String mode)
     Specifies the behavior of the broker with respect to data store connections.
public  voidsetConnectionRetainMode(int mode)
    
public  voidsetConnectionURL(String connectionURL)
     The URL for the data store connection.
public  voidsetConnectionUserName(String connectionUserName)
     The user name for the data store connection.
public  voidsetDataCache(String dataCache)
     The DataCache to use for level-2 data store caching.
public  voidsetDataCacheManager(String mgr)
     The data cache manager manages this configuration's cache instances.
public  voidsetDataCacheManager(DataCacheManager manager)
     The data cache manager manages this configuration's cache instances.
public  voidsetDataCacheTimeout(int timeout)
     Default data cache timeout.
public  voidsetDataCacheTimeout(Integer timeout)
     Wrapper for JCA usage of OpenJPAConfiguration.setDataCacheTimeout(int) .
public  voidsetDetachState(String detachState)
     Which field values to include when detaching.
public  voidsetDetachState(DetachOptions detachState)
     Return the instance specified by the detach state plugin.
public  voidsetDynamicDataStructs(boolean dynamic)
     Set whether to generate dynamic data structures where possible for cache and runtime usage.
public  voidsetDynamicDataStructs(Boolean dynamic)
     Wrapper for JCA usage of OpenJPAConfiguration.setDynamicDataStructs(boolean) .
public  voidsetFetchBatchSize(int size)
     Set the size of the batch that will be pre-selected when accessing elements in a query or relationship.
public  voidsetFetchBatchSize(Integer size)
     Wrapper for JCA usage of OpenJPAConfiguration.setFetchBatchSize(int) .
public  voidsetFetchGroups(String groups)
     Comma-separated list of fetch group names that will be pre-set for all new FetchConfiguration s.
public  voidsetFetchGroups(String[] names)
     List of fetch group names that will be pre-set for all new FetchConfiguration s.
public  voidsetFilterListeners(String listeners)
     A comma-separted list of the plugin strings of the query FilterListener s to use.
public  voidsetFilterListeners(FilterListener[] listeners)
     Set the query filter listeners.
public  voidsetFlushBeforeQueries(String flush)
     Sets whether or not OpenJPA should automatically flush modifications to the data store before executing queries.
public  voidsetFlushBeforeQueries(int flushBeforeQueries)
     Set to one of QueryFlushModes.FLUSH_TRUE , QueryFlushModes.FLUSH_FALSE , or QueryFlushModes.FLUSH_WITH_CONNECTION .
public  voidsetIgnoreChanges(boolean ignoreChanges)
     Whether changes in the current transaction are taken into account when executing queries and iterating extents.
public  voidsetIgnoreChanges(Boolean ignoreChanges)
     Wrapper for JCA usage of OpenJPAConfiguration.setIgnoreChanges(boolean) .
public  voidsetInverseManager(String inverse)
     The plugin to use for managing inverse relations.
public  voidsetLockManager(String lockManager)
     The plugin to use for datastore lock management.
public  voidsetLockTimeout(int timeout)
     The time to wait for an object lock in milliseconds, or -1 for no timeout.
public  voidsetLockTimeout(Integer timeout)
     Wrapper for JCA usage of OpenJPAConfiguration.setLockTimeout(int) .
public  voidsetManagedRuntime(String managedRuntime)
     The plugin string for the ManagedRuntime to use for managed environments.
public  voidsetManagedRuntime(ManagedRuntime runtime)
     The plugin to use for integrating with a managed runtime.
public  voidsetMapping(String mapping)
     The name mapping to use for this data store.
public  voidsetMaxFetchDepth(int depth)
     The maximum relation depth to traverse when eager fetching.
public  voidsetMaxFetchDepth(Integer size)
     Wrapper for JCA usage of OpenJPAConfiguration.setMaxFetchDepth(int) .
public  voidsetMetaDataFactory(String meta)
     A plugin string describing the MetaDataFactory to use.
public  voidsetMetaDataRepository(String meta)
     A plugin string describing the MetaDataRepository to use.
public  voidsetMetaDataRepository(MetaDataRepository mdRepos)
     The metadata repository of managed class information.
public  voidsetMultithreaded(boolean multithreaded)
     Whether brokers or their managed objects will be used by multiple concurrent threads.
public  voidsetMultithreaded(Boolean multithreaded)
     Wrapper for JCA usage of OpenJPAConfiguration.setMultithreaded(boolean) .
public  voidsetNontransactionalRead(boolean ntRead)
     Whether persistent state is accessible outside a transaction by default.
public  voidsetNontransactionalRead(Boolean ntRead)
     Wrapper for JCA usage of OpenJPAConfiguration.setNontransactionalRead(boolean) .
public  voidsetNontransactionalWrite(boolean ntWrite)
     Whether persistent state can be modified outside a transaction by default.
public  voidsetNontransactionalWrite(Boolean ntWrite)
     Wrapper for JCA usage of OpenJPAConfiguration.setNontransactionalWrite(boolean) .
public  voidsetOptimistic(boolean optimistic)
     Whether to use optimistic transactions by default.
public  voidsetOptimistic(Boolean optimistic)
     Wrapper for JCA usage of OpenJPAConfiguration.setOptimistic(boolean) .
public  voidsetOrphanedKeyAction(String action)
     The action to take when an orphaned key is detected.
public  voidsetOrphanedKeyAction(OrphanedKeyAction action)
     The action to take when an orphaned key is detected.
public  voidsetProxyManager(String proxyManager)
     The plugin string for the ProxyManager to use for second class object proxies.
public  voidsetProxyManager(ProxyManager manager)
     The ProxyManager to use.
public  voidsetQueryCache(String queryCache)
     The plugin to use for level-2 data store query caching.
public  voidsetQueryCompilationCache(String conf)
     Configuration settings for the query compilation cache to use.
public  voidsetReadLockLevel(String level)
     The default read lock level to use during non-optimistic transactions.
public  voidsetReadLockLevel(int level)
     The numeric read lock level.
public  voidsetRemoteCommitEventManager(RemoteCommitEventManager manager)
     The remote event manager that manages this configuration's remote event listeners.
public  voidsetRemoteCommitProvider(String remoteCommitProvider)
     The plugin to use for remote commit notification.
public  voidsetRestoreState(String restoreState)
     Whether to restore initial state on rollback by default.
public  voidsetRestoreState(int restoreState)
     Whether to restore initial state on rollback by default.
public  voidsetRetainState(boolean retainState)
     Whether to retain state after a transaction by default.
public  voidsetRetainState(Boolean retainState)
     Wrapper for JCA usage of OpenJPAConfiguration.setRetainState(boolean) .
public  voidsetRetryClassRegistration(boolean warn)
     Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed.
public  voidsetRetryClassRegistration(Boolean warn)
     Wrapper for JCA usage of OpenJPAConfiguration.setRetryClassRegistration(boolean) .
public  voidsetRuntimeUnenhancedClasses(String mode)
     Specifies how OpenJPA handles unenhanced types.
public  voidsetRuntimeUnenhancedClasses(int mode)
    
public  voidsetSavepointManager(String savepointManager)
     The plugin to use for savepoint management.
public  voidsetSequence(String sequence)
     Plugin string for the default system Seq .
public  voidsetSequence(Seq sequence)
     The default system sequence.
public  booleansetSpecification(String spec)
     Set the specification that this configuration should use for the various properties that need to have different defaults for different spec environments.
public  voidsetTransactionMode(String mode)
     Specifies the behavior of the transaction model.
public  voidsetTransactionModeManaged(boolean managed)
     Set whether managed transactions are being used.
public  voidsetWriteLockLevel(String level)
     The default write lock level to use during non-optimistic transactions.
public  voidsetWriteLockLevel(int level)
     The numeric write lock level.
public  CollectionsupportedOptions()
     Return the set of option strings supported by this runtime.

Field Detail
LOG_DATACACHE
final public static String LOG_DATACACHE(Code)
Name of logger for messages from the data cache: openjpa.DataCache.



LOG_ENHANCE
final public static String LOG_ENHANCE(Code)
Name of logger for enhancement-related messages: openjpa.Enhance.



LOG_METADATA
final public static String LOG_METADATA(Code)
Name of logger for metadata-related messages: openjpa.MetaData.



LOG_QUERY
final public static String LOG_QUERY(Code)
Name of logger for query logging: openjpa.Query.



LOG_RUNTIME
final public static String LOG_RUNTIME(Code)
Name of logger for messages from the runtime system: openjpa.Runtime.



LOG_TOOL
final public static String LOG_TOOL(Code)
Name of logger for messages from the development tools: openjpa.Tool.



OPTION_DATASTORE_CONNECTION
final public static String OPTION_DATASTORE_CONNECTION(Code)
Option for runtimes that support returning the datastore connection.



OPTION_EMBEDDED_COLLECTION_RELATION
final public static String OPTION_EMBEDDED_COLLECTION_RELATION(Code)
Option for runtimes that support collections of embedded relations to other persistence capable objects.



OPTION_EMBEDDED_MAP_RELATION
final public static String OPTION_EMBEDDED_MAP_RELATION(Code)
Option for runtimes that support maps of embedded relations to other persistence capable objects.



OPTION_EMBEDDED_RELATION
final public static String OPTION_EMBEDDED_RELATION(Code)
Option for runtimes that support embedded relations to other persistence capable objects.



OPTION_ID_APPLICATION
final public static String OPTION_ID_APPLICATION(Code)
Option for runtimes that support application identity.



OPTION_ID_DATASTORE
final public static String OPTION_ID_DATASTORE(Code)
Option for runtimes that support application identity.



OPTION_INC_FLUSH
final public static String OPTION_INC_FLUSH(Code)
Option for runtimes that support incremental flushing.



OPTION_JDBC_CONNECTION
final public static String OPTION_JDBC_CONNECTION(Code)
Option for runtimes that support returning the datastore connection that is a JDBC Connection.



OPTION_NONTRANS_READ
final public static String OPTION_NONTRANS_READ(Code)
Option for runtimes that support nontransactional reads.



OPTION_NULL_CONTAINER
final public static String OPTION_NULL_CONTAINER(Code)
Option for runtime that can differentiate between null and empty container fields.



OPTION_OPTIMISTIC
final public static String OPTION_OPTIMISTIC(Code)
Option for runtimes that support optimistic transactions.



OPTION_QUERY_SQL
final public static String OPTION_QUERY_SQL(Code)
Option for SQL support.



OPTION_TYPE_ARRAY
final public static String OPTION_TYPE_ARRAY(Code)
Option for runtimes that support persistent array fields.



OPTION_TYPE_COLLECTION
final public static String OPTION_TYPE_COLLECTION(Code)
Option for runtimes that support persistent collection fields.



OPTION_TYPE_MAP
final public static String OPTION_TYPE_MAP(Code)
Option for runtimes that support persistent map fields.



OPTION_VALUE_AUTOASSIGN
final public static String OPTION_VALUE_AUTOASSIGN(Code)
Option for runtimes that the autoassign value strategy.



OPTION_VALUE_INCREMENT
final public static String OPTION_VALUE_INCREMENT(Code)
Option for runtimes that the increment value strategy.





Method Detail
getAggregateListenerInstances
public AggregateListener[] getAggregateListenerInstances()(Code)
Return the query function listeners. If none have been set explicitly, this method instantiates the listeners from the set plugin list.



getAggregateListeners
public String getAggregateListeners()(Code)
A comma-separted list of the plugin strings of the query AggregateListener s to use.



getAutoClear
public String getAutoClear()(Code)
Whether instances clear their state when entering a transaction.



getAutoClearConstant
public int getAutoClearConstant()(Code)
Return the AutoClear constant.



getAutoDetach
public String getAutoDetach()(Code)
A comma-separated list of events which trigger auto-detachment in place of managed states. Possible values are:
  • commit: When the current transaction commits.
  • close: When the broker closes.
  • nontx-read: When instances are read non-transactionally.



getAutoDetachConstant
public int getAutoDetachConstant()(Code)
The AutoDetach flags.



getBrokerFactory
public String getBrokerFactory()(Code)
The BrokerFactory class to use.



getBrokerFactoryEventManager
public BrokerFactoryEventManager getBrokerFactoryEventManager()(Code)
Return the org.apache.openjpa.event.BrokerFactoryEventManager associated with this configuration.
since:
   1.0.0



getBrokerImpl
public String getBrokerImpl()(Code)
The plugin string of the BrokerImpl extension to create.



getCacheMarshallerInstances
public Map getCacheMarshallerInstances()(Code)
Return the cache marshaller listeners.
since:
   1.1.0



getCacheMarshallers
public String getCacheMarshallers()(Code)
A comma-separted list of the plugin strings specifying the CacheMarshaller s to use.
since:
   1.1.0



getClassResolver
public String getClassResolver()(Code)
The plugin string for the ClassResolver to use for custom class loading.



getClassResolverInstance
public ClassResolver getClassResolverInstance()(Code)
The ClassResolver to use.



getCompatibility
public String getCompatibility()(Code)
Backwards compatibility options.



getCompatibilityInstance
public Compatibility getCompatibilityInstance()(Code)
Backwards compatibility options.



getConnection2DriverName
public String getConnection2DriverName()(Code)
Class name of the non-XA connection driver.



getConnection2Password
public String getConnection2Password()(Code)
The password for the non-XA data store connection.



getConnection2Properties
public String getConnection2Properties()(Code)
These properties provide any additional information needed to establish non-XA connections.
since:
   0.3.0



getConnection2URL
public String getConnection2URL()(Code)
The URL for the non-XA data store connection.



getConnection2UserName
public String getConnection2UserName()(Code)
The user name for the non-XA data store connection.



getConnectionDriverName
public String getConnectionDriverName()(Code)
Class name of the connection driver.



getConnectionFactory
public Object getConnectionFactory()(Code)
The connection factory, possibly from JNDI.



getConnectionFactory2
public Object getConnectionFactory2()(Code)
The non-XA connection factory.



getConnectionFactory2Name
public String getConnectionFactory2Name()(Code)
The name for the second data store connection factory.



getConnectionFactory2Properties
public String getConnectionFactory2Properties()(Code)
Configuration properties for the non-XA connection factory.
since:
   0.2.5



getConnectionFactoryMode
public String getConnectionFactoryMode()(Code)
The mode of the connection factory in use. Available options are:
  • local: OpenJPA controls the connections.
  • managed: Connections are automatically enlisted in the current global transaction by an application server.
Defaults to local.



getConnectionFactoryName
public String getConnectionFactoryName()(Code)
The name for the data store connection factory.



getConnectionFactoryProperties
public String getConnectionFactoryProperties()(Code)
Configuration properties for the connection factory.



getConnectionPassword
public String getConnectionPassword()(Code)
The password for the data store connection.



getConnectionProperties
public String getConnectionProperties()(Code)
These properties provide any additional information needed to establish connections.



getConnectionRetainMode
public String getConnectionRetainMode()(Code)
Specifies the behavior of the broker with respect to data store connections. Possible values are:
  • 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.

since:
   0.2.5



getConnectionRetainModeConstant
public int getConnectionRetainModeConstant()(Code)
Return the connection retain mode as one of the following symbolic constants:



getConnectionURL
public String getConnectionURL()(Code)
The URL for the data store connection.



getConnectionUserName
public String getConnectionUserName()(Code)
The user name for the data store connection.



getDataCache
public String getDataCache()(Code)
The DataCache to use for level-2 data store caching.



getDataCacheManager
public String getDataCacheManager()(Code)
The data cache manager manages this configuration's cache instances.



getDataCacheManagerInstance
public DataCacheManager getDataCacheManagerInstance()(Code)
The data cache manager manages this configuration's cache instances. The cache manager is created if it has not been set. Once the cache manager has been set/created, all changes to caching configuration must proceed through the cache manager.
since:
   0.3.0



getDataCacheTimeout
public int getDataCacheTimeout()(Code)
Default data cache timeout.
since:
   0.2.5



getDetachStateInstance
public DetachOptions getDetachStateInstance()(Code)
Return the instance specified by the detach state plugin.



getDynamicDataStructs
public boolean getDynamicDataStructs()(Code)
Return whether to generate dynamic data structures where possible for cache and runtime usage.
since:
   0.3.3



getFetchBatchSize
public int getFetchBatchSize()(Code)
Get the size of the batch that will be pre-selected when accessing elements in a query or relationship. Use -1 to prefetch all results.



getFetchGroups
public String getFetchGroups()(Code)
Comma-separated list of fetch group names that will be pre-set for all new FetchConfiguration s.
since:
   0.2.5



getFetchGroupsList
public String[] getFetchGroupsList()(Code)
List of fetch group names that will be pre-set for all new FetchConfiguration s.



getFilterListenerInstances
public FilterListener[] getFilterListenerInstances()(Code)
Return the query filter listeners. If none have been set explicitly, this method instantiates the listeners from the set plugin list.



getFilterListeners
public String getFilterListeners()(Code)
A comma-separted list of the plugin strings of the query FilterListener s to use.



getFlushBeforeQueries
public String getFlushBeforeQueries()(Code)
Returns whether or not OpenJPA should automatically flush modifications to the data store before executing queries.
since:
   0.2.5



getFlushBeforeQueriesConstant
public int getFlushBeforeQueriesConstant()(Code)
Returns one of QueryFlushModes.FLUSH_TRUE , QueryFlushModes.FLUSH_FALSE , or QueryFlushModes.FLUSH_WITH_CONNECTION , as determined by parsing the string returned by OpenJPAConfiguration.getFlushBeforeQueries .
since:
   0.2.5



getIgnoreChanges
public boolean getIgnoreChanges()(Code)
Whether changes in the current transaction are taken into account when executing queries and iterating extents.



getInverseManager
public String getInverseManager()(Code)
The plugin to use for managing inverse relations.
since:
   0.3.2



getLockManager
public String getLockManager()(Code)
The plugin to use for datastore lock management.
since:
   0.3.1



getLockTimeout
public int getLockTimeout()(Code)
The time to wait for an object lock in milliseconds, or -1 for no timeout.
since:
   0.3.1



getManagedRuntime
public String getManagedRuntime()(Code)
The plugin string for the ManagedRuntime to use for managed environments.



getManagedRuntimeInstance
public ManagedRuntime getManagedRuntimeInstance()(Code)
The plugin to use for integrating with a managed runtime.



getMapping
public String getMapping()(Code)
The name mapping to use for this data store.



getMaxFetchDepth
public int getMaxFetchDepth()(Code)
The maximum relation depth to traverse when eager fetching. Use -1 for no limit.



getMetaDataFactory
public String getMetaDataFactory()(Code)
A plugin string describing the MetaDataFactory to use.



getMetaDataRepository
public String getMetaDataRepository()(Code)
A plugin string describing the MetaDataRepository to use.



getMetaDataRepositoryInstance
public MetaDataRepository getMetaDataRepositoryInstance()(Code)
The metadata repository of managed class information. If no repository has been set, creates one.
since:
   0.3.0



getMultithreaded
public boolean getMultithreaded()(Code)
Whether brokers or their managed objects will be used by multiple concurrent threads.



getNontransactionalRead
public boolean getNontransactionalRead()(Code)
Whether persistent state is accessible outside a transaction by default.



getNontransactionalWrite
public boolean getNontransactionalWrite()(Code)
Whether persistent state can be modified outside a transaction by default.



getOptimistic
public boolean getOptimistic()(Code)
Whether to use optimistic transactions by default.



getOrphanedKeyAction
public String getOrphanedKeyAction()(Code)
The action to take when an orphaned key is detected.
since:
   0.3.2.2



getOrphanedKeyActionInstance
public OrphanedKeyAction getOrphanedKeyActionInstance()(Code)
The action to take when an orphaned key is detected.
since:
   0.3.2.2



getProxyManager
public String getProxyManager()(Code)
The plugin string for the ProxyManager to use for second class object proxies.



getProxyManagerInstance
public ProxyManager getProxyManagerInstance()(Code)
The ProxyManager to use.



getQueryCache
public String getQueryCache()(Code)
The plugin to use for level-2 data store query caching.
since:
   0.2.5



getQueryCompilationCache
public String getQueryCompilationCache()(Code)
Configuration settings for the query compilation cache to use.
See Also:   QueryCompilationCacheValue
since:
   0.9.6



getQueryCompilationCacheInstance
public Map getQueryCompilationCacheInstance()(Code)
Configuration settings for the query compilation cache to use.
See Also:   QueryCompilationCacheValue
since:
   0.9.6



getReadLockLevel
public String getReadLockLevel()(Code)
The default read lock level to use during non-optimistic transactions. Defaults to read.
since:
   0.3.1



getReadLockLevelConstant
public int getReadLockLevelConstant()(Code)
The numeric read lock level.
since:
   0.3.1



getRemoteCommitEventManager
public RemoteCommitEventManager getRemoteCommitEventManager()(Code)
The remote event manager that manages this configuration's remote event listeners.
since:
   0.3.0



getRemoteCommitProvider
public String getRemoteCommitProvider()(Code)
The plugin to use for remote commit notification.
since:
   0.2.5



getRestoreState
public String getRestoreState()(Code)
Whether to restore initial state on rollback by default.



getRestoreStateConstant
public int getRestoreStateConstant()(Code)
Return the RestoreState constant.



getRetainState
public boolean getRetainState()(Code)
Whether to retain state after a transaction by default.



getRetryClassRegistration
public boolean getRetryClassRegistration()(Code)
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed. Should only be set to true in complex classloader topologies. Defaults to false.
since:
   0.3.2.3



getRuntimeUnenhancedClasses
public String getRuntimeUnenhancedClasses()(Code)
Specifies how OpenJPA handles unenhanced types. Possible values are:
  • supported: Runtime optimization of persistent types is available. This is the default
  • unsupported: 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.

since:
   1.0.0



getRuntimeUnenhancedClassesConstant
public int getRuntimeUnenhancedClassesConstant()(Code)
Return the runtime class optimization setting as one of the following symbolic constants:
  • RuntimeUnenhancedClasssesModes.SUPPORTED
  • RuntimeUnenhancedClasssesModes.UNSUPPORTED
  • RuntimeUnenhancedClasssesModes.WARN

since:
   1.0.0



getSavepointManager
public String getSavepointManager()(Code)
The plugin to use for savepoint management.
since:
   0.3.4



getSavepointManagerInstance
public SavepointManager getSavepointManagerInstance()(Code)
Return the configured savepoint manager instance.



getSequence
public String getSequence()(Code)
Plugin string for the default system Seq .



getSequenceInstance
public Seq getSequenceInstance()(Code)
The default system sequence.



getSpecification
public String getSpecification()(Code)
A configuration can be set with defaults for a specific specification.



getStoreFacadeTypeRegistry
public StoreFacadeTypeRegistry getStoreFacadeTypeRegistry()(Code)
Return the StoreFacadeTypeRegistry instance associated with this configuration.



getTransactionMode
public String getTransactionMode()(Code)
Specifies the behavior of the transaction model. Possible values are:
  • local: Perform transaction operations locally.
  • managed: Use managed environment's global transactions.

since:
   0.2.5



getWriteLockLevel
public String getWriteLockLevel()(Code)
The default write lock level to use during non-optimistic transactions. Defaults to write.
since:
   0.3.1



getWriteLockLevelConstant
public int getWriteLockLevelConstant()(Code)
The numeric write lock level.
since:
   0.3.1



isConnectionFactoryModeManaged
public boolean isConnectionFactoryModeManaged()(Code)
Whether connections are automatically enlisted in global transactions.



isTransactionModeManaged
public boolean isTransactionModeManaged()(Code)
Return whether managed transactions are being used.



metaDataRepositoryAvailable
public boolean metaDataRepositoryAvailable()(Code)
Returns true if a metaDataRepository has been created for this configuration.
since:
   1.1.0 1.0.1



newBrokerInstance
public BrokerImpl newBrokerInstance(String user, String pass)(Code)
Create a new broker instance with the configured plugin data.



newInverseManagerInstance
public InverseManager newInverseManagerInstance()(Code)
Return a new inverse manager instance using the configured plugin settings.
since:
   0.3.2



newLockManagerInstance
public LockManager newLockManagerInstance()(Code)
Return a new lock manager instance using the configured plugin settings.



newMetaDataFactoryInstance
public MetaDataFactory newMetaDataFactoryInstance()(Code)
Create a new MetaDataFactory to use with a repository.



newMetaDataRepositoryInstance
public MetaDataRepository newMetaDataRepositoryInstance()(Code)
Create a new empty metadata repository of the configured type.



newRemoteCommitProviderInstance
public RemoteCommitProvider newRemoteCommitProviderInstance()(Code)
Create a remote commit provider from the configured plugin.
since:
   0.3.0



setAggregateListeners
public void setAggregateListeners(String listeners)(Code)
A comma-separted list of the plugin strings of the query AggregateListener s to use.



setAggregateListeners
public void setAggregateListeners(AggregateListener[] listeners)(Code)
Set the query function listeners. Overrides the list of listener classes.



setAutoClear
public void setAutoClear(String clear)(Code)
Whether instances clear their state when entering a transaction.



setAutoClear
public void setAutoClear(int clear)(Code)
Whether instances clear their state when entering a transaction.



setAutoDetach
public void setAutoDetach(String detach)(Code)
A comma-separated list of events which trigger auto-detachment in place of managed states. Possible values are:
  • commit: When the current transaction commits.
  • close: When the broker closes.
  • nontx-read: When instances are read non-transactionally.



setAutoDetach
public void setAutoDetach(int flags)(Code)
The AutoDetach flags.



setBrokerFactory
public void setBrokerFactory(String factory)(Code)
The BrokerFactory class to use.



setBrokerImpl
public void setBrokerImpl(String broker)(Code)
The plugin string of the BrokerImpl extension to create.



setCacheMarshallers
public void setCacheMarshallers(String marshallers)(Code)
A comma-separted list of the plugin strings specifying the CacheMarshaller s to use.
since:
   1.1.0



setClassResolver
public void setClassResolver(String classResolver)(Code)
The plugin string for the ClassResolver to use for custom class loading.



setClassResolver
public void setClassResolver(ClassResolver classResolver)(Code)
The ClassResolver to use.



setCompatibility
public void setCompatibility(String compatibility)(Code)
Backwards compatibility options.



setConnection2DriverName
public void setConnection2DriverName(String driverName)(Code)
Class name of the non-XA connection driver.



setConnection2Password
public void setConnection2Password(String connectionPassword)(Code)
The password for the non-XA data store connection.



setConnection2Properties
public void setConnection2Properties(String props)(Code)
These properties provide any additional information needed to establish non-XA connections.
since:
   0.3.0



setConnection2URL
public void setConnection2URL(String connectionURL)(Code)
The URL for the non-XA data store connection.



setConnection2UserName
public void setConnection2UserName(String connectionUserName)(Code)
The user name for the non-XA data store connection.



setConnectionDriverName
public void setConnectionDriverName(String driverName)(Code)
Class name of the connection driver.



setConnectionFactory
public void setConnectionFactory(Object factory)(Code)
The connection factory.



setConnectionFactory2
public void setConnectionFactory2(Object factory)(Code)
The non-XA connection factory.



setConnectionFactory2Name
public void setConnectionFactory2Name(String cf2Name)(Code)
The name for the second data store connection factory.



setConnectionFactory2Properties
public void setConnectionFactory2Properties(String props)(Code)
Configuration properties for the non-XA connection factory.
since:
   0.2.5



setConnectionFactoryMode
public void setConnectionFactoryMode(String mode)(Code)
The mode of the connection factory in use. Available options are:
  • local: OpenJPA controls the connections.
  • managed: Connections are automatically enlisted in the current global transaction by an application server.
Defaults to local.



setConnectionFactoryModeManaged
public void setConnectionFactoryModeManaged(boolean managed)(Code)
Whether connections are automatically enlisted in global transactions.



setConnectionFactoryName
public void setConnectionFactoryName(String cfName)(Code)
The name for the data store connection factory.



setConnectionFactoryProperties
public void setConnectionFactoryProperties(String props)(Code)
Configuration properties for the connection factory.



setConnectionPassword
public void setConnectionPassword(String connectionPassword)(Code)
The password for the data store connection.



setConnectionProperties
public void setConnectionProperties(String props)(Code)
These properties provide any additional information needed to establish connections.



setConnectionRetainMode
public void setConnectionRetainMode(String mode)(Code)
Specifies the behavior of the broker with respect to data store connections. Possible values are:
  • 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.

since:
   0.2.5



setConnectionRetainMode
public void setConnectionRetainMode(int mode)(Code)
Set the connection retain mode as one of the following symbolic constants:



setConnectionURL
public void setConnectionURL(String connectionURL)(Code)
The URL for the data store connection.



setConnectionUserName
public void setConnectionUserName(String connectionUserName)(Code)
The user name for the data store connection.



setDataCache
public void setDataCache(String dataCache)(Code)
The DataCache to use for level-2 data store caching.



setDataCacheManager
public void setDataCacheManager(String mgr)(Code)
The data cache manager manages this configuration's cache instances.



setDataCacheManager
public void setDataCacheManager(DataCacheManager manager)(Code)
The data cache manager manages this configuration's cache instances.
since:
   0.3.0



setDataCacheTimeout
public void setDataCacheTimeout(int timeout)(Code)
Default data cache timeout.
since:
   0.2.5



setDataCacheTimeout
public void setDataCacheTimeout(Integer timeout)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setDataCacheTimeout(int) .
since:
   0.2.5



setDetachState
public void setDetachState(String detachState)(Code)
Which field values to include when detaching.



setDetachState
public void setDetachState(DetachOptions detachState)(Code)
Return the instance specified by the detach state plugin.



setDynamicDataStructs
public void setDynamicDataStructs(boolean dynamic)(Code)
Set whether to generate dynamic data structures where possible for cache and runtime usage.
since:
   0.3.3



setDynamicDataStructs
public void setDynamicDataStructs(Boolean dynamic)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setDynamicDataStructs(boolean) .



setFetchBatchSize
public void setFetchBatchSize(int size)(Code)
Set the size of the batch that will be pre-selected when accessing elements in a query or relationship. Use -1 to prefetch all results.



setFetchBatchSize
public void setFetchBatchSize(Integer size)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setFetchBatchSize(int) .



setFetchGroups
public void setFetchGroups(String groups)(Code)
Comma-separated list of fetch group names that will be pre-set for all new FetchConfiguration s.
since:
   0.2.5



setFetchGroups
public void setFetchGroups(String[] names)(Code)
List of fetch group names that will be pre-set for all new FetchConfiguration s.



setFilterListeners
public void setFilterListeners(String listeners)(Code)
A comma-separted list of the plugin strings of the query FilterListener s to use.



setFilterListeners
public void setFilterListeners(FilterListener[] listeners)(Code)
Set the query filter listeners. Overrides the list of listener classes.



setFlushBeforeQueries
public void setFlushBeforeQueries(String flush)(Code)
Sets whether or not OpenJPA should automatically flush modifications to the data store before executing queries.
since:
   0.2.5



setFlushBeforeQueries
public void setFlushBeforeQueries(int flushBeforeQueries)(Code)
Set to one of QueryFlushModes.FLUSH_TRUE , QueryFlushModes.FLUSH_FALSE , or QueryFlushModes.FLUSH_WITH_CONNECTION .
since:
   0.2.5



setIgnoreChanges
public void setIgnoreChanges(boolean ignoreChanges)(Code)
Whether changes in the current transaction are taken into account when executing queries and iterating extents.



setIgnoreChanges
public void setIgnoreChanges(Boolean ignoreChanges)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setIgnoreChanges(boolean) .



setInverseManager
public void setInverseManager(String inverse)(Code)
The plugin to use for managing inverse relations.
since:
   0.3.2



setLockManager
public void setLockManager(String lockManager)(Code)
The plugin to use for datastore lock management.
since:
   0.3.1



setLockTimeout
public void setLockTimeout(int timeout)(Code)
The time to wait for an object lock in milliseconds, or -1 for no timeout.
since:
   0.3.1



setLockTimeout
public void setLockTimeout(Integer timeout)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setLockTimeout(int) .
since:
   0.3.1



setManagedRuntime
public void setManagedRuntime(String managedRuntime)(Code)
The plugin string for the ManagedRuntime to use for managed environments.



setManagedRuntime
public void setManagedRuntime(ManagedRuntime runtime)(Code)
The plugin to use for integrating with a managed runtime.



setMapping
public void setMapping(String mapping)(Code)
The name mapping to use for this data store.



setMaxFetchDepth
public void setMaxFetchDepth(int depth)(Code)
The maximum relation depth to traverse when eager fetching. Use -1 for no limit.



setMaxFetchDepth
public void setMaxFetchDepth(Integer size)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setMaxFetchDepth(int) .



setMetaDataFactory
public void setMetaDataFactory(String meta)(Code)
A plugin string describing the MetaDataFactory to use.



setMetaDataRepository
public void setMetaDataRepository(String meta)(Code)
A plugin string describing the MetaDataRepository to use.



setMetaDataRepository
public void setMetaDataRepository(MetaDataRepository mdRepos)(Code)
The metadata repository of managed class information.
since:
   0.3.0



setMultithreaded
public void setMultithreaded(boolean multithreaded)(Code)
Whether brokers or their managed objects will be used by multiple concurrent threads.



setMultithreaded
public void setMultithreaded(Boolean multithreaded)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setMultithreaded(boolean) .



setNontransactionalRead
public void setNontransactionalRead(boolean ntRead)(Code)
Whether persistent state is accessible outside a transaction by default.



setNontransactionalRead
public void setNontransactionalRead(Boolean ntRead)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setNontransactionalRead(boolean) .



setNontransactionalWrite
public void setNontransactionalWrite(boolean ntWrite)(Code)
Whether persistent state can be modified outside a transaction by default.



setNontransactionalWrite
public void setNontransactionalWrite(Boolean ntWrite)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setNontransactionalWrite(boolean) .



setOptimistic
public void setOptimistic(boolean optimistic)(Code)
Whether to use optimistic transactions by default.



setOptimistic
public void setOptimistic(Boolean optimistic)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setOptimistic(boolean) .



setOrphanedKeyAction
public void setOrphanedKeyAction(String action)(Code)
The action to take when an orphaned key is detected.
since:
   0.3.2.2



setOrphanedKeyAction
public void setOrphanedKeyAction(OrphanedKeyAction action)(Code)
The action to take when an orphaned key is detected.
since:
   0.3.2.2



setProxyManager
public void setProxyManager(String proxyManager)(Code)
The plugin string for the ProxyManager to use for second class object proxies.



setProxyManager
public void setProxyManager(ProxyManager manager)(Code)
The ProxyManager to use.



setQueryCache
public void setQueryCache(String queryCache)(Code)
The plugin to use for level-2 data store query caching.
since:
   0.2.5



setQueryCompilationCache
public void setQueryCompilationCache(String conf)(Code)
Configuration settings for the query compilation cache to use.
See Also:   QueryCompilationCacheValue
since:
   0.9.6



setReadLockLevel
public void setReadLockLevel(String level)(Code)
The default read lock level to use during non-optimistic transactions. Defaults to read.
since:
   0.3.1



setReadLockLevel
public void setReadLockLevel(int level)(Code)
The numeric read lock level.
since:
   0.3.1



setRemoteCommitEventManager
public void setRemoteCommitEventManager(RemoteCommitEventManager manager)(Code)
The remote event manager that manages this configuration's remote event listeners.
since:
   0.3.0



setRemoteCommitProvider
public void setRemoteCommitProvider(String remoteCommitProvider)(Code)
The plugin to use for remote commit notification.
since:
   0.2.5



setRestoreState
public void setRestoreState(String restoreState)(Code)
Whether to restore initial state on rollback by default.



setRestoreState
public void setRestoreState(int restoreState)(Code)
Whether to restore initial state on rollback by default.



setRetainState
public void setRetainState(boolean retainState)(Code)
Whether to retain state after a transaction by default.



setRetainState
public void setRetainState(Boolean retainState)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setRetainState(boolean) .



setRetryClassRegistration
public void setRetryClassRegistration(boolean warn)(Code)
Whether to warn and defer registration instead of throwing an exception when a registered persistent class cannot be processed. Should only be set to true in complex classloader topologies. Defaults to false.
since:
   0.3.2.3



setRetryClassRegistration
public void setRetryClassRegistration(Boolean warn)(Code)
Wrapper for JCA usage of OpenJPAConfiguration.setRetryClassRegistration(boolean) .
since:
   0.3.2.3



setRuntimeUnenhancedClasses
public void setRuntimeUnenhancedClasses(String mode)(Code)
Specifies how OpenJPA handles unenhanced types.
See Also:    OpenJPAConfiguration.getRuntimeUnenhancedClasses()
since:
   1.0.0



setRuntimeUnenhancedClasses
public void setRuntimeUnenhancedClasses(int mode)(Code)
Set the runtime class optimization setting as one of the following symbolic constants:
  • RuntimeUnenhancedClasssesModes.SUPPORTED
  • RuntimeUnenhancedClasssesModes.UNSUPPORTED
  • RuntimeUnenhancedClasssesModes.WARN

since:
   1.0.0



setSavepointManager
public void setSavepointManager(String savepointManager)(Code)
The plugin to use for savepoint management.
since:
   0.3.4



setSequence
public void setSequence(String sequence)(Code)
Plugin string for the default system Seq .



setSequence
public void setSequence(Seq sequence)(Code)
The default system sequence.



setSpecification
public boolean setSpecification(String spec)(Code)
Set the specification that this configuration should use for the various properties that need to have different defaults for different spec environments. This should be invoked before any configuration options are set, as it will mutate various values. You can only assign the specification once, though it is not fatal to attempt to do so multiple times. Attempts to set to null will be ignored.



setTransactionMode
public void setTransactionMode(String mode)(Code)
Specifies the behavior of the transaction model. Possible values are:
  • local: Perform transaction operations locally.
  • managed: Use managed environment's global transactions.

since:
   0.2.5



setTransactionModeManaged
public void setTransactionModeManaged(boolean managed)(Code)
Set whether managed transactions are being used.



setWriteLockLevel
public void setWriteLockLevel(String level)(Code)
The default write lock level to use during non-optimistic transactions. Defaults to write.
since:
   0.3.1



setWriteLockLevel
public void setWriteLockLevel(int level)(Code)
The numeric write lock level.
since:
   0.3.1



supportedOptions
public Collection supportedOptions()(Code)
Return the set of option strings supported by this runtime. This set is mutable.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.