Jakarta Persistence (JPA) Enum

jakarta.persistence.SharedCacheMode

java.lang.Object
  java.lang.Enum<jakarta.persistence.SharedCacheMode>
    jakarta.persistence.SharedCacheMode
Implemented Interfaces:
Constable, Comparable<E>, Serializable

Specifies how the provider must use a second-level cache for the persistence unit. Corresponds to the value of the persistence.xml shared-cache-mode element, and returned as the result of PersistenceUnitInfo.getSharedCacheMode.
Since:
Jakarta Persistence (JPA) 2.0

Enum Constants

All entities and entity-related state and data are cached.
Since:
Jakarta Persistence (JPA) 1.0
Caching is enabled for all entities except those for which Cacheable(false) is specified.
Entities for which Cacheable(false) is specified are not cached.
Since:
Jakarta Persistence (JPA) 1.0
Caching is enabled for all entities for which Cacheable(true) is specified.
All other entities are not cached.
Since:
Jakarta Persistence (JPA) 1.0
Caching is disabled for the persistence unit.
Since:
Jakarta Persistence (JPA) 1.0
Caching behavior is undefined: provider-specific defaults may apply.
Since:
Jakarta Persistence (JPA) 1.0

Synthetic Public Static Methods:

values(), valueOf(String)

Additional JDK methods inherited from java.lang.Enum

java.lang.Enum/clone(), java.lang.Enum/compareTo(E), java.lang.Enum/describeConstable(), java.lang.Enum/equals(Object), java.lang.Enum/finalize(), java.lang.Enum/getDeclaringClass(), java.lang.Enum/hashCode(), java.lang.Enum/name(), java.lang.Enum/ordinal(), java.lang.Enum/readObject(ObjectInputStream), java.lang.Enum/readObjectNoData(), java.lang.Enum/toString(), java.lang.Enum/valueOf(Class,String)

Additional JDK methods inherited from java.lang.Object

java.lang.Object/clone(), java.lang.Object/equals(Object), java.lang.Object/finalize(), java.lang.Object/getClass(), java.lang.Object/hashCode(), java.lang.Object/notify(), java.lang.Object/notifyAll(), java.lang.Object/toString(), java.lang.Object/wait(), java.lang.Object/wait(long), java.lang.Object/wait(long,int), java.lang.Object/wait0(long)

Additional JDK methods inherited from java.lang.constant.Constable

java.lang.constant.Constable/describeConstable()

Additional JDK methods inherited from java.lang.Comparable

java.lang.Comparable/compareTo(T)