Enum Class SelectItemReferenceStrategy
java.lang.Object
java.lang.Enum<SelectItemReferenceStrategy>
org.hibernate.dialect.sql.ast.spi.SelectItemReferenceStrategy
- All Implemented Interfaces:
Serializable, Comparable<SelectItemReferenceStrategy>, Constable
@SPI({USE,SUPPLY})
public enum SelectItemReferenceStrategy
extends Enum<SelectItemReferenceStrategy>
How a SQL AST translator refers to a select item from a group by clause.
Supply the least database-specific form which preserves the rendered select semantics. The translator defaults to repeating the expression.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRefer to the item by its select alias.Render the selected expression again.Refer to the item by its one-based select-list position. -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectItemReferenceStrategyReturns the enum constant of this class with the specified name.static SelectItemReferenceStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPRESSION
Render the selected expression again. -
ALIAS
Refer to the item by its select alias. -
POSITION
Refer to the item by its one-based select-list position.
-
-
Method Details
-
values
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
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
-