public abstract class FromReferenceNode extends AbstractSelectExpression implements ResolvableNode, DisplayableNode, InitializeableNode, PathNode
Modifier and Type | Field and Description |
---|---|
static int |
ROOT_LEVEL |
Constructor and Description |
---|
FromReferenceNode() |
Modifier and Type | Method and Description |
---|---|
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() |
getAlias, getScalarColumnIndex, isConstructor, isScalar, setAlias, setScalarColumn
getAliasGenerator, getASTFactory, getSessionFactoryHelper, getWalker, initialize
getDataType, getOriginalText, setDataType, setText
getColumn, getFilename, getLine, getRenderText, getTextLength, initialize, initialize
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
resolve, resolveIndex
initialize
getDataType, setScalarColumnText, setText
public static final int ROOT_LEVEL
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
- if a semantic error occurspublic 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()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.