Top Description Fields Constructors Methods
org.hibernate.hql.internal.ast.tree

public Class ResultVariableRefNode

extends HqlSqlWalkerNode
Class Inheritance
Imports
org.hibernate.engine.spi.SessionFactoryImplementor, antlr.SemanticException

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.

Author
Gail Badner

Field Summary

Modifier and TypeField and Description
private SelectExpression

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
getColumnNamesString(int scalarColumnIndex)

private String
getColumnPositionsString(int scalarColumnIndex)

public String
getRenderText(SessionFactoryImplementor
The session factory
sessionFactory
)

Overrides org.hibernate.hql.internal.ast.tree.Node.getRenderText.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Retrieve the text to be used for rendering this particular node.
public void
setSelectExpression(SelectExpression
the select expression; selectExpression.getAlias() must be non-null
selectExpression
)

Set the select expression that defines the result variable.

Inherited from org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode:
getAliasGeneratorgetASTFactorygetSessionFactoryHelpergetWalkerinitialize

Field Detail

selectExpressionback to summary
private SelectExpression selectExpression

Constructor Detail

ResultVariableRefNodeback to summary
public ResultVariableRefNode()

Method Detail

getColumnNamesStringback to summary
private String getColumnNamesString(int scalarColumnIndex)
getColumnPositionsStringback to summary
private String getColumnPositionsString(int scalarColumnIndex)
getRenderTextback to summary
public String getRenderText(SessionFactoryImplementor sessionFactory)

Overrides org.hibernate.hql.internal.ast.tree.Node.getRenderText.

Doc from org.hibernate.hql.internal.ast.tree.Node.getRenderText.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

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

Parameters
sessionFactory:SessionFactoryImplementor

The session factory

Returns:String

The text to use for rendering

Annotations
@Override
setSelectExpressionback to summary
public void setSelectExpression(SelectExpression selectExpression) throws SemanticException

Set the select expression that defines the result variable.

Parameters
selectExpression:SelectExpression

the select expression; selectExpression.getAlias() must be non-null

Exceptions
SemanticException:
if selectExpression or selectExpression.getAlias() is null.