Understanding EclipseLink, 2.5
  Go To Table Of Contents
 Search
 PDF

9 Understanding Caching

The EclipseLink cache is an in-memory repository that stores recently read or written objects based on class and primary key values. The cache improves performance by holding recently read or written objects and accessing them in-memory to minimize database access, manage locking and isolation level, and manage object identity.

EclipseLink defines the following entity caching annotations:

EclipseLink also provides a number of persistence unit properties that you can specify to configure the EclipseLink cache. These properties may compliment or provide an alternative to annotations. For more information on these annotations and properties, see Java Persistence API (JPA) Extensions Reference for EclipseLink.

This chapter contains the following sections: