Top Description Fields Constructors Methods
org.hibernate.dialect

public final Enum ResultColumnReferenceStrategy

extends Enum<ResultColumnReferenceStrategy>
Class Inheritance

Defines how we need to reference columns in the group-by, having, and order-by clauses.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final ResultColumnReferenceStrategy
ALIAS

For databases which do not support SOURCE, ANSI SQL defines two allowable approaches.

public static final ResultColumnReferenceStrategy
ORDINAL

For databases which do not support SOURCE, ANSI SQL defines two allowable approaches.

public static final ResultColumnReferenceStrategy
SOURCE

This strategy says to reference the result columns by the qualified column name found in the result source.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ResultColumnReferenceStrategy

Returns:

The resolved strategy
resolveByName
(String
The strategy name to resolve
name
)

Resolves the strategy by name, in a case insensitive manner.

public static ResultColumnReferenceStrategy
public static ResultColumnReferenceStrategy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALIASback to summary
public static final ResultColumnReferenceStrategy ALIAS

For databases which do not support SOURCE, ANSI SQL defines two allowable approaches. One is to reference the result column by the alias it is given in the result source (if it is given an alias). This strategy says to use this approach.

The other QNSI SQL compliant approach is ORDINAL.

ORDINALback to summary
public static final ResultColumnReferenceStrategy ORDINAL

For databases which do not support SOURCE, ANSI SQL defines two allowable approaches. One is to reference the result column by the ordinal position at which it appears in the result source. This strategy says to use this approach.

The other QNSI SQL compliant approach is ALIAS.

SOURCEback to summary
public static final ResultColumnReferenceStrategy 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.

Constructor Detail

ResultColumnReferenceStrategyback to summary
private ResultColumnReferenceStrategy()

Method Detail

resolveByNameback to summary
public static ResultColumnReferenceStrategy resolveByName(String name)

Resolves the strategy by name, in a case insensitive manner. If the name cannot be resolved, SOURCE is returned as the default.

Parameters
name:String

The strategy name to resolve

Returns:ResultColumnReferenceStrategy

The resolved strategy

valueOfback to summary
public static ResultColumnReferenceStrategy valueOf(String name)
valuesback to summary
public static ResultColumnReferenceStrategy[] values()