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>,SqmNode,SqmVisitableNode
public class SqmQueryGroup<T> extends SqmQueryPart<T> implements JpaQueryGroup<T>
A grouped list of queries connected through a certain set operator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmQueryGroup(NodeBuilder nodeBuilder, SetOperator setOperator, List<SqmQueryPart<T>> queryParts)SqmQueryGroup(SqmQueryPart<T> queryPart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Xaccept(SemanticQueryWalker<X> walker)Accept the walker per visitationvoidappendHqlString(StringBuilder sb)SqmQueryPart<T>copy(SqmCopyContext context)SqmQuerySpec<T>getFirstQuerySpec()SqmQuerySpec<T>getLastQuerySpec()List<SqmQueryPart<T>>getQueryParts()SetOperatorgetSetOperator()booleanisSimpleQueryPart()List<SqmQueryPart<T>>queryParts()SqmQueryGroup<T>setFetch(JpaExpression<? extends Number> fetch)SqmQueryGroup<T>setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType)SqmQueryGroup<T>setOffset(JpaExpression<? extends Number> offset)voidsetSetOperator(SetOperator setOperator)SqmQueryGroup<T>setSortSpecifications(List<? extends JpaOrder> sortSpecifications)voidvalidateQueryStructureAndFetchOwners()-
Methods inherited from class org.hibernate.query.sqm.tree.select.SqmQueryPart
copyTo, getFetch, getFetchClauseType, getFetchExpression, getOffset, getOffsetExpression, getOrderByClause, getSortSpecifications, nodeBuilder, setFetchExpression, setFetchExpression, setOffsetExpression, setOrderByClause
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.criteria.JpaQueryPart
getFetch, getFetchClauseType, getOffset, getSortSpecifications
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
-
-
-
Constructor Detail
-
SqmQueryGroup
public SqmQueryGroup(SqmQueryPart<T> queryPart)
-
SqmQueryGroup
public SqmQueryGroup(NodeBuilder nodeBuilder, SetOperator setOperator, List<SqmQueryPart<T>> queryParts)
-
-
Method Detail
-
copy
public SqmQueryPart<T> copy(SqmCopyContext context)
- Specified by:
copyin interfaceSqmNode- Specified by:
copyin classSqmQueryPart<T>
-
queryParts
public List<SqmQueryPart<T>> queryParts()
-
getFirstQuerySpec
public SqmQuerySpec<T> getFirstQuerySpec()
- Specified by:
getFirstQuerySpecin classSqmQueryPart<T>
-
getLastQuerySpec
public SqmQuerySpec<T> getLastQuerySpec()
- Specified by:
getLastQuerySpecin classSqmQueryPart<T>
-
isSimpleQueryPart
public boolean isSimpleQueryPart()
- Specified by:
isSimpleQueryPartin classSqmQueryPart<T>
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
getQueryParts
public List<SqmQueryPart<T>> getQueryParts()
- Specified by:
getQueryPartsin interfaceJpaQueryGroup<T>
-
getSetOperator
public SetOperator getSetOperator()
- Specified by:
getSetOperatorin interfaceJpaQueryGroup<T>
-
setSetOperator
public void setSetOperator(SetOperator setOperator)
- Specified by:
setSetOperatorin interfaceJpaQueryGroup<T>
-
setSortSpecifications
public SqmQueryGroup<T> setSortSpecifications(List<? extends JpaOrder> sortSpecifications)
- Specified by:
setSortSpecificationsin interfaceJpaQueryGroup<T>- Specified by:
setSortSpecificationsin interfaceJpaQueryPart<T>- Overrides:
setSortSpecificationsin classSqmQueryPart<T>
-
setOffset
public SqmQueryGroup<T> setOffset(JpaExpression<? extends Number> offset)
- Specified by:
setOffsetin interfaceJpaQueryGroup<T>- Specified by:
setOffsetin interfaceJpaQueryPart<T>- Overrides:
setOffsetin classSqmQueryPart<T>
-
setFetch
public SqmQueryGroup<T> setFetch(JpaExpression<? extends Number> fetch)
- 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
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlStringin interfaceSqmVisitableNode- Overrides:
appendHqlStringin classSqmQueryPart<T>
-
-