Chapter 15. The CMP Engine

Chapter 15. The CMP Engine

15.1. Example Code
15.1.1. Enabling CMP Debug Logging
15.1.2. Running the examples
15.2. The jbosscmp-jdbc Structure
15.3. Entity Beans
15.3.1. Entity Mapping
15.4. CMP Fields
15.4.1. CMP Field Declaration
15.4.2. CMP Field Column Mapping
15.4.3. Read-only Fields
15.4.4. Auditing Entity Access
15.4.5. Dependent Value Classes (DVCs)
15.5. Container Managed Relationships
15.5.1. CMR-Field Abstract Accessors
15.5.2. Relationship Declaration
15.5.3. Relationship Mapping
15.6. Queries
15.6.1. Finder and select Declaration
15.6.2. EJB-QL Declaration
15.6.3. Overriding the EJB-QL to SQL Mapping
15.6.4. JBossQL
15.6.5. DynamicQL
15.6.6. DeclaredSQL
15.6.7. EJBQL 2.1 and SQL92 queries
15.6.8. BMP Custom Finders
15.7. Optimized Loading
15.7.1. Loading Scenario
15.7.2. Load Groups
15.7.3. Read-ahead
15.8. Loading Process
15.8.1. Commit Options
15.8.2. Eager-loading Process
15.8.3. Lazy loading Process
15.8.4. Lazy loading result sets
15.9. Transactions
15.10. Optimistic Locking
15.11. Entity Commands and Primary Key Generation
15.11.1. Existing Entity Commands
15.12. Defaults
15.12.1. A sample jbosscmp-jdbc.xml defaults declaration
15.13. Datasource Customization
15.13.1. Type Mapping
15.13.2. Function Mapping
15.13.3. Mapping
15.13.4. User Type Mappings

This chapter will explore the use of container managed persistence (CMP) in JBoss. We will assume a basic familiarity the EJB CMP model and focus on the operation of the JBoss CMP engine. Specifically, we will look at how to configure and optimize CMP applications on JBoss. For more introductory coverage of basic CMP concepts, we recommend Enterprise Java Beans, Fourth Edition (O'Reilly 2004).