Class SqmFromClause
java.lang.Object
org.hibernate.query.sqm.tree.from.SqmFromClause
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add roots incrementallyvoid
static void
appendJoins
(SqmFrom<?, ?> sqmFrom, StringBuilder sb) static void
appendTreatJoins
(SqmFrom<?, ?> sqmFrom, StringBuilder sb) copy
(SqmCopyContext context) int
getRoots()
Immutable view of the domain roots.void
Inject the complete set of domain rootsvoid
visitRoots
(Consumer<SqmRoot<?>> consumer) Visit the domain roots
-
Constructor Details
-
SqmFromClause
public SqmFromClause() -
SqmFromClause
public SqmFromClause(int expectedNumberOfRoots)
-
-
Method Details
-
copy
-
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
Inject the complete set of domain roots -
addRoot
Add roots incrementally -
visitRoots
Visit the domain roots -
getNumberOfRoots
public int getNumberOfRoots() -
appendHqlString
-
appendJoins
-
appendTreatJoins
-