Top Constructors Methods
org.hibernate.hql.ast.tree

public Class UnaryArithmeticNode

extends AbstractSelectExpression
implements UnaryOperatorNode
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.ast.tree.UnaryOperatorNode, org.hibernate.hql.ast.tree.OperatorNode
Imports
org.hibernate.hql.ast.util.ColumnHelper, org.hibernate.type.Type, antlr.SemanticException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Type
public Node
getOperand()

Implements org.hibernate.hql.ast.tree.UnaryOperatorNode.getOperand.

Retrievs the node representing the operator's single operand.
public void
initialize()

Implements org.hibernate.hql.ast.tree.OperatorNode.initialize.

Called by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.
public void
setScalarColumnText(int
The index of the select expression in the projection list.
i
)

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

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

Constructor Detail

UnaryArithmeticNodeback to summary
public UnaryArithmeticNode()

Method Detail

getDataTypeback to summary
public Type getDataType()

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

Implements org.hibernate.hql.ast.tree.OperatorNode.getDataType, org.hibernate.hql.ast.tree.SelectExpression.getDataType.

Doc from org.hibernate.hql.ast.tree.OperatorNode.getDataType.

Retrieves the data type for the overall operator expression.

Returns:Type

The expression's data type.

getOperandback to summary
public Node getOperand()

Implements org.hibernate.hql.ast.tree.UnaryOperatorNode.getOperand.

Doc from org.hibernate.hql.ast.tree.UnaryOperatorNode.getOperand.

Retrievs the node representing the operator's single operand.

Returns:Node

The operator's single operand.

initializeback to summary
public void initialize()

Implements org.hibernate.hql.ast.tree.OperatorNode.initialize.

Doc from org.hibernate.hql.ast.tree.OperatorNode.initialize.

Called by the tree walker during hql-sql semantic analysis after the operator sub-tree is completely built.

setScalarColumnTextback to summary
public void setScalarColumnText(int i) throws SemanticException

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

Doc from org.hibernate.hql.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.