org.hibernate.hql.ast.tree
Class SelectClause
- InitializeableNode
public class SelectClause
Represents the list of expressions in a SELECT clause.
VERSION2_SQL
public static boolean VERSION2_SQL
getCollectionFromElements
public List getCollectionFromElements()
getColumnNames
public String[][] getColumnNames()
The column alias names being used in the generated SQL.
getConstructor
public Constructor getConstructor()
The constructor to use for dynamic instantiation queries.
- The appropriate Constructor reference, or null if not a
dynamic instantiation query.
getFirstSelectExpression
protected AST getFirstSelectExpression()
Returns the first select expression node that should be considered when building the array of select
expressions.
- getFirstSelectExpression in interface SelectExpressionList
- the first select expression node that should be considered when building the array of select
expressions
getFromElementsForLoad
public List getFromElementsForLoad()
FromElements which need to be accounted for in the load phase (either for return or for fetch).
- List of appropriate FromElements.
getQueryReturnAliases
public String[] getQueryReturnAliases()
The HQL aliases, or generated aliases
getQueryReturnTypes
public Type[] getQueryReturnTypes()
The types actually being returned from this query at the "object level".
initializeDerivedSelectClause
public void initializeDerivedSelectClause(FromClause fromClause)
throws SemanticException
Prepares a derived (i.e., not explicitly defined in the query) select clause.
fromClause
- The from clause to which this select clause is linked.
initializeExplicitSelectClause
public void initializeExplicitSelectClause(FromClause fromClause)
throws SemanticException
Prepares an explicitly defined select clause.
fromClause
- The from clause linked to this select clause.
isDistinct
public boolean isDistinct()
isList
public boolean isList()
isMap
public boolean isMap()
isScalarSelect
public boolean isScalarSelect()
Does this SelectClause represent a scalar query
- True if this is a scalara select clause; false otherwise.