Package org.hibernate.hql.ast.tree
Class SelectClause
- All Implemented Interfaces:
antlr.collections.AST,Serializable,InitializeableNode
Represents the list of expressions in a SELECT clause.
- See Also:
-
Field Summary
FieldsFields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[][]The column alias names being used in the generated SQL.intgetColumnNamesStartPosition(int i) protected antlr.collections.ASTReturns the first select expression node that should be considered when building the array of select expressions.FromElements which need to be accounted for in the load phase (either for return or for fetch).String[]The HQL aliases, or generated aliasesType[]The types actually being returned from this query at the "object level".voidinitializeDerivedSelectClause(FromClause fromClause) Prepares a derived (i.e., not explicitly defined in the query) select clause.voidinitializeExplicitSelectClause(FromClause fromClause) Prepares an explicitly defined select clause.booleanbooleanDoes this SelectClause represent a scalar queryMethods inherited from class org.hibernate.hql.ast.tree.SelectExpressionList
collectSelectExpressionsMethods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initializeMethods inherited from class org.hibernate.hql.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setTextMethods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initializeMethods inherited from class antlr.CommonAST
getText, getType, initialize, setTypeMethods inherited from class antlr.BaseAST
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
-
Field Details
-
VERSION2_SQL
public static boolean VERSION2_SQL
-
-
Constructor Details
-
SelectClause
public SelectClause()
-
-
Method Details
-
isScalarSelect
public boolean isScalarSelect()Does this SelectClause represent a scalar query- Returns:
- True if this is a scalara select clause; false otherwise.
-
isDistinct
public boolean isDistinct() -
getFromElementsForLoad
FromElements which need to be accounted for in the load phase (either for return or for fetch).- Returns:
- List of appropriate FromElements.
-
getQueryReturnTypes
The types actually being returned from this query at the "object level".- Returns:
- The query return types.
-
getQueryReturnAliases
The HQL aliases, or generated aliases- Returns:
- the aliases
-
getColumnNames
The column alias names being used in the generated SQL.- Returns:
- The SQL column aliases.
-
getAggregatedSelectExpression
-
initializeExplicitSelectClause
Prepares an explicitly defined select clause.- Parameters:
fromClause- The from clause linked to this select clause.- Throws:
antlr.SemanticException- indicates a semntic issue with the explicit select clause.
-
getColumnNamesStartPosition
public int getColumnNamesStartPosition(int i) -
initializeDerivedSelectClause
Prepares a derived (i.e., not explicitly defined in the query) select clause.- Parameters:
fromClause- The from clause to which this select clause is linked.- Throws:
antlr.SemanticException
-
getFirstSelectExpression
Description copied from class:SelectExpressionListReturns the first select expression node that should be considered when building the array of select expressions.- Specified by:
getFirstSelectExpressionin classSelectExpressionList- Returns:
- the first select expression node that should be considered when building the array of select expressions
-
getCollectionFromElements
-