public enumCacheRetrieveModeextendsEnum<CacheRetrieveMode>
javax.persistence.cache.retrieveMode property to specify the behavior when data is retrieved by thefind methods and by queries.| Enum Constant and Description |
|---|
BYPASSBypass the cache: get data directly from the database. |
USERead entity data from the cache: this is the default behavior. |
| Modifier and Type | Method and Description |
|---|---|
staticCacheRetrieveMode | valueOf(String name)Returns the enum constant of this type with the specified name. |
staticCacheRetrieveMode[] | values()Returns an array containing the constants of this enum type, inthe order they are declared. |
public static final CacheRetrieveMode USE
public static final CacheRetrieveMode BYPASS
public static CacheRetrieveMode[] values()
for (CacheRetrieveMode c : CacheRetrieveMode.values()) System.out.println(c);
public static CacheRetrieveMode 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.