public final class

CacheMode

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.CacheMode

Class Overview

Controls how the session interacts with the second-level cache and query cache.

Summary

Fields
public static final CacheMode GET The session may read items from the cache, but will not add items, except to invalidate items when updates occur
public static final CacheMode IGNORE The session will never interact with the cache, except to invalidate cache items when updates occur
public static final CacheMode NORMAL The session may read items from the cache, and add items to the cache
public static final CacheMode PUT The session will never read items from the cache, but will add items to the cache as it reads them from the database.
public static final CacheMode REFRESH The session will never read items from the cache, but will add items to the cache as it reads them from the database.
Public Methods
boolean isGetEnabled()
boolean isPutEnabled()
static CacheMode parse(String name)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final CacheMode GET

The session may read items from the cache, but will not add items, except to invalidate items when updates occur

public static final CacheMode IGNORE

The session will never interact with the cache, except to invalidate cache items when updates occur

public static final CacheMode NORMAL

The session may read items from the cache, and add items to the cache

public static final CacheMode PUT

The session will never read items from the cache, but will add items to the cache as it reads them from the database.

public static final CacheMode REFRESH

The session will never read items from the cache, but will add items to the cache as it reads them from the database. In this mode, the effect of hibernate.cache.use_minimal_puts is bypassed, in order to force a cache refresh

Public Methods

public boolean isGetEnabled ()

public boolean isPutEnabled ()

public static CacheMode parse (String name)

public String toString ()