Top Description Fields Constructors Methods
javax.persistence

public final Enum CacheRetrieveMode

extends Enum<CacheRetrieveMode>
Class Inheritance

Used as the value of the javax.persistence.cache.retrieveMode property to specify the behavior when data is retrieved by the find methods and by queries.
Since
Java Persistence 2.0

Field Summary

Modifier and TypeField and Description
public static final CacheRetrieveMode
BYPASS

Bypass the cache: get data directly from the database.

public static final CacheRetrieveMode
USE

Read entity data from the cache: this is the default behavior.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CacheRetrieveMode
public static CacheRetrieveMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BYPASSback to summary
public static final CacheRetrieveMode BYPASS

Bypass the cache: get data directly from the database.

USEback to summary
public static final CacheRetrieveMode USE

Read entity data from the cache: this is the default behavior.

Constructor Detail

CacheRetrieveModeback to summary
private CacheRetrieveMode()

Method Detail

valueOfback to summary
public static CacheRetrieveMode valueOf(String name)
valuesback to summary
public static CacheRetrieveMode[] values()