Part II. Cayenne Framework

Table of Contents

4. Including Cayenne in a Project
Jar Files
Dependencies
Maven Projects
Gradle Projects
Ant Projects
5. Starting Cayenne
Starting and Stopping ServerRuntime
Merging Multiple Projects
Web Applications
6. Persistent Objects and ObjectContext
ObjectContext
Persistent Object and its Lifecycle
ObjectContext Persistence API
Cayenne Helper Class
ObjectContext Nesting
Generic Persistent Objects
Transactions
7. Expressions
Expressions Overview
Path Expressions
Creating Expressions from Strings
Creating Expressions via API
Evaluating Expressions in Memory
Translating Expressions to EJBQL
8. Orderings
9. Queries
ObjectSelect
EJBQLQuery
SelectById
SQLSelect and SQLExec
MappedSelect and MappedExec
ProcedureCall
Custom Queries
SQLTemplate
10. Lifecycle Events
Types of Lifecycle Events
Callbacks on Persistent Objects
Callbacks on Non-Persistent Listeners
Combining Listeners with DataChannelFilters
11. Performance Tuning
Prefetching
Data Rows
Specific Attributes and Relationships with EJBQL
Iterated Queries
Paginated Queries
Caching and Fresh Data
Turning off Synchronization of ObjectContexts
12. Customizing Cayenne Runtime
Dependency Injection Container
Customization Strategies
Using custom data types
Noteworthy Built-in Services