JBoss.org Community Documentation

Chapter 12. The CMP Engine

12.1. Example Code
12.1.1. Enabling CMP Debug Logging
12.1.2. Running the examples
12.2. The jbosscmp-jdbc Structure
12.3. Entity Beans
12.3.1. Entity Mapping
12.4. CMP Fields
12.4.1. CMP Field Declaration
12.4.2. CMP Field Column Mapping
12.4.3. Read-only Fields
12.4.4. Auditing Entity Access
12.4.5. Dependent Value Classes (DVCs)
12.5. Container Managed Relationships
12.5.1. CMR-Field Abstract Accessors
12.5.2. Relationship Declaration
12.5.3. Relationship Mapping
12.6. Queries
12.6.1. Finder and select Declaration
12.6.2. EJB-QL Declaration
12.6.3. Overriding the EJB-QL to SQL Mapping
12.6.4. JBossQL
12.6.5. DynamicQL
12.6.6. DeclaredSQL
12.6.7. EJBQL 2.1 and SQL92 queries
12.6.8. BMP Custom Finders
12.7. Optimized Loading
12.7.1. Loading Scenario
12.7.2. Load Groups
12.7.3. Read-ahead
12.8. Loading Process
12.8.1. Commit Options
12.8.2. Eager-loading Process
12.8.3. Lazy loading Process
12.8.4. Lazy loading result sets
12.9. Transactions
12.10. Optimistic Locking
12.11. Entity Commands and Primary Key Generation
12.11.1. Existing Entity Commands
12.12. Defaults
12.12.1. A sample jbosscmp-jdbc.xml defaults declaration
12.13. Datasource Customization
12.13.1. Type Mapping
12.13.2. Function Mapping
12.13.3. Mapping
12.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).