org.hibernate.hql.ast.tree

Class UnaryArithmeticNode

Implemented Interfaces:
InitializeableNode, OperatorNode, SelectExpression, UnaryOperatorNode

public class UnaryArithmeticNode
extends AbstractSelectExpression
implements UnaryOperatorNode

Method Summary

Type
getDataType()
Returns the data type of the select expression.
Node
getOperand()
void
initialize()
void
setScalarColumnText(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, isConstructor, isReturnableEntity, isScalar, setAlias

Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode

getASTFactory, getAliasGenerator, getSessionFactoryHelper, getWalker, initialize

Methods inherited from class org.hibernate.hql.ast.tree.SqlNode

getDataType, getOriginalText, setDataType, setText

Methods inherited from class org.hibernate.hql.ast.tree.Node

getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize

Method Details

getDataType

public Type getDataType()
Returns the data type of the select expression.
Specified by:
getDataType in interface OperatorNode
getDataType in interface SelectExpression
Overrides:
getDataType in interface SqlNode
Returns:
The data type of the select expression.

getOperand

public Node getOperand()
Specified by:
getOperand in interface UnaryOperatorNode

initialize

public void initialize()
Specified by:
initialize in interface OperatorNode

setScalarColumnText

public void setScalarColumnText(int i)
            throws SemanticException
Appends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')
Specified by:
setScalarColumnText in interface SelectExpression
Parameters:
i - The index of the select expression in the projection list.