Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
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.FromClause
Field Summary | |
static int |
Method Summary | |
FromElement |
|
void |
|
boolean |
|
boolean |
|
List | |
String |
|
List | |
FromElement | |
FromElement |
|
List |
|
int |
|
FromClause | |
List |
|
boolean | |
boolean |
|
boolean | |
FromClause |
|
int | |
void |
|
void |
|
void |
|
String |
|
Methods inherited from class org.hibernate.hql.ast.tree.HqlSqlWalkerNode | |
getASTFactory , getAliasGenerator , 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 |
public FromElement addFromElement(String path, AST alias) throws SemanticException
Adds a new from element to the from node.
- Parameters:
path
- The reference to the class.alias
- The alias AST.
- Returns:
- FromElement - The new FROM element.
public boolean containsClassAlias(String alias)
Returns true if the from node contains the class alias name.
- Parameters:
alias
- The HQL class alias name.
- Returns:
- true if the from node contains the class alias name.
public boolean containsTableAlias(String alias)
Returns true if the from node contains the table alias name.
- Parameters:
alias
- The SQL table alias name.
- Returns:
- true if the from node contains the table alias name.
public List getCollectionFetches()
public String getDisplayText()
Returns additional display text for the AST node.
- Specified by:
- getDisplayText in interface DisplayableNode
- Returns:
- String - The additional display text.
public List getExplicitFromElements()
public FromElement getFromElement(String aliasOrClassName)
Retreives the from-element represented by the given alias.
- Parameters:
aliasOrClassName
- The alias by which to locate the from-element.
- Returns:
- The from-element assigned the given alias, or null if none.
public List getFromElements()
Returns the list of from elements in order.
- Returns:
- the list of from elements (instances of FromElement).
public int getLevel()
public List getProjectionList()
Returns the list of from elements that will be part of the result set.
- Returns:
- the list of from elements that will be part of the result set.
public boolean hasCollectionFecthes()
public boolean isFromElementAlias(String possibleAlias)
Convenience method to check whether a given token represents a from-element alias.
- Parameters:
possibleAlias
- The potential from-element alias to check.
- Returns:
- True if the possibleAlias is an alias to a from-element visible from this point in the query graph.
public boolean isSubQuery()
public FromClause locateChildFromClauseWithJoinByPath(String path)
public int nextFromElementCounter()
public void resolve()
public String toString()