Package org.hibernate.annotations
Enum Class CacheModeType
- All Implemented Interfaces:
Serializable,Comparable<CacheModeType>,Constable
Deprecated.
Enumerates the different interaction modes between the session
and the second-level Cache. This enumeration is isomorphic to
CacheMode and exists only for historical reasons.- Author:
- Emmanuel Bernard, Carlos Gonzalez-Cadenas
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Corresponds toCacheMode.GET.Deprecated.Corresponds toCacheMode.IGNORE.Deprecated.Corresponds toCacheMode.NORMAL.Deprecated.Corresponds toCacheMode.PUT.Deprecated.Corresponds toCacheMode.REFRESH. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheModeTypefromCacheMode(CacheMode cacheMode) Deprecated.Conversion fromCacheModetoCacheModeType.Deprecated.static CacheModeTypeDeprecated.Returns the enum constant of this class with the specified name.static CacheModeType[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GET
Deprecated.Corresponds toCacheMode.GET.- See Also:
-
IGNORE
Deprecated.Corresponds toCacheMode.IGNORE.- See Also:
-
NORMAL
Deprecated.Corresponds toCacheMode.NORMAL.- See Also:
-
PUT
Deprecated.Corresponds toCacheMode.PUT.- See Also:
-
REFRESH
Deprecated.Corresponds toCacheMode.REFRESH.- See Also:
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
getCacheMode
Deprecated. -
fromCacheMode
Deprecated.Conversion fromCacheModetoCacheModeType.- Parameters:
cacheMode- The cache mode to convert- Returns:
- The corresponding enum value.
Will be
nullif the givenaccessTypeisnull.
-
CacheModeorCacheStoreModeandCacheRetrieveMode.