JPA Enum

SharedCacheMode

java.lang.Object
  ∟ java.lang.Enum<javax.persistence.SharedCacheMode>
    ∟ javax.persistence.SharedCacheMode

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 ().
Since:
JPA 2.0

Enum Constants

All entities and entity-related state and data are cached.
Since:
JPA 2.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:
JPA 2.0
Caching is enabled for all entities for Cacheable(true) is specified.
All other entities are not cached.
Since:
JPA 2.0
Caching is disabled for the persistence unit.
Since:
JPA 2.0
Caching behavior is undefined: provider-specific defaults may apply.
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