Part III. Reference Guide
Prev
Next
Part III. Reference Guide
Table of Contents
17. Introduction
Intended Audience
18. Configuration
Introduction
Runtime Configuration
Command Line Configuration
Code Formatting
Plugin Configuration
OpenJPA Properties
openjpa.AutoClear
openjpa.AutoDetach
openjpa.BrokerFactory
openjpa.BrokerImpl
openjpa.Callbacks
openjpa.ClassResolver
openjpa.Compatibility
openjpa.ConnectionDriverName
openjpa.Connection2DriverName
openjpa.ConnectionFactory
openjpa.ConnectionFactory2
openjpa.ConnectionFactoryName
openjpa.ConnectionFactory2Name
openjpa.ConnectionFactoryMode
openjpa.ConnectionFactoryProperties
openjpa.ConnectionFactory2Properties
openjpa.ConnectionPassword
openjpa.Connection2Password
openjpa.ConnectionProperties
openjpa.Connection2Properties
openjpa.ConnectionURL
openjpa.Connection2URL
openjpa.ConnectionUserName
openjpa.Connection2UserName
openjpa.ConnectionRetainMode
openjpa.DataCache
openjpa.DataCacheManager
openjpa.DataCacheMode
openjpa.DataCacheTimeout
openjpa.DetachState
openjpa.DynamicDataStructs
openjpa.FetchBatchSize
openjpa.EncryptionProvider
openjpa.FetchGroups
openjpa.FlushBeforeQueries
openjpa.IgnoreChanges
openjpa.Id
openjpa.InitializeEagerly
openjpa.InverseManager
openjpa.LockManager
openjpa.LockTimeout
openjpa.Log
openjpa.ManagedRuntime
openjpa.Mapping
openjpa.MaxFetchDepth
openjpa.MetaDataFactory
openjpa.MetaDataRepository
openjpa.Multithreaded
openjpa.Optimistic
openjpa.OrphanedKeyAction
openjpa.NontransactionalRead
openjpa.NontransactionalWrite
openjpa.ProxyManager
openjpa.QueryCache
openjpa.QueryCompilationCache
openjpa.ReadLockLevel
openjpa.RemoteCommitProvider
openjpa.RestoreState
openjpa.RetainState
openjpa.RetryClassRegistration
openjpa.RuntimeUnenhancedClasses
openjpa.DynamicEnhancementAgent
openjpa.SavepointManager
openjpa.Sequence
openjpa.Specification
openjpa.TransactionMode
openjpa.WriteLockLevel
OpenJPA JDBC Properties
openjpa.jdbc.ConnectionDecorators
openjpa.jdbc.DBDictionary
openjpa.jdbc.DriverDataSource
openjpa.jdbc.EagerFetchMode
openjpa.jdbc.FetchDirection
openjpa.jdbc.JDBCListeners
openjpa.jdbc.LRSSize
openjpa.jdbc.MappingDefaults
openjpa.jdbc.MappingFactory
openjpa.jdbc.QuerySQLCache
openjpa.jdbc.ResultSetType
openjpa.jdbc.Schema
openjpa.jdbc.SchemaFactory
openjpa.jdbc.Schemas
openjpa.jdbc.SQLFactory
openjpa.jdbc.SubclassFetchMode
openjpa.jdbc.SynchronizeMappings
openjpa.jdbc.TransactionIsolation
openjpa.jdbc.UpdateManager
Compatibility with Specification
19. Logging
Logging Channels
OpenJPA Logging
Disabling Logging
Log4J
Apache Commons Logging
JDK java.util.logging
Custom Log
20. JDBC
Using the OpenJPA DataSource
Using a Third-Party DataSource
Managed and XA DataSources
Setting the DataSource at runtime
Runtime Access to DataSource
Database Support
DBDictionary Properties
FirebirdDictionary Properties
MySQLDictionary Properties
OracleDictionary Properties
SybaseDictionary Properties
Delimited Identifiers Support
Setting the Transaction Isolation
Setting the SQL Join Syntax
Accessing Multiple Databases
Configuring the Use of JDBC Connections
Statement Batching
Large Result Sets
Default Schema
Schema Reflection
Schemas List
Schema Factory
Schema Tool
XML Schema Format
21. Persistent Classes
Persistent Class List
Enhancement
Enhancing at Build Time
Enhancing JPA Entities on Deployment
Enhancing at Runtime
Enhancing Dynamically at Runtime
Omitting the OpenJPA enhancer
Managed Interfaces
Object Identity
Datastore Identity
Entities as Identity Fields
Application Identity Tool
Autoassign / Identity Strategy Caveats
Managed Inverses
Persistent Fields
Restoring State
Typing and Ordering
Calendar Fields and TimeZones
Proxies
Externalization
Fetch Groups
Custom Fetch Groups
Custom Fetch Group Configuration
Per-field Fetch Configuration
Implementation Notes
Eager Fetching
Configuring Eager Fetching
Eager Fetching Considerations and Limitations
22. Metadata
Metadata Factory
Metadata Repository
Additional JPA Metadata
Datastore Identity
Surrogate Version
Persistent Field Values
Persistent Collection Fields
Persistent Map Fields
Metadata Extensions
Class Extensions
Field Extensions
Example
23. Mapping
Forward Mapping
Using the Mapping Tool
Generating DDL SQL
Runtime Forward Mapping
Reverse Mapping
Customizing Reverse Mapping
Meet-in-the-Middle Mapping
Mapping Defaults
Mapping Factory
Non-Standard Joins
Additional JPA Mappings
Datastore Identity Mapping
Surrogate Version Mapping
Multi-Column Mappings
Join Column Attribute Targets
Embedded Mapping
Collections
One-Sided One-Many Mapping
Maps
Indexes and Constraints
XML Column Mapping
LOB Streaming
Mapping Limitations
Table Per Class
Mapping Extensions
Class Extensions
Field Extensions
Custom Mappings
Custom Class Mapping
Custom Discriminator and Version Strategies
Custom Field Mapping
Orphaned Keys
24. Deployment
Factory Deployment
Standalone Deployment
EntityManager Injection
Integrating with the Transaction Manager
XA Transactions
Using OpenJPA with XA Transactions
25. Runtime Extensions
Architecture
Broker Finalization
Broker Customization and Eviction
JPA Extensions
OpenJPAEntityManagerFactory
OpenJPAEntityManager
OpenJPAQuery
Extent
StoreCache
QueryResultCache
FetchPlan
OpenJPAEntityTransaction
OpenJPAPersistence
Object Locking
Configuring Default Locking
Configuring Lock Levels at Runtime
Object Locking APIs
Lock Manager
Rules for Locking Behavior
Known Issues and Limitations
Savepoints
Using Savepoints
Configuring Savepoints
MethodQL
Generators
Runtime Access
Transaction Events
Non-Relational Stores
26. Caching
Data Cache
Data Cache Configuration
Data Cache Usage
Cache Statistics
Query Cache
Cache Extension
Important Notes
Known Issues and Limitations
Query Compilation Cache
Prepared SQL Cache
27. Encryption Provider
28. Remote and Offline Operation
Detach and Attach
Detach Behavior
Attach Behavior
Defining the Detached Object Graph
Remote Event Notification Framework
Remote Commit Provider Configuration
Customization
29. Distributed Persistence
Overview
Salient Features
Transparency
Scaling
Distributed Query
Data Distribution
Data Replication
Heterogeneous Database
Distributed Transaction
Collocation Constraint
Usage
How to activate Slice Runtime?
How to configure each database slice?
Implement DistributionPolicy interface
Implement ReplicationPolicy interface
Configuration Properties
Global Properties
Per-Slice Properties
30. Third Party Integration
Apache Ant
Common Ant Configuration Options
Enhancer Ant Task
Application Identity Tool Ant Task
Mapping Tool Ant Task
Reverse Mapping Tool Ant Task
Schema Tool Ant Task
31. Optimization Guidelines