Enum Class ImmutableEntityUpdateQueryHandlingMode

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

@Deprecated(since="7.0", forRemoval=true) public enum ImmutableEntityUpdateQueryHandlingMode extends Enum<ImmutableEntityUpdateQueryHandlingMode>
Deprecated, for removal: This API element is subject to removal in a future version.
This enumeration will be removed, and replaced with a simpler boolean-valued switch.
Controls how immutable entities are handled when executing a bulk update or delete statement.

By default, the EXCEPTION mode is used, and so bulk update or delete queries affecting immutable entities are disallowed.

See Also:
  • Enum Constant Details

    • ALLOW

      public static final ImmutableEntityUpdateQueryHandlingMode ALLOW
      Deprecated, for removal: This API element is subject to removal in a future version.
      Allow update or delete queries for immutable entities.
    • WARNING

      public static final ImmutableEntityUpdateQueryHandlingMode WARNING
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log a warning when an immutable entity is affected by a bulk update or delete statement.
    • EXCEPTION

      public static final ImmutableEntityUpdateQueryHandlingMode EXCEPTION
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throw a HibernateException when an immutable entity is affected by a bulk update or delete statement.
  • Method Details

    • values

      public static ImmutableEntityUpdateQueryHandlingMode[] 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 ImmutableEntityUpdateQueryHandlingMode 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
    • interpret

      public static ImmutableEntityUpdateQueryHandlingMode interpret(Object setting)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Interpret the setting specified via "hibernate.query.immutable_entity_update_query_handling_mode".

      Valid values are an instance of ImmutableEntityUpdateQueryHandlingMode or its string representation. For string values, the matching is case-insensitive, so allow, warning, or exception are legal values.

      Parameters:
      setting - the configuration setting.
      Returns:
      the associated ImmutableEntityUpdateQueryHandlingMode object