Top Description Fields Constructors Methods
org.hibernate.hql.internal.ast.tree

public Class AggregateNode

extends AbstractSelectExpression
implements SelectExpression, FunctionNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.internal.ast.tree.FunctionNode, org.hibernate.hql.internal.ast.tree.SelectExpression
Imports
org.hibernate.dialect.function.SQLFunction, .StandardSQLFunction, org.hibernate.hql.internal.ast.util.ColumnHelper, org.hibernate.internal.CoreMessageLogger, org.hibernate.type.Type, org.jboss.logging.Logger, antlr.SemanticException, antlr.collections.AST

Represents an aggregate function i.e. min, max, sum, avg.
Author
Joshua Davis

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger
private SQLFunction

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Type
public Type
public SQLFunction
public boolean
public void
private SQLFunction
public void
setScalarColumnText(int
The index of the select expression in the projection list.
i
)

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumnText.

Appends AST nodes that represent the columns after the current AST node.
Inherited from org.hibernate.hql.internal.ast.tree.AbstractSelectExpression:
getAliasgetFromElementgetScalarColumnIndexisConstructorisReturnableEntitysetAliassetScalarColumn

Field Detail

LOGback to summary
private static final CoreMessageLogger LOG
sqlFunctionback to summary
private SQLFunction sqlFunction

Constructor Detail

AggregateNodeback to summary
public AggregateNode()

Method Detail

getDataTypeback to summary
public Type getDataType()

Overrides org.hibernate.hql.internal.ast.tree.SqlNode.getDataType.

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.getDataType.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.getDataType.

Returns the data type of the select expression.

Returns:Type

The data type of the select expression.

Annotations
@Override
getFirstArgumentTypeback to summary
public Type getFirstArgumentType()

Implements org.hibernate.hql.internal.ast.tree.FunctionNode.getFirstArgumentType.

getSQLFunctionback to summary
public SQLFunction getSQLFunction()

Implements org.hibernate.hql.internal.ast.tree.FunctionNode.getSQLFunction.

isScalarback to summary
public boolean isScalar() throws SemanticException

Overrides org.hibernate.hql.internal.ast.tree.AbstractSelectExpression.isScalar.

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.isScalar.

Annotations
@Override
resolveback to summary
public void resolve()
resolveFunctionback to summary
private SQLFunction resolveFunction()
setScalarColumnTextback to summary
public void setScalarColumnText(int i) throws SemanticException

Implements org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumnText.

Doc from org.hibernate.hql.internal.ast.tree.SelectExpression.setScalarColumnText.

Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')

Parameters
i:int

The index of the select expression in the projection list.

Exceptions
SemanticException:
if a semantic error occurs