CacheRetrieveMode
java.lang.Object ∟ java.lang.Enum<jakarta.persistence.CacheRetrieveMode> ∟ jakarta.persistence.CacheRetrieveMode
- Implemented Interfaces:
FindOption
Specifies how the EntityManager interacts with the second-level cache when data is read from the database via the find() methods and execution of queries.
- CacheRetrieveMode.USE indicates that data may be read from the second-level cache.
- CacheRetrieveMode.BYPASS indicates that data may not be read from the second-level cache.
Enumerates legal values of the property jakarta.persistence.cache.retrieveMode.
- Since:
- JPA 2.0
The Shared (L2) Entity Cache article explains how to use
CacheRetrieveMode.Enum Constants
- Since:
- JPA 2.0
- Since:
- JPA 2.0
Public Static Enum Methods:
Method inherited from class java.lang.Enum
compareTo, compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf