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 TypeMethodDescriptionvoidAdd roots incrementallyvoidappendHqlString(StringBuilder sb, SqmRenderContext context) static voidappendJoins(SqmFrom<?, ?> sqmFrom, StringBuilder sb, SqmRenderContext context) static voidappendTreatJoins(SqmFrom<?, ?> sqmFrom, StringBuilder sb, SqmRenderContext context) copy(SqmCopyContext context) booleanintgetRoots()Immutable view of the domain roots.inthashCode()voidInject the complete set of domain rootsvoidvisitRoots(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
public static void appendTreatJoins(SqmFrom<?, ?> sqmFrom, StringBuilder sb, SqmRenderContext context) -
equals
-
hashCode
public int hashCode()
-