Top Description Fields Constructors Methods
org.hibernate.dialect

public Class ResultColumnReferenceStrategy

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, .ObjectStreamException, java.util.Map, .HashMap

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.

private static final Map<K, V>
private final String
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
public

Method Summary

Modifier and TypeMethod and Description
public static ResultColumnReferenceStrategy
parse(String name)

private Object
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

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.

INSTANCESback to summary
private static final Map<K, V> INSTANCES
nameback to summary
private final String name
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
public ResultColumnReferenceStrategy(String name)

Method Detail

parseback to summary
public static ResultColumnReferenceStrategy parse(String name)
readResolveback to summary
private Object readResolve() throws ObjectStreamException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.