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

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

Additional JDK methods inherited from java.lang.Object

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

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

describeConstable()

Additional JDK methods inherited from java.lang.Comparable

compareTo(T)