Package org.hibernate.query
Enum ImmutableEntityUpdateQueryHandlingMode
- java.lang.Object
-
- java.lang.Enum<ImmutableEntityUpdateQueryHandlingMode>
-
- org.hibernate.query.ImmutableEntityUpdateQueryHandlingMode
-
- All Implemented Interfaces:
Serializable,Comparable<ImmutableEntityUpdateQueryHandlingMode>
public enum ImmutableEntityUpdateQueryHandlingMode extends Enum<ImmutableEntityUpdateQueryHandlingMode>
This enum defines howImmutableentities are handled when executing a bulk update statement. By default, the (WARNING) mode is used, meaning that a warning log message is issued when anImmutableentity is to be updated via a bulk update statement. If the (EXCEPTION) mode is used, then aHibernateExceptionis thrown instead.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImmutableEntityUpdateQueryHandlingModeinterpret(Object mode)Interpret the configuredImmutableEntityUpdateQueryHandlingModevalue.static ImmutableEntityUpdateQueryHandlingModevalueOf(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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
interpret
public static ImmutableEntityUpdateQueryHandlingMode interpret(Object mode)
Interpret the configuredImmutableEntityUpdateQueryHandlingModevalue. Valid values are either aImmutableEntityUpdateQueryHandlingModeobject or its String representation. For string values, the matching is case insensitive, so you can use eitherwarningorexception(case insensitive).- Parameters:
mode- configuredImmutableEntityUpdateQueryHandlingModerepresentation- Returns:
- associated
ImmutableEntityUpdateQueryHandlingModeobject
-
-