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 TypeMethodDescriptionvoid
Add roots incrementallyvoid
appendHqlString
(StringBuilder sb, SqmRenderContext context) static void
appendJoins
(SqmFrom<?, ?> sqmFrom, StringBuilder sb, SqmRenderContext context) static void
appendTreatJoins
(SqmFrom<?, ?> sqmFrom, StringBuilder sb, SqmRenderContext context) int
copy
(SqmCopyContext context) boolean
int
getRoots()
Immutable view of the domain roots.int
hashCode()
boolean
isCompatible
(Object object) 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
public static void appendTreatJoins(SqmFrom<?, ?> sqmFrom, StringBuilder sb, SqmRenderContext context) -
equals
-
hashCode
public int hashCode() -
isCompatible
- Specified by:
isCompatible
in interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCode
in interfaceSqmCacheable
-