Class SqmQueryGroup<T>
java.lang.Object
org.hibernate.query.sqm.tree.select.SqmQueryPart<T>
org.hibernate.query.sqm.tree.select.SqmQueryGroup<T>
- All Implemented Interfaces:
Serializable, JpaCriteriaNode, JpaQueryGroup<T>, JpaQueryPart<T>, SqmCacheable, SqmNode, SqmVisitableNode
A grouped list of queries connected through a certain set operator.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmQueryGroup(NodeBuilder nodeBuilder, SetOperator setOperator, List<SqmQueryPart<T>> queryParts) SqmQueryGroup(SqmQueryPart<T> queryPart) Deprecated, for removal: This API element is subject to removal in a future version.SqmQueryGroup(SqmQueryPart<T> queryPart, SetOperator setOperator) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) intcopy(SqmCopyContext context) booleaninthashCode()booleanisCompatible(Object object) booleansetFetch(@Nullable JpaExpression<? extends Number> fetch) setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) setOffset(@Nullable JpaExpression<? extends Number> offset) voidsetSetOperator(SetOperator setOperator) setSortSpecifications(List<? extends JpaOrder> sortSpecifications) voidMethods inherited from class SqmQueryPart
copyTo, getFetch, getFetchClauseType, getFetchExpression, getOffset, getOffsetExpression, getOrderByClause, getSortSpecifications, nodeBuilder, setFetchExpression, setFetchExpression, setOffsetExpression, setOrderByClauseMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JpaQueryPart
getFetch, getFetchClauseType, getOffset, getSortSpecificationsMethods inherited from interface SqmNode
asLoggableTextMethods inherited from interface SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmQueryGroup
Deprecated, for removal: This API element is subject to removal in a future version. -
SqmQueryGroup
-
SqmQueryGroup
public SqmQueryGroup(NodeBuilder nodeBuilder, SetOperator setOperator, List<SqmQueryPart<T>> queryParts)
-
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmNode- Specified by:
copyin classSqmQueryPart<T>
-
queryParts
-
getFirstQuerySpec
- Specified by:
getFirstQuerySpecin classSqmQueryPart<T>
-
getLastQuerySpec
- Specified by:
getLastQuerySpecin classSqmQueryPart<T>
-
isSimpleQueryPart
public boolean isSimpleQueryPart()- Specified by:
isSimpleQueryPartin classSqmQueryPart<T>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
getQueryParts
- Specified by:
getQueryPartsin interfaceJpaQueryGroup<T>
-
getSetOperator
-
setSetOperator
-
setSortSpecifications
- Specified by:
setSortSpecificationsin interfaceJpaQueryGroup<T>- Specified by:
setSortSpecificationsin interfaceJpaQueryPart<T>- Overrides:
setSortSpecificationsin classSqmQueryPart<T>
-
setOffset
- Specified by:
setOffsetin interfaceJpaQueryGroup<T>- Specified by:
setOffsetin interfaceJpaQueryPart<T>- Overrides:
setOffsetin classSqmQueryPart<T>
-
setFetch
- Specified by:
setFetchin interfaceJpaQueryGroup<T>- Specified by:
setFetchin interfaceJpaQueryPart<T>- Overrides:
setFetchin classSqmQueryPart<T>
-
setFetch
public SqmQueryGroup<T> setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) - Specified by:
setFetchin interfaceJpaQueryGroup<T>- Specified by:
setFetchin interfaceJpaQueryPart<T>- Overrides:
setFetchin classSqmQueryPart<T>
-
validateQueryStructureAndFetchOwners
public void validateQueryStructureAndFetchOwners()- Specified by:
validateQueryStructureAndFetchOwnersin classSqmQueryPart<T>
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classSqmQueryPart<T>
-
equals
- Overrides:
equalsin classSqmQueryPart<T>
-
hashCode
public int hashCode()- Overrides:
hashCodein classSqmQueryPart<T>
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable- Overrides:
isCompatiblein classSqmQueryPart<T>
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable- Overrides:
cacheHashCodein classSqmQueryPart<T>
-