Class QueryPart
- java.lang.Object
-
- org.hibernate.sql.ast.tree.select.QueryPart
-
- All Implemented Interfaces:
SqlAstNode
- Direct Known Subclasses:
QueryGroup,QuerySpec
public abstract class QueryPart extends Object implements SqlAstNode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddSortSpecification(SortSpecification specification)ExpressiongetFetchClauseExpression()FetchClauseTypegetFetchClauseType()abstract QuerySpecgetFirstQuerySpec()abstract QuerySpecgetLastQuerySpec()ExpressiongetOffsetClauseExpression()List<SortSpecification>getSortSpecifications()booleanhasOffsetOrFetchClause()booleanhasPositionalSortItem()booleanhasSortSpecifications()booleanisRoot()Does this QueryPart map to the statement's root query (as opposed to one of its sub-queries)?abstract <T> TqueryQuerySpecs(Function<QuerySpec,T> querySpecConsumer)voidsetFetchClauseExpression(Expression fetchClauseExpression, FetchClauseType fetchClauseType)voidsetOffsetClauseExpression(Expression offsetClauseExpression)abstract voidvisitQuerySpecs(Consumer<QuerySpec> querySpecConsumer)voidvisitSortSpecifications(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 Detail
-
QueryPart
public QueryPart(boolean isRoot)
-
QueryPart
protected QueryPart(boolean isRoot, QueryPart original)
-
-
Method Detail
-
getFirstQuerySpec
public abstract QuerySpec getFirstQuerySpec()
-
getLastQuerySpec
public abstract QuerySpec getLastQuerySpec()
-
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
public List<SortSpecification> getSortSpecifications()
-
visitSortSpecifications
public void visitSortSpecifications(Consumer<SortSpecification> consumer)
-
addSortSpecification
public void addSortSpecification(SortSpecification specification)
-
hasOffsetOrFetchClause
public boolean hasOffsetOrFetchClause()
-
getOffsetClauseExpression
public Expression getOffsetClauseExpression()
-
setOffsetClauseExpression
public void setOffsetClauseExpression(Expression offsetClauseExpression)
-
getFetchClauseExpression
public Expression getFetchClauseExpression()
-
setFetchClauseExpression
public void setFetchClauseExpression(Expression fetchClauseExpression, FetchClauseType fetchClauseType)
-
getFetchClauseType
public FetchClauseType getFetchClauseType()
-
-