Class SqmQueryPart<T>
java.lang.Object
org.hibernate.query.sqm.tree.select.SqmQueryPart<T>
- All Implemented Interfaces:
Serializable,JpaCriteriaNode,JpaQueryPart<T>,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) abstract SqmQueryPart<T> copy(SqmCopyContext context) protected voidcopyTo(SqmQueryPart<T> target, SqmCopyContext context) booleanJpaExpression<? extends Number> getFetch()SqmExpression<? extends Number> abstract SqmQuerySpec<T> abstract SqmQuerySpec<T> JpaExpression<? extends Number> SqmExpression<? extends Number> inthashCode()abstract booleansetFetch(JpaExpression<? extends Number> fetch) setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType) voidsetFetchExpression(SqmExpression<? extends Number> fetchExpression) voidsetFetchExpression(SqmExpression<? extends Number> fetchExpression, FetchClauseType fetchClauseType) setOffset(JpaExpression<? extends Number> offset) voidsetOffsetExpression(SqmExpression<? extends Number> offsetExpression) voidsetOrderByClause(SqmOrderByClause orderByClause) setSortSpecifications(List<? extends JpaOrder> sortSpecifications) abstract voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableTextMethods inherited from interface org.hibernate.query.sqm.tree.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(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
public int hashCode()
-