Enum Class CacheModeType

java.lang.Object
java.lang.Enum<CacheModeType>
org.hibernate.annotations.CacheModeType
All Implemented Interfaces:
Serializable, Comparable<CacheModeType>, Constable

@Deprecated(since="6.2") @Remove public enum CacheModeType extends Enum<CacheModeType>
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
  • Enum Constant Details

  • Method Details

    • values

      public static CacheModeType[] 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

      public static CacheModeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCacheMode

      public CacheMode getCacheMode()
      Deprecated.
    • fromCacheMode

      public static CacheModeType fromCacheMode(CacheMode cacheMode)
      Deprecated.
      Conversion from CacheMode to CacheModeType.
      Parameters:
      cacheMode - The cache mode to convert
      Returns:
      The corresponding enum value. Will be null if the given accessType is null.