类 QueryNode
- java.lang.Object
-
- antlr.BaseAST
-
- antlr.CommonAST
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,DisplayableNode,InitializeableNode,RestrictableStatement,SelectExpression,Statement
public class QueryNode extends AbstractRestrictableStatement implements SelectExpression
Defines a top-level AST node representing an HQL select statement.- 作者:
- Joshua Davis
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 QueryNode()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAlias()TypegetDataType()Returns the data type of the select expression.FromElementgetFromElement()Returns the FROM element that this expression refers to.protected CoreMessageLoggergetLog()OrderByClausegetOrderByClause()intgetScalarColumnIndex()Gets index of the select expression in the projection list.SelectClausegetSelectClause()Locate the select clause that is part of this select statement.intgetStatementType()Return the main token type representing the type of this statement.protected intgetWhereClauseParentTokenType()booleanhasOrderByClause()booleanisConstructor()Returns true if the element is a constructor (e.g. new Foo).booleanisReturnableEntity()Returns true if this select expression represents an entity that can be returned.booleanisScalar()booleanneedsExecutor()Does this statement require the StatementExecutor?voidsetAlias(String alias)voidsetScalarColumn(int i)Sets the index and text for select expression in the projection list.voidsetScalarColumnText(int i)Appends AST nodes that represent the columns after the current AST node.-
从类继承的方法 org.hibernate.hql.internal.ast.tree.AbstractRestrictableStatement
getFromClause, getWhereClause, hasWhereClause, locateWhereClause
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.AbstractStatement
getDisplayText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.HqlSqlWalkerNode
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.SqlNode
getOriginalText, setDataType, setText
-
从类继承的方法 org.hibernate.hql.internal.ast.tree.Node
getColumn, getFilename, getLine, getRenderText, 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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.hql.internal.ast.tree.SelectExpression
setText
-
-
-
-
方法详细资料
-
getStatementType
public int getStatementType()
从接口复制的说明:StatementReturn the main token type representing the type of this statement.- 指定者:
getStatementType在接口中Statement- 返回:
- The corresponding token type.
-
needsExecutor
public boolean needsExecutor()
从接口复制的说明:StatementDoes this statement require the StatementExecutor? Essentially, at the JDBC level, does this require an executeUpdate()?- 指定者:
needsExecutor在接口中Statement- 返回:
- True if this statement should be handed off to the StatementExecutor to be executed; false otherwise.
-
getWhereClauseParentTokenType
protected int getWhereClauseParentTokenType()
-
getLog
protected CoreMessageLogger getLog()
- 指定者:
getLog在类中AbstractRestrictableStatement
-
getSelectClause
public final SelectClause getSelectClause()
Locate the select clause that is part of this select statement. Note, that this might return null as derived select clauses (i.e., no select clause at the HQL-level) get generated much later than when we get created; thus it depends upon lifecycle.- 返回:
- Our select clause, or null.
-
hasOrderByClause
public final boolean hasOrderByClause()
-
getOrderByClause
public final OrderByClause getOrderByClause()
-
getAlias
public String getAlias()
- 指定者:
getAlias在接口中SelectExpression
-
getFromElement
public FromElement getFromElement()
从接口复制的说明:SelectExpressionReturns the FROM element that this expression refers to.- 指定者:
getFromElement在接口中SelectExpression- 返回:
- The FROM element.
-
isConstructor
public boolean isConstructor()
从接口复制的说明:SelectExpressionReturns true if the element is a constructor (e.g. new Foo).- 指定者:
isConstructor在接口中SelectExpression- 返回:
- true if the element is a constructor (e.g. new Foo).
-
isReturnableEntity
public boolean isReturnableEntity() throws antlr.SemanticException从接口复制的说明:SelectExpressionReturns true if this select expression represents an entity that can be returned.- 指定者:
isReturnableEntity在接口中SelectExpression- 返回:
- true if this select expression represents an entity that can be returned.
- 抛出:
antlr.SemanticException- if a semantic error occurs
-
isScalar
public boolean isScalar() throws antlr.SemanticException- 指定者:
isScalar在接口中SelectExpression- 抛出:
antlr.SemanticException
-
setAlias
public void setAlias(String alias)
- 指定者:
setAlias在接口中SelectExpression
-
setScalarColumn
public void setScalarColumn(int i) throws antlr.SemanticException从接口复制的说明:SelectExpressionSets the index and text for select expression in the projection list.- 指定者:
setScalarColumn在接口中SelectExpression- 参数:
i- The index of the select expression in the projection list.- 抛出:
antlr.SemanticException- if a semantic error occurs
-
getScalarColumnIndex
public int getScalarColumnIndex()
从接口复制的说明:SelectExpressionGets index of the select expression in the projection list.- 指定者:
getScalarColumnIndex在接口中SelectExpression- 返回:
- The index of the select expression in the projection list.
-
setScalarColumnText
public void setScalarColumnText(int i) throws antlr.SemanticException从接口复制的说明:SelectExpressionAppends AST nodes that represent the columns after the current AST node. (e.g. 'as col0_O_')- 指定者:
setScalarColumnText在接口中SelectExpression- 参数:
i- The index of the select expression in the projection list.- 抛出:
antlr.SemanticException- if a semantic error occurs
-
getDataType
public Type getDataType()
从接口复制的说明:SelectExpressionReturns the data type of the select expression.- 指定者:
getDataType在接口中SelectExpression- 覆盖:
getDataType在类中SqlNode- 返回:
- The data type of the select expression.
-
-