CacheStoreMode
java.lang.Object ∟ java.lang.Enum<jakarta.persistence.CacheStoreMode> ∟ jakarta.persistence.CacheStoreMode
- Implemented Interfaces:
FindOption,RefreshOption
Specifies how the EntityManager interacts with the second-level cache when data is read from the database and when data is written to the database.
- CacheStoreMode.USE indicates that data may be written to the second-level cache.
- CacheStoreMode.BYPASS indicates that data may not be written to the second-level cache.
- CacheStoreMode.REFRESH indicates that data must be written to the second-level cache, even when the data is already cached.
Enumerates legal values of the property jakarta.persistence.cache.storeMode.
- Since:
- JPA 2.0
The Shared (L2) Entity Cache article explains how to use
CacheStoreMode.Enum Constants
- Since:
- JPA 2.0
Force refresh of cache for items read from database.
- Since:
- JPA 2.0
Does not force refresh of already cached items when reading from database.
- 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