public enum CacheIsolationType extends java.lang.Enum<CacheIsolationType>
ClassDescriptor.setCacheIsolation(CacheIsolationType),
annotations.Cache| Enum Constant and Description |
|---|
ISOLATED
The Entity and its data is not stored in the shared cache but is
isolated to the Persistence Context/UnitOfWork or
IsolatedClientSession.
|
PROTECTED
Entity state information will be cached in the shared cache but Entity
instances will not be shared.
|
SHARED
Entity instances will be cached within the EntityManagerFactory/ServerSession level.
|
| Modifier and Type | Method and Description |
|---|---|
static CacheIsolationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheIsolationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheIsolationType SHARED
public static final CacheIsolationType PROTECTED
public static final CacheIsolationType ISOLATED
public static CacheIsolationType[] values()
for (CacheIsolationType c : CacheIsolationType.values()) System.out.println(c);
public static CacheIsolationType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null