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
  • Constructor Details

    • QueryPart

      public QueryPart(boolean isRoot)
    • QueryPart

      protected QueryPart(boolean isRoot, QueryPart original)
  • Method Details

    • getFirstQuerySpec

      public abstract QuerySpec getFirstQuerySpec()
    • getLastQuerySpec

      public abstract QuerySpec getLastQuerySpec()
    • visitQuerySpecs

      public abstract void visitQuerySpecs(Consumer<QuerySpec> querySpecConsumer)
    • queryQuerySpecs

      public abstract <T> T queryQuerySpecs(Function<QuerySpec,T> querySpecConsumer)
    • 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()