Package org.hibernate.sql.ast.tree.from
Class FromClause
- java.lang.Object
-
- org.hibernate.sql.ast.tree.from.FromClause
-
- All Implemented Interfaces:
SqlAstNode
public class FromClause extends Object implements SqlAstNode
The SQL AST from-clause node
-
-
Constructor Summary
Constructors Constructor Description FromClause()
FromClause(int expectedNumberOfRoots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
void
addRoot(TableGroup tableGroup)
TableGroup
findTableGroup(NavigablePath navigablePath)
List<TableGroup>
getRoots()
boolean
hasJoins()
<T> T
queryTableGroupJoins(Function<TableGroupJoin,T> action)
<T> T
queryTableGroups(Function<TableGroup,T> action)
<T> T
queryTableJoins(Function<TableJoin,T> action)
<T> T
queryTableReferences(Function<TableReference,T> action)
void
visitRoots(Consumer<TableGroup> action)
void
visitTableGroupJoins(Consumer<TableGroupJoin> action)
void
visitTableGroups(Consumer<TableGroup> action)
void
visitTableJoins(Consumer<TableJoin> action)
void
visitTableReferences(Consumer<TableReference> action)
-
-
-
Method Detail
-
getRoots
public List<TableGroup> getRoots()
-
addRoot
public void addRoot(TableGroup tableGroup)
-
visitRoots
public void visitRoots(Consumer<TableGroup> action)
-
visitTableGroups
public void visitTableGroups(Consumer<TableGroup> action)
-
queryTableGroups
public <T> T queryTableGroups(Function<TableGroup,T> action)
-
visitTableGroupJoins
public void visitTableGroupJoins(Consumer<TableGroupJoin> action)
-
queryTableGroupJoins
public <T> T queryTableGroupJoins(Function<TableGroupJoin,T> action)
-
visitTableReferences
public void visitTableReferences(Consumer<TableReference> action)
-
queryTableReferences
public <T> T queryTableReferences(Function<TableReference,T> action)
-
findTableGroup
public TableGroup findTableGroup(NavigablePath navigablePath)
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
hasJoins
public boolean hasJoins()
-
-