Class QueryPart
java.lang.Object
org.hibernate.sql.ast.tree.select.QueryPart
- All Implemented Interfaces:
SqlAstNode
- Direct Known Subclasses:
QueryGroup
,QuerySpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSortSpecification
(SortSpecification specification) abstract QuerySpec
abstract QuerySpec
boolean
boolean
boolean
boolean
isRoot()
Does this QueryPart map to the statement's root query (as opposed to one of its sub-queries)?abstract <T> T
queryQuerySpecs
(Function<QuerySpec, T> querySpecConsumer) void
setFetchClauseExpression
(Expression fetchClauseExpression, FetchClauseType fetchClauseType) void
setOffsetClauseExpression
(Expression offsetClauseExpression) abstract void
visitQuerySpecs
(Consumer<QuerySpec> querySpecConsumer) void
visitSortSpecifications
(Consumer<SortSpecification> consumer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.sql.ast.tree.SqlAstNode
accept
-
Constructor Details
-
QueryPart
public QueryPart(boolean isRoot) -
QueryPart
-
-
Method Details
-
getFirstQuerySpec
-
getLastQuerySpec
-
visitQuerySpecs
-
queryQuerySpecs
-
isRoot
public boolean isRoot()Does this QueryPart map to the statement's root query (as opposed to one of its sub-queries)? -
hasSortSpecifications
public boolean hasSortSpecifications() -
hasPositionalSortItem
public boolean hasPositionalSortItem() -
getSortSpecifications
-
visitSortSpecifications
-
addSortSpecification
-
hasOffsetOrFetchClause
public boolean hasOffsetOrFetchClause() -
getOffsetClauseExpression
-
setOffsetClauseExpression
-
getFetchClauseExpression
-
setFetchClauseExpression
public void setFetchClauseExpression(Expression fetchClauseExpression, FetchClauseType fetchClauseType) -
getFetchClauseType
-