public class ResultVariableRefNode extends HqlSqlWalkerNode
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.Constructor and Description |
---|
ResultVariableRefNode() |
Modifier and Type | Method and Description |
---|---|
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.
|
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
getDataType, getOriginalText, setDataType, setText
getColumn, getFilename, getLine, getTextLength, initialize, initialize
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
public void setSelectExpression(SelectExpression selectExpression) throws antlr.SemanticException
selectExpression
- the select expression;
selectExpression.getAlias() must be non-nullantlr.SemanticException
- if selectExpression or
selectExpression.getAlias() is null.public String getRenderText(SessionFactoryImplementor sessionFactory)
getRenderText
in class Node
sessionFactory
- The session factoryCopyright © 2018 JBoss by Red Hat. All rights reserved.