Enum Class FlushModeType

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

@Deprecated(since="7", forRemoval=true) public enum FlushModeType extends Enum<FlushModeType>
Deprecated, for removal: This API element is subject to removal in a future version.
Use QueryFlushMode. This enumeration will be removed to alleviate the duplication in naming with FlushModeType.
Enumeration extending the JPA flush modes with flush modes specific to Hibernate, and a "null" mode, PERSISTENCE_CONTEXT, for use as a default annotation value. Except for the null value, this enumeration is isomorphic to FlushMode.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Corresponds to FlushMode.ALWAYS.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Corresponds to FlushMode.AUTO.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Corresponds to FlushMode.COMMIT.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Corresponds to FlushMode.MANUAL.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Current flush mode of the persistence context at the time the query is executed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the enum constant of this class with the specified name.
    static FlushModeType[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ALWAYS

      public static final FlushModeType ALWAYS
      Deprecated, for removal: This API element is subject to removal in a future version.
      Corresponds to FlushMode.ALWAYS.
    • AUTO

      public static final FlushModeType AUTO
      Deprecated, for removal: This API element is subject to removal in a future version.
      Corresponds to FlushMode.AUTO.
    • COMMIT

      public static final FlushModeType COMMIT
      Deprecated, for removal: This API element is subject to removal in a future version.
      Corresponds to FlushMode.COMMIT.
    • MANUAL

      public static final FlushModeType MANUAL
      Deprecated, for removal: This API element is subject to removal in a future version.
      Corresponds to FlushMode.MANUAL.
    • PERSISTENCE_CONTEXT

      public static final FlushModeType PERSISTENCE_CONTEXT
      Deprecated, for removal: This API element is subject to removal in a future version.
      Current flush mode of the persistence context at the time the query is executed.
  • Method Details

    • values

      public static FlushModeType[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 FlushModeType valueOf(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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