Package org.hibernate.hql.ast.tree
Class ResultVariableRefNode
java.lang.Object
antlr.BaseAST
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
- All Implemented Interfaces:
antlr.collections.AST,Serializable,InitializeableNode
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.- See Also:
-
Field Summary
Fields inherited from class antlr.BaseAST
down, right -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRenderText(SessionFactoryImplementor sessionFactory) Retrieve the text to be used for rendering this particular node.voidsetSelectExpression(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, initializeMethods inherited from class org.hibernate.hql.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setTextMethods inherited from class org.hibernate.hql.ast.tree.Node
getColumn, getFilename, getLine, getTextLength, initialize, initializeMethods inherited from class antlr.CommonAST
getText, getType, initialize, setTypeMethods 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
-
Constructor Details
-
ResultVariableRefNode
public ResultVariableRefNode()
-
-
Method Details
-
setSelectExpression
Set the select expression that defines the result variable.- Parameters:
selectExpression- the select expression; selectExpression.getAlias() must be non-null- Throws:
antlr.SemanticException- if selectExpression or selectExpression.getAlias() is null.
-
getRenderText
Retrieve the text to be used for rendering this particular node.- Overrides:
getRenderTextin classNode- Parameters:
sessionFactory- The session factory- Returns:
- The text to use for rendering
-