Package org.hibernate.dialect
Enum SelectItemReferenceStrategy
- java.lang.Object
-
- java.lang.Enum<SelectItemReferenceStrategy>
-
- org.hibernate.dialect.SelectItemReferenceStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<SelectItemReferenceStrategy>
public enum SelectItemReferenceStrategy extends Enum<SelectItemReferenceStrategy>
Strategies for referring to a select item.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIAS
Refer to the item via its alias.EXPRESSION
The default strategy i.e.POSITION
Refer to the item via its position.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SelectItemReferenceStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static SelectItemReferenceStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPRESSION
public static final SelectItemReferenceStrategy EXPRESSION
The default strategy i.e. render the expression again.
-
ALIAS
public static final SelectItemReferenceStrategy ALIAS
Refer to the item via its alias.
-
POSITION
public static final SelectItemReferenceStrategy POSITION
Refer to the item via its position.
-
-
Method Detail
-
values
public static SelectItemReferenceStrategy[] 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 (SelectItemReferenceStrategy c : SelectItemReferenceStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SelectItemReferenceStrategy 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
-
-