类 FromReferenceNode
- 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.AbstractSelectExpression
-
- org.hibernate.hql.internal.ast.tree.FromReferenceNode
-
- 所有已实现的接口:
antlr.collections.AST,Serializable,DisplayableNode,InitializeableNode,PathNode,ResolvableNode,SelectExpression
public abstract class FromReferenceNode extends AbstractSelectExpression implements ResolvableNode, DisplayableNode, InitializeableNode, PathNode
Represents a reference to a FROM element, for example a class alias in a WHERE clause.- 作者:
- josh
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static intROOT_LEVEL
-
构造器概要
构造器 构造器 说明 FromReferenceNode()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetDisplayText()Returns additional display text for the AST node.FromElementgetFromElement()Returns the FROM element that this expression refers to.FromElementgetImpliedJoin()Sub-classes can override this method if they produce implied joins (e.g.StringgetPath()Returns the full path name represented by the node.protected booleanisFromElementUpdateOrDeleteRoot(FromElement element)booleanisResolved()booleanisReturnableEntity()Returns true if this select expression represents an entity that can be returned.voidprepareForDot(String propertyName)voidrecursiveResolve(int level, boolean impliedAtRoot, String classAlias)voidrecursiveResolve(int level, boolean impliedAtRoot, String classAlias, antlr.collections.AST parent)voidresolve(boolean generateJoin, boolean implicitJoin)Does the work of resolving an identifier or a dot, but without a parent predicate node or parent node or aliasvoidresolve(boolean generateJoin, boolean implicitJoin, String classAlias)Does the work of resolving an identifier or a dot, but without a parent predicate node or parent nodevoidresolve(boolean generateJoin, boolean implicitJoin, String classAlias, antlr.collections.AST parent)Does the work of resolving an identifier or a dot, but without a parent predicate nodevoidresolveFirstChild()Resolves the left hand side of the DOT.voidresolveInFunctionCall(boolean generateJoin, boolean implicitJoin)Does the work of resolving inside of the scope of a function callvoidsetFromElement(FromElement fromElement)voidsetResolved()-
从类继承的方法 org.hibernate.hql.internal.ast.tree.AbstractSelectExpression
getAlias, getScalarColumnIndex, isConstructor, isScalar, setAlias, setScalarColumn
-
从类继承的方法 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, 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.InitializeableNode
initialize
-
从接口继承的方法 org.hibernate.hql.internal.ast.tree.ResolvableNode
resolve, resolveIndex
-
从接口继承的方法 org.hibernate.hql.internal.ast.tree.SelectExpression
getDataType, setScalarColumnText, setText
-
-
-
-
字段详细资料
-
ROOT_LEVEL
public static final int ROOT_LEVEL
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getFromElement
public FromElement getFromElement()
从接口复制的说明:SelectExpressionReturns the FROM element that this expression refers to.- 指定者:
getFromElement在接口中SelectExpression- 覆盖:
getFromElement在类中AbstractSelectExpression- 返回:
- The FROM element.
-
setFromElement
public void setFromElement(FromElement fromElement)
-
resolveFirstChild
public void resolveFirstChild() throws antlr.SemanticExceptionResolves the left hand side of the DOT.- 抛出:
antlr.SemanticException
-
getPath
public String getPath()
从接口复制的说明:PathNodeReturns the full path name represented by the node.
-
isResolved
public boolean isResolved()
-
setResolved
public void setResolved()
-
getDisplayText
public String getDisplayText()
从接口复制的说明:DisplayableNodeReturns additional display text for the AST node.- 指定者:
getDisplayText在接口中DisplayableNode- 返回:
- String - The additional display text.
-
recursiveResolve
public void recursiveResolve(int level, boolean impliedAtRoot, String classAlias) throws antlr.SemanticException- 抛出:
antlr.SemanticException
-
recursiveResolve
public void recursiveResolve(int level, boolean impliedAtRoot, String classAlias, antlr.collections.AST parent) throws antlr.SemanticException- 抛出:
antlr.SemanticException
-
isReturnableEntity
public boolean isReturnableEntity() throws antlr.SemanticException从接口复制的说明:SelectExpressionReturns true if this select expression represents an entity that can be returned.- 指定者:
isReturnableEntity在接口中SelectExpression- 覆盖:
isReturnableEntity在类中AbstractSelectExpression- 返回:
- true if this select expression represents an entity that can be returned.
- 抛出:
antlr.SemanticException- if a semantic error occurs
-
resolveInFunctionCall
public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws antlr.SemanticException从接口复制的说明:ResolvableNodeDoes the work of resolving inside of the scope of a function call- 指定者:
resolveInFunctionCall在接口中ResolvableNode- 抛出:
antlr.SemanticException
-
resolve
public void resolve(boolean generateJoin, boolean implicitJoin) throws antlr.SemanticException从接口复制的说明:ResolvableNodeDoes the work of resolving an identifier or a dot, but without a parent predicate node or parent node or alias- 指定者:
resolve在接口中ResolvableNode- 抛出:
antlr.SemanticException
-
resolve
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias) throws antlr.SemanticException从接口复制的说明:ResolvableNodeDoes the work of resolving an identifier or a dot, but without a parent predicate node or parent node- 指定者:
resolve在接口中ResolvableNode- 抛出:
antlr.SemanticException
-
resolve
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias, antlr.collections.AST parent) throws antlr.SemanticException从接口复制的说明:ResolvableNodeDoes the work of resolving an identifier or a dot, but without a parent predicate node- 指定者:
resolve在接口中ResolvableNode- 抛出:
antlr.SemanticException
-
prepareForDot
public void prepareForDot(String propertyName) throws antlr.SemanticException
- 抛出:
antlr.SemanticException
-
getImpliedJoin
public FromElement getImpliedJoin()
Sub-classes can override this method if they produce implied joins (e.g. DotNode).- 返回:
- an implied join created by this from reference.
-
isFromElementUpdateOrDeleteRoot
protected boolean isFromElementUpdateOrDeleteRoot(FromElement element)
-
-