Package org.hibernate.query
Enum ImmutableEntityUpdateQueryHandlingMode
- java.lang.Object
-
- java.lang.Enum<ImmutableEntityUpdateQueryHandlingMode>
-
- org.hibernate.query.ImmutableEntityUpdateQueryHandlingMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ImmutableEntityUpdateQueryHandlingMode>
public enum ImmutableEntityUpdateQueryHandlingMode extends java.lang.Enum<ImmutableEntityUpdateQueryHandlingMode>
This enum defines howImmutable
entities are handled when executing a bulk update statement. By default, the (WARNING
) mode is used, meaning that a warning log message is issued when anImmutable
entity is to be updated via a bulk update statement. If the (EXCEPTION
) mode is used, then aHibernateException
is thrown instead.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImmutableEntityUpdateQueryHandlingMode
interpret(java.lang.Object mode)
Interpret the configuredImmutableEntityUpdateQueryHandlingMode
value.static ImmutableEntityUpdateQueryHandlingMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ImmutableEntityUpdateQueryHandlingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WARNING
public static final ImmutableEntityUpdateQueryHandlingMode WARNING
-
EXCEPTION
public static final ImmutableEntityUpdateQueryHandlingMode EXCEPTION
-
-
Method Detail
-
values
public static ImmutableEntityUpdateQueryHandlingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImmutableEntityUpdateQueryHandlingMode c : ImmutableEntityUpdateQueryHandlingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImmutableEntityUpdateQueryHandlingMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
interpret
public static ImmutableEntityUpdateQueryHandlingMode interpret(java.lang.Object mode)
Interpret the configuredImmutableEntityUpdateQueryHandlingMode
value. Valid values are either aImmutableEntityUpdateQueryHandlingMode
object or its String representation. For string values, the matching is case insensitive, so you can use eitherwarning
orexception
(case insensitive).- Parameters:
mode
- configuredImmutableEntityUpdateQueryHandlingMode
representation- Returns:
- associated
ImmutableEntityUpdateQueryHandlingMode
object
-
-