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

public Class Case2Node

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

Represents a case ... when .. then ... else ... end expression in a select.
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Type
getDataType()

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

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

Returns the data type of the select expression.
private SelectExpression
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

Case2Nodeback to summary
public Case2Node()

Method Detail

getDataTypeback to summary
public Type getDataType()

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

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

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

Returns the data type of the select expression.

Returns:Type

The data type of the select expression.

getFirstThenNodeback to summary
private SelectExpression getFirstThenNode()
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.