org.hibernate
public final class CacheMode extends java.lang.Object implements java.io.Serializable
Session.setCacheMode(CacheMode)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static CacheMode |
GET
The session may read items from the cache, but will not add items,
except to invalidate items when updates occur
|
static CacheMode |
IGNORE
The session will never interact with the cache, except to invalidate
cache items when updates occur
|
static CacheMode |
NORMAL
The session may read items from the cache, and add items to the cache
|
static 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.
|
static 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isGetEnabled() |
boolean |
isPutEnabled() |
static CacheMode |
parse(java.lang.String name) |
java.lang.String |
toString() |
public static final CacheMode NORMAL
public static final CacheMode IGNORE
public static final CacheMode GET
public static final CacheMode PUT
public static final CacheMode REFRESH
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isPutEnabled()
public boolean isGetEnabled()
public static CacheMode parse(java.lang.String name)
Copyright © 2014. All Rights Reserved.