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,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) booleancopy(SqmCopyContext context) booleanObtains this container's SqmFromClause.List<SqmExpression<?>> List<SqmExpression<?>> getRoots()booleangroupByClauseContains(NavigablePath navigablePath, SqmToSqlAstConverter sqlAstConverter) inthashCode()booleanbooleanbooleanbooleanorderByClauseContains(NavigablePath navigablePath, SqmToSqlAstConverter sqlAstConverter) booleansetDistinct(boolean distinct) setFetch(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(Expression<Boolean> restriction) setGroupRestriction(Predicate... restrictions) setGroupRestriction(List<Predicate> restrictions) setGroupRestriction(JpaPredicate restriction) voidsetHavingClausePredicate(SqmPredicate havingClausePredicate) setOffset(JpaExpression<? extends Number> offset) setRestriction(Expression<Boolean> restriction) setRestriction(Predicate... restrictions) setRestriction(List<Predicate> restrictions) setRestriction(JpaPredicate restriction) voidsetSelectClause(SqmSelectClause selectClause) setSelection(JpaSelection<T> selection) setSortSpecifications(List<? extends JpaOrder> sortSpecifications) voidsetWhereClause(SqmWhereClause whereClause) voidvoidbooleanwhereClauseContains(NavigablePath navigablePath, SqmToSqlAstConverter sqlAstConverter) Methods inherited from class org.hibernate.query.sqm.tree.select.SqmQueryPart
copyTo, getFetch, getFetchClauseType, getFetchExpression, getOffset, getOffsetExpression, getOrderByClause, getSortSpecifications, nodeBuilder, setFetchExpression, setFetchExpression, setOffsetExpression, setOrderByClauseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.criteria.JpaQueryPart
getFetch, getFetchClauseType, getOffset, getSortSpecificationsMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilderMethods inherited from interface org.hibernate.query.sqm.tree.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>
-