Class ResultVariableRefNode

  extended by antlr.BaseAST
      extended by antlr.CommonAST
          extended by org.hibernate.hql.ast.tree.Node
              extended by org.hibernate.hql.ast.tree.SqlNode
                  extended by org.hibernate.hql.ast.tree.HqlSqlWalkerNode
                      extended by org.hibernate.hql.ast.tree.ResultVariableRefNode
All Implemented Interfaces:
antlr.collections.AST, Serializable, InitializeableNode

public class ResultVariableRefNode
extends HqlSqlWalkerNode

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.

Gail Badner
See Also:
Serialized Form

Field Summary
Fields inherited from class antlr.BaseAST
down, right
Constructor Summary
Method Summary
 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.
Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, 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, getTextLength, initialize, initialize
Methods inherited from class antlr.CommonAST
getText, getType, initialize, setType
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public ResultVariableRefNode()
Method Detail


public void setSelectExpression(SelectExpression selectExpression)
                         throws antlr.SemanticException
Set the select expression that defines the result variable.

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


public String getRenderText(SessionFactoryImplementor sessionFactory)
Retrieve the text to be used for rendering this particular node.

getRenderText in class Node
sessionFactory - The session factory
The text to use for rendering

Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.