Package org.hibernate
Class CacheMode
java.lang.Object
org.hibernate.CacheMode
- All Implemented Interfaces:
Serializable
Controls how the session interacts with the second-level
cache and query cache.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CacheModeThe session may read items from the cache, but will not add items, except to invalidate items when updates occurstatic final CacheModeThe session will never interact with the cache, except to invalidate cache items when updates occurstatic final CacheModeThe session may read items from the cache, and add items to the cachestatic final CacheModeThe session will never read items from the cache, but will add items to the cache as it reads them from the database.static final CacheModeThe session will never read items from the cache, but will add items to the cache as it reads them from the database. -
Method Summary
-
Field Details
-
NORMAL
The session may read items from the cache, and add items to the cache -
IGNORE
The session will never interact with the cache, except to invalidate cache items when updates occur -
GET
The session may read items from the cache, but will not add items, except to invalidate items when updates occur -
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
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
-
-
Method Details