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 void
addSortSpecification(SortSpecification specification)
Expression
getFetchClauseExpression()
FetchClauseType
getFetchClauseType()
abstract QuerySpec
getFirstQuerySpec()
abstract QuerySpec
getLastQuerySpec()
Expression
getOffsetClauseExpression()
List<SortSpecification>
getSortSpecifications()
boolean
hasOffsetOrFetchClause()
boolean
hasPositionalSortItem()
boolean
hasSortSpecifications()
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 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()
-
-