Enum Class CacheStoreMode

java.lang.Object
java.lang.Enum<CacheStoreMode>
jakarta.persistence.CacheStoreMode
All Implemented Interfaces:
FindOption, RefreshOption, Serializable, Comparable<CacheStoreMode>, Constable

public enum CacheStoreMode extends Enum<CacheStoreMode> implements 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.
  • USE indicates that data may be written to the second-level cache.
  • BYPASS indicates that data may not be written to the second-level cache.
  • 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:
2.0
See Also: