Package org.hibernate.query.criteria
Enum ValueHandlingMode
- java.lang.Object
-
- java.lang.Enum<ValueHandlingMode>
-
- org.hibernate.query.criteria.ValueHandlingMode
-
- All Implemented Interfaces:
Serializable,Comparable<ValueHandlingMode>
public enum ValueHandlingMode extends Enum<ValueHandlingMode>
This enum defines how values passed to JPA Criteria API are handled.- The
BINDmode (default) will use bind variables for any value. - The
INLINEmode inlines values as literals.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueHandlingModeinterpret(Object valueHandlingMode)Interpret the configured valueHandlingMode value.static ValueHandlingModevalueOf(String name)Returns the enum constant of this type with the specified name.static ValueHandlingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIND
public static final ValueHandlingMode BIND
-
INLINE
public static final ValueHandlingMode INLINE
-
-
Method Detail
-
values
public static ValueHandlingMode[] 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 (ValueHandlingMode c : ValueHandlingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueHandlingMode 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 ValueHandlingMode interpret(Object valueHandlingMode)
Interpret the configured valueHandlingMode value. Valid values are either aValueHandlingModeobject or its String representation. For string values, the matching is case insensitive, so you can use eitherBINDorbind.- Parameters:
valueHandlingMode- configuredValueHandlingModerepresentation- Returns:
- associated
ValueHandlingModeobject
-
-