Session#setCacheMode(CacheMode)
| Modifier and Type | Field and Description |
|---|---|
| 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 |
| private static final Map | |
| private final boolean | |
| private final boolean | |
| private final String | |
| 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. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public static CacheMode | |
| private Object | |
| public String |
| GET | back to summary |
|---|---|
| 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 | |
| IGNORE | back to summary |
|---|---|
| public static final CacheMode IGNORE The session will never interact with the cache, except to invalidate cache items when updates occur | |
| INSTANCES | back to summary |
|---|---|
| private static final Map<K, V> INSTANCES | |
| isGetEnabled | back to summary |
|---|---|
| private final boolean isGetEnabled | |
| isPutEnabled | back to summary |
|---|---|
| private final boolean isPutEnabled | |
| name | back to summary |
|---|---|
| private final String name | |
| NORMAL | back to summary |
|---|---|
| public static final CacheMode NORMAL The session may read items from the cache, and add items to the cache | |
| PUT | back to summary |
|---|---|
| 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. | |
| REFRESH | back to summary |
|---|---|
| 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 | |
| CacheMode | back to summary |
|---|---|
| private CacheMode(String name, boolean isPutEnabled, boolean isGetEnabled) | |
| isGetEnabled | back to summary |
|---|---|
| public boolean isGetEnabled() | |
| isPutEnabled | back to summary |
|---|---|
| public boolean isPutEnabled() | |
| parse | back to summary |
|---|---|
| public static CacheMode parse(String name) | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |