public enumCacheStoreModeextendsEnum<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 |
|---|---|
staticCacheStoreMode | valueOf(String name)Returns the enum constant of this type with the specified name. |
staticCacheStoreMode[] | values()Returns an array containing the constants of this enum type, inthe 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 tolicense terms.