Package org.hibernate.hql.ast.tree
Class AggregateNode
- All Implemented Interfaces:
antlr.collections.AST,Serializable,FunctionNode,InitializeableNode,SelectExpression
public class AggregateNode
extends AbstractSelectExpression
implements SelectExpression, FunctionNode
Represents an aggregate function i.e. min, max, sum, avg.
- See Also:
-
Field Summary
Fields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data type of the select expression.booleanisScalar()voidresolve()voidsetScalarColumnText(int i) Appends AST nodes that represent the columns after the current AST node.Methods inherited from class org.hibernate.hql.ast.tree.AbstractSelectExpression
getAlias, getFromElement, getScalarColumnIndex, isConstructor, isReturnableEntity, setAlias, setScalarColumnMethods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initializeMethods inherited from class org.hibernate.hql.ast.tree.SqlNode
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, xmlSerializeRootOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.hql.ast.tree.SelectExpression
getAlias, getFromElement, getScalarColumnIndex, isConstructor, isReturnableEntity, setAlias, setScalarColumn, setText
-
Constructor Details
-
AggregateNode
public AggregateNode()
-
-
Method Details
-
getSQLFunction
- Specified by:
getSQLFunctionin interfaceFunctionNode
-
resolve
public void resolve() -
getFirstArgumentType
- Specified by:
getFirstArgumentTypein interfaceFunctionNode
-
getDataType
Description copied from interface:SelectExpressionReturns the data type of the select expression.- Specified by:
getDataTypein interfaceSelectExpression- Overrides:
getDataTypein classSqlNode- Returns:
- The data type of the select expression.
-
setScalarColumnText
Description copied from interface:SelectExpressionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')- Specified by:
setScalarColumnTextin interfaceSelectExpression- Parameters:
i- The index of the select expression in the projection list.- Throws:
antlr.SemanticException
-
isScalar
- Specified by:
isScalarin interfaceSelectExpression- Overrides:
isScalarin classAbstractSelectExpression- Throws:
antlr.SemanticException
-