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
public abstract class SqmQueryPart<T> extends Object implements SqmVisitableNode, JpaQueryPart<T>
Defines the ordering and fetch/offset part of a query which is shared with query groups.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmQueryPart(NodeBuilder nodeBuilder)
SqmQueryPart(SqmQueryPart<T> original, SqmCopyContext context)
-
Method Summary
-
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.sqm.tree.SqmNode
asLoggableText
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
accept, toHqlString
-
-
-
-
Constructor Detail
-
SqmQueryPart
public SqmQueryPart(NodeBuilder nodeBuilder)
-
SqmQueryPart
public SqmQueryPart(SqmQueryPart<T> original, SqmCopyContext context)
-
-
Method Detail
-
copyTo
protected void copyTo(SqmQueryPart<T> target, SqmCopyContext context)
-
copy
public abstract SqmQueryPart<T> copy(SqmCopyContext context)
-
getFirstQuerySpec
public abstract SqmQuerySpec<T> getFirstQuerySpec()
-
getLastQuerySpec
public abstract SqmQuerySpec<T> getLastQuerySpec()
-
isSimpleQueryPart
public abstract boolean isSimpleQueryPart()
-
nodeBuilder
public NodeBuilder nodeBuilder()
- Specified by:
nodeBuilder
in interfaceSqmNode
-
getOrderByClause
public SqmOrderByClause getOrderByClause()
-
setOrderByClause
public void setOrderByClause(SqmOrderByClause orderByClause)
-
getFetchExpression
public SqmExpression<? extends Number> getFetchExpression()
-
getOffsetExpression
public SqmExpression<? extends Number> getOffsetExpression()
-
setOffsetExpression
public void setOffsetExpression(SqmExpression<? extends Number> offsetExpression)
-
setFetchExpression
public void setFetchExpression(SqmExpression<? extends Number> fetchExpression)
-
setFetchExpression
public void setFetchExpression(SqmExpression<? extends Number> fetchExpression, FetchClauseType fetchClauseType)
-
getFetchClauseType
public FetchClauseType getFetchClauseType()
- Specified by:
getFetchClauseType
in interfaceJpaQueryPart<T>
-
getSortSpecifications
public List<SqmSortSpecification> getSortSpecifications()
- Specified by:
getSortSpecifications
in interfaceJpaQueryPart<T>
-
setSortSpecifications
public SqmQueryPart<T> setSortSpecifications(List<? extends JpaOrder> sortSpecifications)
- Specified by:
setSortSpecifications
in interfaceJpaQueryPart<T>
-
getOffset
public JpaExpression<? extends Number> getOffset()
- Specified by:
getOffset
in interfaceJpaQueryPart<T>
-
setOffset
public SqmQueryPart<T> setOffset(JpaExpression<? extends Number> offset)
- Specified by:
setOffset
in interfaceJpaQueryPart<T>
-
getFetch
public JpaExpression<? extends Number> getFetch()
- Specified by:
getFetch
in interfaceJpaQueryPart<T>
-
setFetch
public SqmQueryPart<T> setFetch(JpaExpression<? extends Number> fetch)
- Specified by:
setFetch
in interfaceJpaQueryPart<T>
-
setFetch
public JpaQueryPart<T> setFetch(JpaExpression<? extends Number> fetch, FetchClauseType fetchClauseType)
- Specified by:
setFetch
in interfaceJpaQueryPart<T>
-
validateQueryStructureAndFetchOwners
public abstract void validateQueryStructureAndFetchOwners()
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
-