Class SqmQuerySpec<T>
java.lang.Object
org.hibernate.query.sqm.tree.select.SqmQueryPart<T>
org.hibernate.query.sqm.tree.select.SqmQuerySpec<T>
- All Implemented Interfaces:
Serializable, JpaCriteriaNode, JpaQueryPart<T>, JpaQueryStructure<T>, SqmFromClauseContainer, SqmWhereClauseContainer, SqmCacheable, SqmNode, SqmVisitableNode
public class SqmQuerySpec<T>
extends SqmQueryPart<T>
implements SqmNode, SqmFromClauseContainer, SqmWhereClauseContainer, JpaQueryStructure<T>
Defines the commonality between a root query and a subquery.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmQuerySpec(NodeBuilder nodeBuilder) SqmQuerySpec(SqmQuerySpec<T> original, SqmCopyContext context) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) voidapplyPredicate(SqmPredicate predicate) intbooleancopy(SqmCopyContext context) booleanObtains this container's SqmFromClause.List<SqmExpression<?>> List<SqmExpression<?>> @Nullable SqmPredicate@Nullable SqmPredicate@Nullable SqmPredicategetRoots()@Nullable SqmWhereClausebooleangroupByClauseContains(NavigablePath navigablePath, SqmToSqlAstConverter sqlAstConverter) inthashCode()booleanbooleanisCompatible(Object object) booleanbooleanbooleanorderByClauseContains(NavigablePath navigablePath, SqmToSqlAstConverter sqlAstConverter) booleansetDistinct(boolean distinct) setFetch(@Nullable JpaExpression<? extends Number> fetch) setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) voidsetFromClause(SqmFromClause fromClause) voidsetGroupByClauseExpressions(List<SqmExpression<?>> groupByClauseExpressions) setGroupingExpressions(Expression<?>... groupExpressions) setGroupingExpressions(List<? extends Expression<?>> groupExpressions) setGroupRestriction(@Nullable Expression<Boolean> restriction) setGroupRestriction(Predicate @Nullable ... restrictions) setGroupRestriction(List<Predicate> restrictions) setGroupRestriction(@Nullable JpaPredicate restriction) voidsetHavingClausePredicate(@Nullable SqmPredicate havingClausePredicate) setOffset(@Nullable JpaExpression<? extends Number> offset) setRestriction(@Nullable Expression<Boolean> restriction) setRestriction(Predicate @Nullable ... restrictions) setRestriction(List<Predicate> restrictions) setRestriction(@Nullable JpaPredicate restriction) voidsetSelectClause(SqmSelectClause selectClause) setSelection(JpaSelection<T> selection) setSortSpecifications(List<? extends JpaOrder> sortSpecifications) voidsetWhereClause(@Nullable SqmWhereClause whereClause) voidvoidbooleanwhereClauseContains(NavigablePath navigablePath, SqmToSqlAstConverter sqlAstConverter) Methods 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
asLoggableText, nodeBuilderMethods inherited from interface SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmQuerySpec
-
SqmQuerySpec
-
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmNode- Specified by:
copyin classSqmQueryPart<T>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
getFirstQuerySpec
- Specified by:
getFirstQuerySpecin classSqmQueryPart<T>
-
getLastQuerySpec
- Specified by:
getLastQuerySpecin classSqmQueryPart<T>
-
isSimpleQueryPart
public boolean isSimpleQueryPart()- Specified by:
isSimpleQueryPartin classSqmQueryPart<T>
-
getFromClause
Description copied from interface:SqmFromClauseContainerObtains this container's SqmFromClause.- Specified by:
getFromClausein interfaceSqmFromClauseContainer- Returns:
- This container's SqmFromClause.
-
setFromClause
-
producesUniqueResults
public boolean producesUniqueResults() -
containsCollectionFetches
public boolean containsCollectionFetches() -
getSelectClause
-
setSelectClause
-
getWhereClause
- Specified by:
getWhereClausein interfaceSqmWhereClauseContainer
-
setWhereClause
-
applyPredicate
- Specified by:
applyPredicatein interfaceSqmWhereClauseContainer
-
hasPositionalGroupItem
public boolean hasPositionalGroupItem() -
getGroupByClauseExpressions
-
setGroupByClauseExpressions
-
getHavingClausePredicate
-
setHavingClausePredicate
-
isDistinct
public boolean isDistinct()- Specified by:
isDistinctin interfaceJpaQueryStructure<T>
-
setDistinct
- Specified by:
setDistinctin interfaceJpaQueryStructure<T>
-
getSelection
- Specified by:
getSelectionin interfaceJpaQueryStructure<T>
-
setSelection
- Specified by:
setSelectionin interfaceJpaQueryStructure<T>
-
getRoots
- Specified by:
getRootsin interfaceJpaQueryStructure<T>
-
getRootList
- Specified by:
getRootListin interfaceJpaQueryStructure<T>
-
addRoot
- Specified by:
addRootin interfaceJpaQueryStructure<T>
-
getRestriction
- Specified by:
getRestrictionin interfaceJpaQueryStructure<T>
-
setRestriction
- Specified by:
setRestrictionin interfaceJpaQueryStructure<T>
-
setRestriction
- Specified by:
setRestrictionin interfaceJpaQueryStructure<T>
-
setRestriction
- Specified by:
setRestrictionin interfaceJpaQueryStructure<T>
-
setRestriction
- Specified by:
setRestrictionin interfaceJpaQueryStructure<T>
-
getGroupingExpressions
- Specified by:
getGroupingExpressionsin interfaceJpaQueryStructure<T>
-
setGroupingExpressions
- Specified by:
setGroupingExpressionsin interfaceJpaQueryStructure<T>
-
setGroupingExpressions
- Specified by:
setGroupingExpressionsin interfaceJpaQueryStructure<T>
-
getGroupRestriction
- Specified by:
getGroupRestrictionin interfaceJpaQueryStructure<T>
-
setGroupRestriction
- Specified by:
setGroupRestrictionin interfaceJpaQueryStructure<T>
-
setGroupRestriction
- Specified by:
setGroupRestrictionin interfaceJpaQueryStructure<T>
-
setGroupRestriction
- Specified by:
setGroupRestrictionin interfaceJpaQueryStructure<T>
-
setGroupRestriction
- Specified by:
setGroupRestrictionin interfaceJpaQueryStructure<T>
-
setSortSpecifications
- Specified by:
setSortSpecificationsin interfaceJpaQueryPart<T>- Specified by:
setSortSpecificationsin interfaceJpaQueryStructure<T>- Overrides:
setSortSpecificationsin classSqmQueryPart<T>
-
setOffset
- Specified by:
setOffsetin interfaceJpaQueryPart<T>- Specified by:
setOffsetin interfaceJpaQueryStructure<T>- Overrides:
setOffsetin classSqmQueryPart<T>
-
setFetch
- Specified by:
setFetchin interfaceJpaQueryPart<T>- Specified by:
setFetchin interfaceJpaQueryStructure<T>- Overrides:
setFetchin classSqmQueryPart<T>
-
setFetch
public SqmQuerySpec<T> setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) - Specified by:
setFetchin interfaceJpaQueryPart<T>- Specified by:
setFetchin interfaceJpaQueryStructure<T>- Overrides:
setFetchin classSqmQueryPart<T>
-
validateQueryStructureAndFetchOwners
public void validateQueryStructureAndFetchOwners()- Specified by:
validateQueryStructureAndFetchOwnersin classSqmQueryPart<T>
-
validateFetchOwners
public void validateFetchOwners() -
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>
-