public class

CaseNode

extends AbstractSelectExpression
implements SelectExpression
java.lang.Object
   ↳ antlr.CommonAST
     ↳ org.hibernate.hql.ast.tree.Node
       ↳ org.hibernate.hql.ast.tree.SqlNode
         ↳ org.hibernate.hql.ast.tree.HqlSqlWalkerNode
           ↳ org.hibernate.hql.ast.tree.AbstractSelectExpression
             ↳ org.hibernate.hql.ast.tree.CaseNode

Class Overview

Represents a case ... when .. then ... else ... end expression in a select.

Summary

Public Constructors
CaseNode()
Public Methods
Type getDataType()
void setScalarColumnText(int i)
Appends AST nodes that represent the columns after the current AST node.
[Expand]
Inherited Methods
From class org.hibernate.hql.ast.tree.AbstractSelectExpression
From class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
From class org.hibernate.hql.ast.tree.SqlNode
From class org.hibernate.hql.ast.tree.Node
From class java.lang.Object
From interface org.hibernate.hql.ast.tree.InitializeableNode
From interface org.hibernate.hql.ast.tree.SelectExpression

Public Constructors

public CaseNode ()

Public Methods

public Type getDataType ()

public void setScalarColumnText (int i)

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

Parameters
i The index of the select expression in the projection list.
Throws
SemanticException