Package com.saperion.rmi
Enum Class SaQueryInfo.QueryCacheMode
- All Implemented Interfaces:
Serializable
,Comparable<SaQueryInfo.QueryCacheMode>
,Constable
- Enclosing class:
- SaQueryInfo
Cache modes from hibernate.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe session may read items from the cache, but will not add items, except to invalidate items when updates occur.The session will never interact with the cache, except to invalidate cache items when updates occur.The session may read items from the cache, and add items to the cache.The session will never read items from the cache, but will add items to the cache as it reads them from the database.The session will never read items from the cache, but will add items to the cache as it reads them from the database. -
Method Summary
Modifier and TypeMethodDescriptionstatic SaQueryInfo.QueryCacheMode
Returns the enum constant of this class with the specified name.static SaQueryInfo.QueryCacheMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant 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
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-