类 ResultVariableRefNode
- java.lang.Object
-
- antlr.BaseAST
-
- antlr.CommonAST
-
- org.hibernate.hql.internal.ast.tree.Node
-
- org.hibernate.hql.internal.ast.tree.SqlNode
-
- org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
-
- org.hibernate.hql.internal.ast.tree.ResultVariableRefNode
-
- 所有已实现的接口:
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
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ResultVariableRefNode()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetRenderText(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.-
从类继承的方法 org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.SqlNode
getDataType, getOriginalText, setDataType, setText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.Node
getColumn, getFilename, getLine, getTextLength, initialize, initialize
-
从类继承的方法 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
-
-
-
-
方法详细资料
-
setSelectExpression
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.
-
getRenderText
public String getRenderText(SessionFactoryImplementor sessionFactory)
从类复制的说明:NodeRetrieve the text to be used for rendering this particular node.- 覆盖:
getRenderText在类中Node- 参数:
sessionFactory- The session factory- 返回:
- The text to use for rendering
-
-