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 | 
|---|
| BYPASSDon't insert into cache. | 
| REFRESHInsert/update entity data into cache when read 
 from database and when committed into database. | 
| USEInsert 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 © 2017. All Rights Reserved.