Package org.hibernate.dialect
Enum Class ResultColumnReferenceStrategy
- All Implemented Interfaces:
Serializable
,Comparable<ResultColumnReferenceStrategy>
,Constable
Defines how we need to reference columns in the group-by, having, and order-by
clauses.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor databases which do not supportSOURCE
, ANSI SQL defines two allowable approaches.For databases which do not supportSOURCE
, ANSI SQL defines two allowable approaches.This strategy says to reference the result columns by the qualified column name found in the result source. -
Method Summary
Modifier and TypeMethodDescriptionresolveByName
(String name) Resolves the strategy by name, in a case insensitive manner.Returns the enum constant of this class with the specified name.static ResultColumnReferenceStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOURCE
This strategy says to reference the result columns by the qualified column name found in the result source. This strategy is not strictly allowed by ANSI SQL but is Hibernate's legacy behavior and is also the fastest of the strategies; thus it should be used if supported by the underlying database. -
ALIAS
-
ORDINAL
-
-
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
-
resolveByName
Resolves the strategy by name, in a case insensitive manner. If the name cannot be resolved,SOURCE
is returned as the default.- Parameters:
name
- The strategy name to resolve- Returns:
- The resolved strategy
-