public class

ResultVariableRefNode

extends HqlSqlWalkerNode
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.ResultVariableRefNode

Class Overview

Represents a reference to a result_variable as defined in the JPA 2 spec. For example: select v as value from tab1 order by value

"value" used in the order by clause is a reference to the result_variable, "value", defined in the select clause.

Summary

Public Constructors
ResultVariableRefNode()
Public Methods
String getRenderText(SessionFactoryImplementor sessionFactory)
Retrieve the text to be used for rendering this particular node.
void setSelectExpression(SelectExpression selectExpression)
Set the select expression that defines the result variable.
[Expand]
Inherited Methods
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

Public Constructors

public ResultVariableRefNode ()

Public Methods

public String getRenderText (SessionFactoryImplementor sessionFactory)

Retrieve the text to be used for rendering this particular node.

Parameters
sessionFactory The session factory
Returns
  • The text to use for rendering

public void setSelectExpression (SelectExpression selectExpression)

Set the select expression that defines the result variable.

Parameters
selectExpression the select expression; selectExpression.getAlias() must be non-null
Throws
if selectExpression or selectExpression.getAlias() is null.
SemanticException