public enum CacheStoreMode extends java.lang.Enum<CacheStoreMode>
javax.persistence.cache.storeMode
property to specify
the behavior when data is read from the database and when data is
committed into the database.Enum Constant and Description |
---|
BYPASS
Don't insert into cache.
|
REFRESH
Insert/update entity data into cache when read
from database and when committed into database.
|
USE
Insert entity data into cache when read from database
and insert/update entity data when committed into database:
this is the default behavior.
|
Modifier and Type | Method and Description |
---|---|
static CacheStoreMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheStoreMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheStoreMode USE
public static final CacheStoreMode BYPASS
public static final CacheStoreMode REFRESH
public static CacheStoreMode[] values()
for (CacheStoreMode c : CacheStoreMode.values()) System.out.println(c);
public static CacheStoreMode 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