Class SqmQueryPart<T>
java.lang.Object
org.hibernate.query.sqm.tree.select.SqmQueryPart<T>
- All Implemented Interfaces:
Serializable, JpaCriteriaNode, JpaQueryPart<T>, SqmCacheable, SqmNode, SqmVisitableNode
- Direct Known Subclasses:
SqmQueryGroup, SqmQuerySpec
Defines the ordering and fetch/offset part of a query which is shared with query groups.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmQueryPart(NodeBuilder nodeBuilder) SqmQueryPart(SqmQueryPart<T> original, SqmCopyContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHqlString(StringBuilder hql, SqmRenderContext context) intabstract SqmQueryPart<T> copy(SqmCopyContext context) protected voidcopyTo(SqmQueryPart<T> target, SqmCopyContext context) boolean@Nullable JpaExpression<? extends Number> getFetch()@Nullable SqmExpression<? extends Number> abstract SqmQuerySpec<T> abstract SqmQuerySpec<T> @Nullable JpaExpression<? extends Number> @Nullable SqmExpression<? extends Number> @Nullable SqmOrderByClauseinthashCode()booleanisCompatible(Object object) abstract booleansetFetch(@Nullable JpaExpression<? extends Number> fetch) setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) voidsetFetchExpression(@Nullable SqmExpression<? extends Number> fetchExpression) voidsetFetchExpression(@Nullable SqmExpression<? extends Number> fetchExpression, FetchClauseType fetchClauseType) setOffset(@Nullable JpaExpression<? extends Number> offset) voidsetOffsetExpression(@Nullable SqmExpression<? extends Number> offsetExpression) voidsetOrderByClause(@Nullable SqmOrderByClause orderByClause) setSortSpecifications(List<? extends JpaOrder> sortSpecifications) abstract voidMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SqmNode
asLoggableTextMethods inherited from interface SqmVisitableNode
accept, toHqlString
-
Constructor Details
-
SqmQueryPart
-
SqmQueryPart
-
-
Method Details
-
copyTo
-
copy
-
getFirstQuerySpec
-
getLastQuerySpec
-
isSimpleQueryPart
public abstract boolean isSimpleQueryPart() -
nodeBuilder
- Specified by:
nodeBuilderin interfaceSqmNode
-
getOrderByClause
-
setOrderByClause
-
getFetchExpression
-
getOffsetExpression
-
setOffsetExpression
-
setFetchExpression
-
setFetchExpression
public void setFetchExpression(@Nullable SqmExpression<? extends Number> fetchExpression, FetchClauseType fetchClauseType) -
getFetchClauseType
- Specified by:
getFetchClauseTypein interfaceJpaQueryPart<T>
-
getSortSpecifications
- Specified by:
getSortSpecificationsin interfaceJpaQueryPart<T>
-
setSortSpecifications
- Specified by:
setSortSpecificationsin interfaceJpaQueryPart<T>
-
getOffset
- Specified by:
getOffsetin interfaceJpaQueryPart<T>
-
setOffset
- Specified by:
setOffsetin interfaceJpaQueryPart<T>
-
getFetch
- Specified by:
getFetchin interfaceJpaQueryPart<T>
-
setFetch
- Specified by:
setFetchin interfaceJpaQueryPart<T>
-
setFetch
public JpaQueryPart<T> setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) - Specified by:
setFetchin interfaceJpaQueryPart<T>
-
validateQueryStructureAndFetchOwners
public abstract void validateQueryStructureAndFetchOwners() -
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-