Class SqmQueryGroup<T>
java.lang.Object
org.hibernate.query.sqm.tree.spi.select.SqmQueryPart<T>
org.hibernate.query.sqm.tree.spi.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) booleanReturn the query parts of this query group.inthashCode()booleanisCompatible(Object object) booleansetFetch(JpaExpression<? extends Number> fetch) Set the query fetch limit.setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) Set the query fetch limit.setOffset(JpaExpression<? extends Number> offset) Set the query offset.voidsetSetOperator(SetOperator setOperator) setSortSpecifications(List<? extends JpaOrder> sortSpecifications) Set the ordering specifications.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(@Nonnull NodeBuilder nodeBuilder, @Nonnull SetOperator setOperator, @Nonnull 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
Description copied from interface:JpaQueryGroupReturn the query parts of this query group.- Specified by:
getQueryPartsin interfaceJpaQueryGroup<T>
-
getSetOperator
-
setSetOperator
-
setSortSpecifications
@Nonnull public SqmQueryGroup<T> setSortSpecifications(@Nonnull List<? extends JpaOrder> sortSpecifications) Description copied from interface:JpaQueryPartSet the ordering specifications.- Specified by:
setSortSpecificationsin interfaceJpaQueryGroup<T>- Specified by:
setSortSpecificationsin interfaceJpaQueryPart<T>- Overrides:
setSortSpecificationsin classSqmQueryPart<T>
-
setOffset
Description copied from interface:JpaQueryPartSet the query offset.- Specified by:
setOffsetin interfaceJpaQueryGroup<T>- Specified by:
setOffsetin interfaceJpaQueryPart<T>- Overrides:
setOffsetin classSqmQueryPart<T>
-
setFetch
Description copied from interface:JpaQueryPartSet the query fetch limit.- Specified by:
setFetchin interfaceJpaQueryGroup<T>- Specified by:
setFetchin interfaceJpaQueryPart<T>- Overrides:
setFetchin classSqmQueryPart<T>
-
setFetch
@Nonnull public SqmQueryGroup<T> setFetch(@Nullable JpaExpression<? extends Number> fetch, @Nonnull FetchClauseType fetchClauseType) Description copied from interface:JpaQueryPartSet the query fetch limit.- 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>
-