Enum Class QueryFlushMode

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

@Deprecated(since="7.4", forRemoval=true) public enum QueryFlushMode extends Enum<QueryFlushMode>
Deprecated, for removal: This API element is subject to removal in a future version.
Starting in 4.0, Jakarta Persistence defines its owm jakarta.persistence.QueryFlushMode with the same name, values and intent as this one.
Enumerates the possible flush modes for execution of a Query. An explicitly-specified query-level flush mode overrides the current flush mode of the session.
Since:
7.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Let the owning session decide whether to flush, depending on its current FlushMode.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Flush before executing the query.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Do not flush before executing the query.
  • 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.
    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 Object

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

    • FLUSH

      public static final QueryFlushMode FLUSH
      Deprecated, for removal: This API element is subject to removal in a future version.
      Flush before executing the query.
    • NO_FLUSH

      public static final QueryFlushMode NO_FLUSH
      Deprecated, for removal: This API element is subject to removal in a future version.
      Do not flush before executing the query.
    • DEFAULT

      public static final QueryFlushMode DEFAULT
      Deprecated, for removal: This API element is subject to removal in a future version.
      Let the owning session decide whether to flush, depending on its current FlushMode.
      See Also:
  • Method Details

    • values

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