Package org.hibernate.query.spi
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Allow update or delete queries for immutable entities.Deprecated, for removal: This API element is subject to removal in a future version.Throw aHibernateException
when an immutable entity is affected by a bulk update or delete statement.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. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, 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".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.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.
-
Enum Constant Details
-
ALLOW
Deprecated, for removal: This API element is subject to removal in a future version.Allow update or delete queries for immutable entities. -
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
Deprecated, for removal: This API element is subject to removal in a future version.Throw aHibernateException
when an immutable entity is affected by a bulk update or delete statement.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
interpret
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, soallow
,warning
, orexception
are legal values.- Parameters:
setting
- the configuration setting.- Returns:
- the associated
ImmutableEntityUpdateQueryHandlingMode
object
-