Class 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.

See Also:
  • Constructor Details

    • ResultVariableRefNode

      public ResultVariableRefNode()
  • Method Details

    • setSelectExpression

      public void setSelectExpression(SelectExpression selectExpression) throws antlr.SemanticException
      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

      public String getRenderText(SessionFactoryImplementor sessionFactory)
      Retrieve the text to be used for rendering this particular node.
      Overrides:
      getRenderText in class Node
      Parameters:
      sessionFactory - The session factory
      Returns:
      The text to use for rendering