Top Description Fields Constructors Methods
javax.persistence

public final Enum CacheStoreMode

extends Enum<CacheStoreMode>
Class Inheritance

Used as the value of the javax.persistence.cache.storeMode property to specify the behavior when data is read from the database and when data is committed into the database.
Since
Java Persistence 2.0

Field Summary

Modifier and TypeField and Description
public static final CacheStoreMode
BYPASS

Don't insert into cache.

public static final CacheStoreMode
REFRESH

Insert/update entity data into cache when read from database and when committed into database.

public static final CacheStoreMode
USE

Insert entity data into cache when read from database and insert/update entity data when committed into database: this is the default behavior.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

BYPASSback to summary
public static final CacheStoreMode BYPASS

Don't insert into cache.

REFRESHback to summary
public static final CacheStoreMode REFRESH

Insert/update entity data into cache when read from database and when committed into database. Forces refresh of cache for items read from database.

USEback to summary
public static final CacheStoreMode USE

Insert entity data into cache when read from database and insert/update entity data when committed into database: this is the default behavior. Does not force refresh of already cached items when reading from database.

Constructor Detail

CacheStoreModeback to summary
private CacheStoreMode()

Method Detail

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