public enum CacheStoreMode extends 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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.