|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object antlr.BaseAST antlr.CommonAST org.hibernate.hql.ast.tree.Node org.hibernate.hql.ast.tree.SqlNode org.hibernate.hql.ast.tree.HqlSqlWalkerNode org.hibernate.hql.ast.tree.AbstractSelectExpression org.hibernate.hql.ast.tree.FromReferenceNode
Represents a reference to a FROM element, for example a class alias in a WHERE clause.
Field Summary | |
static int |
ROOT_LEVEL
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
FromReferenceNode()
|
Method Summary | |
String |
getDisplayText()
Returns additional display text for the AST node. |
FromElement |
getFromElement()
Returns the FROM element that this expression refers to. |
FromElement |
getImpliedJoin()
Sub-classes can override this method if they produce implied joins (e.g. |
String |
getPath()
Returns the full path name represented by the node. |
boolean |
isResolved()
|
boolean |
isReturnableEntity()
Returns true if this select expression represents an entity that can be returned. |
void |
prepareForDot(String propertyName)
|
void |
recursiveResolve(int level,
boolean impliedAtRoot,
String classAlias)
|
void |
recursiveResolve(int level,
boolean impliedAtRoot,
String classAlias,
antlr.collections.AST parent)
|
void |
resolve(boolean generateJoin,
boolean implicitJoin)
Does the work of resolving an identifier or a dot, but without a parent node or alias |
void |
resolve(boolean generateJoin,
boolean implicitJoin,
String classAlias)
Does the work of resolving an identifier or a dot, but without a parent node |
void |
resolveFirstChild()
Resolves the left hand side of the DOT. |
void |
resolveInFunctionCall(boolean generateJoin,
boolean implicitJoin)
Does the work of resolving inside of the scope of a function call |
void |
setFromElement(FromElement fromElement)
|
void |
setResolved()
|
Methods inherited from class org.hibernate.hql.ast.tree.AbstractSelectExpression |
getAlias, isConstructor, isScalar, setAlias |
Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode |
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize |
Methods inherited from class org.hibernate.hql.ast.tree.SqlNode |
getDataType, getOriginalText, setDataType, setText |
Methods inherited from class org.hibernate.hql.ast.tree.Node |
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, setType |
Methods inherited from class 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.hibernate.hql.ast.tree.ResolvableNode |
resolve, resolveIndex |
Methods inherited from interface org.hibernate.hql.ast.tree.InitializeableNode |
initialize |
Methods inherited from interface org.hibernate.hql.ast.tree.SelectExpression |
getDataType, setScalarColumnText, setText |
Field Detail |
public static final int ROOT_LEVEL
Constructor Detail |
public FromReferenceNode()
Method Detail |
public FromElement getFromElement()
SelectExpression
getFromElement
in interface SelectExpression
getFromElement
in class AbstractSelectExpression
public void setFromElement(FromElement fromElement)
public void resolveFirstChild() throws antlr.SemanticException
antlr.SemanticException
public String getPath()
PathNode
public boolean isResolved()
public void setResolved()
public String getDisplayText()
DisplayableNode
getDisplayText
in interface DisplayableNode
public void recursiveResolve(int level, boolean impliedAtRoot, String classAlias) throws antlr.SemanticException
antlr.SemanticException
public void recursiveResolve(int level, boolean impliedAtRoot, String classAlias, antlr.collections.AST parent) throws antlr.SemanticException
antlr.SemanticException
public boolean isReturnableEntity() throws antlr.SemanticException
SelectExpression
isReturnableEntity
in interface SelectExpression
isReturnableEntity
in class AbstractSelectExpression
antlr.SemanticException
public void resolveInFunctionCall(boolean generateJoin, boolean implicitJoin) throws antlr.SemanticException
ResolvableNode
resolveInFunctionCall
in interface ResolvableNode
antlr.SemanticException
public void resolve(boolean generateJoin, boolean implicitJoin) throws antlr.SemanticException
ResolvableNode
resolve
in interface ResolvableNode
antlr.SemanticException
public void resolve(boolean generateJoin, boolean implicitJoin, String classAlias) throws antlr.SemanticException
ResolvableNode
resolve
in interface ResolvableNode
antlr.SemanticException
public void prepareForDot(String propertyName) throws antlr.SemanticException
antlr.SemanticException
public FromElement getImpliedJoin()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |