Class SqmFromClause
java.lang.Object
org.hibernate.query.sqm.tree.from.SqmFromClause
- All Implemented Interfaces:
Serializable, SqmCacheable
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) intcopy(SqmCopyContext context) booleanintgetRoots()Immutable view of the domain roots.inthashCode()booleanisCompatible(Object object) 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(List)oraddRoot(SqmRoot)to mutate the roots -
setRoots
-
addRoot
Add roots incrementally -
visitRoots
-
getNumberOfRoots
public int getNumberOfRoots() -
appendHqlString
-
appendJoins
-
appendTreatJoins
public static void appendTreatJoins(SqmFrom<?, ?> sqmFrom, StringBuilder sb, SqmRenderContext context) -
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-