JPA Enum

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.

Enumerates legal values of the property jakarta.persistence.cache.retrieveMode.

See Also:
setCacheRetrieveMode()
setCacheRetrieveMode()
Since:
JPA 2.0
The Shared (L2) Entity Cache article explains how to use CacheRetrieveMode.

Enum Constants

Bypass the cache: get data directly from the database.
Since:
JPA 2.0
Read entity data from the cache: this is the default behavior.
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

Method inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait