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> X
accept(SemanticQueryWalker<X> walker)
Accept the walker per visitationvoid
appendHqlString(StringBuilder sb)
SqmQueryPart<T>
copy(SqmCopyContext context)
SqmQuerySpec<T>
getFirstQuerySpec()
SqmQuerySpec<T>
getLastQuerySpec()
List<SqmQueryPart<T>>
getQueryParts()
SetOperator
getSetOperator()
boolean
isSimpleQueryPart()
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)
void
setSetOperator(SetOperator setOperator)
SqmQueryGroup<T>
setSortSpecifications(List<? extends JpaOrder> sortSpecifications)
void
validateQueryStructureAndFetchOwners()
-
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:
copy
in interfaceSqmNode
- Specified by:
copy
in classSqmQueryPart<T>
-
queryParts
public List<SqmQueryPart<T>> queryParts()
-
getFirstQuerySpec
public SqmQuerySpec<T> getFirstQuerySpec()
- Specified by:
getFirstQuerySpec
in classSqmQueryPart<T>
-
getLastQuerySpec
public SqmQuerySpec<T> getLastQuerySpec()
- Specified by:
getLastQuerySpec
in classSqmQueryPart<T>
-
isSimpleQueryPart
public boolean isSimpleQueryPart()
- Specified by:
isSimpleQueryPart
in classSqmQueryPart<T>
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
getQueryParts
public List<SqmQueryPart<T>> getQueryParts()
- Specified by:
getQueryParts
in interfaceJpaQueryGroup<T>
-
getSetOperator
public SetOperator getSetOperator()
- Specified by:
getSetOperator
in interfaceJpaQueryGroup<T>
-
setSetOperator
public void setSetOperator(SetOperator setOperator)
- Specified by:
setSetOperator
in interfaceJpaQueryGroup<T>
-
setSortSpecifications
public SqmQueryGroup<T> setSortSpecifications(List<? extends JpaOrder> sortSpecifications)
- Specified by:
setSortSpecifications
in interfaceJpaQueryGroup<T>
- Specified by:
setSortSpecifications
in interfaceJpaQueryPart<T>
- Overrides:
setSortSpecifications
in classSqmQueryPart<T>
-
setOffset
public SqmQueryGroup<T> setOffset(JpaExpression<? extends Number> offset)
- Specified by:
setOffset
in interfaceJpaQueryGroup<T>
- Specified by:
setOffset
in interfaceJpaQueryPart<T>
- Overrides:
setOffset
in classSqmQueryPart<T>
-
setFetch
public SqmQueryGroup<T> setFetch(JpaExpression<? extends Number> fetch)
- Specified by:
setFetch
in interfaceJpaQueryGroup<T>
- Specified by:
setFetch
in interfaceJpaQueryPart<T>
- Overrides:
setFetch
in classSqmQueryPart<T>
-
setFetch
public SqmQueryGroup<T> setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType)
- Specified by:
setFetch
in interfaceJpaQueryGroup<T>
- Specified by:
setFetch
in interfaceJpaQueryPart<T>
- Overrides:
setFetch
in classSqmQueryPart<T>
-
validateQueryStructureAndFetchOwners
public void validateQueryStructureAndFetchOwners()
- Specified by:
validateQueryStructureAndFetchOwners
in classSqmQueryPart<T>
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
- Overrides:
appendHqlString
in classSqmQueryPart<T>
-
-