Class SqmFromClause
- java.lang.Object
-
- org.hibernate.query.sqm.tree.from.SqmFromClause
-
- All Implemented Interfaces:
Serializable
public class SqmFromClause extends Object implements Serializable
Contract representing a from clause. The parent/child bit represents sub-queries. The child from clauses are only used for test assertions, but are left here as it is most convenient to maintain them here versus another structure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmFromClause()
SqmFromClause(int expectedNumberOfRoots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRoot(SqmRoot<?> root)
Add roots incrementallySqmFromClause
copy(SqmCopyContext context)
int
getNumberOfRoots()
List<SqmRoot<?>>
getRoots()
Immutable view of the domain roots.void
setRoots(List<SqmRoot<?>> domainRoots)
Inject the complete set of domain rootsvoid
visitRoots(Consumer<SqmRoot<?>> consumer)
Visit the domain roots
-
-
-
Method Detail
-
copy
public SqmFromClause copy(SqmCopyContext context)
-
getRoots
public List<SqmRoot<?>> getRoots()
Immutable view of the domain roots. UsesetRoots(java.util.List<org.hibernate.query.sqm.tree.from.SqmRoot<?>>)
oraddRoot(org.hibernate.query.sqm.tree.from.SqmRoot<?>)
to mutate the roots
-
setRoots
public void setRoots(List<SqmRoot<?>> domainRoots)
Inject the complete set of domain roots
-
addRoot
public void addRoot(SqmRoot<?> root)
Add roots incrementally
-
getNumberOfRoots
public int getNumberOfRoots()
-
-