public class SelectClause extends SelectExpressionList
Modifier and Type | Field and Description |
---|---|
static boolean |
VERSION2_SQL |
Constructor and Description |
---|
SelectClause() |
Modifier and Type | Method and Description |
---|---|
AggregatedSelectExpression |
getAggregatedSelectExpression() |
List |
getCollectionFromElements() |
String[][] |
getColumnNames()
The column alias names being used in the generated SQL.
|
int |
getColumnNamesStartPosition(int i) |
protected antlr.collections.AST |
getFirstSelectExpression()
Returns the first select expression node that should be considered when building the array of select
expressions.
|
List |
getFromElementsForLoad()
FromElements which need to be accounted for in the load phase (either for return or for fetch).
|
String[] |
getQueryReturnAliases()
The HQL aliases, or generated aliases
|
Type[] |
getQueryReturnTypes()
The types actually being returned from this query at the "object level".
|
void |
initializeDerivedSelectClause(FromClause fromClause)
Prepares a derived (i.e., not explicitly defined in the query) select clause.
|
void |
initializeExplicitSelectClause(FromClause fromClause)
Prepares an explicitly defined select clause.
|
boolean |
isDistinct() |
boolean |
isScalarSelect()
Does this SelectClause represent a scalar query
|
collectSelectExpressions, getParameterPositions, getTotalParameterCount
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
getDataType, getOriginalText, setDataType, setText
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
public boolean isScalarSelect()
public boolean isDistinct()
public List getFromElementsForLoad()
public Type[] getQueryReturnTypes()
public String[] getQueryReturnAliases()
public String[][] getColumnNames()
public AggregatedSelectExpression getAggregatedSelectExpression()
public void initializeExplicitSelectClause(FromClause fromClause) throws antlr.SemanticException
fromClause
- The from clause linked to this select clause.antlr.SemanticException
- indicates a semntic issue with the explicit select clause.public int getColumnNamesStartPosition(int i)
public void initializeDerivedSelectClause(FromClause fromClause) throws antlr.SemanticException
fromClause
- The from clause to which this select clause is linked.antlr.SemanticException
protected antlr.collections.AST getFirstSelectExpression()
SelectExpressionList
getFirstSelectExpression
in class SelectExpressionList
public List getCollectionFromElements()
Copyright © 2016 JBoss by Red Hat. All rights reserved.