Interface GroupByBuilder<X extends GroupByBuilder<X>>

Type Parameters:
X - The concrete builder type
All Superinterfaces:
BaseHavingBuilder<X>, HavingBuilder<X>
All Known Subinterfaces:
BaseCriteriaBuilder<T,​X>, BaseCTECriteriaBuilder<X>, BaseFromQueryBuilder<T,​X>, BaseInsertCriteriaBuilder<T,​X>, BaseSubqueryBuilder<X>, CriteriaBuilder<T>, FullSelectCTECriteriaBuilder<X>, InsertCriteriaBuilder<T>, LeafOngoingSetOperationCriteriaBuilder<X>, LeafOngoingSetOperationCTECriteriaBuilder<X>, LeafOngoingSetOperationSubqueryBuilder<X>, OngoingSetOperationCriteriaBuilder<T,​Y>, OngoingSetOperationCTECriteriaBuilder<T,​Y>, OngoingSetOperationSubqueryBuilder<T,​Y>, ReturningInsertCriteriaBuilder<T,​X>, SelectBaseCTECriteriaBuilder<X>, SelectCTECriteriaBuilder<X>, SelectRecursiveCTECriteriaBuilder<X>, StartOngoingSetOperationCriteriaBuilder<X,​Y>, StartOngoingSetOperationCTECriteriaBuilder<X,​Y>, StartOngoingSetOperationSubqueryBuilder<X,​Y>, SubqueryBuilder<T>

public interface GroupByBuilder<X extends GroupByBuilder<X>>
extends HavingBuilder<X>
An interface for builders that support group by. This is related to the fact, that a query builder supports group by clauses.
Since:
1.0.0
Author:
Christian Beikov
  • Method Details

    • groupBy

      X groupBy​(String... expressions)
      Adds a group by clause with the given expressions to the query.
      Parameters:
      expressions - The expressions for the group by clauses
      Returns:
      The query builder for chaining calls
    • groupBy

      X groupBy​(String expression)
      Adds a group by clause with the given expression to the query.
      Parameters:
      expression - The expression for the group by clause
      Returns:
      The query builder for chaining calls
    • groupByRollup

      X groupByRollup​(String... expressions)
      Adds a group by clause with a rollup of the given expressions to the query.
      Parameters:
      expressions - The expressions for rollup for the group by clauses
      Returns:
      The query builder for chaining calls
    • groupByCube

      X groupByCube​(String... expressions)
      Adds a group by clause with a cube of the given expressions to the query.
      Parameters:
      expressions - The expressions for cube for the group by clauses
      Returns:
      The query builder for chaining calls
    • groupByRollup

      X groupByRollup​(String[]... expressions)
      Adds a group by clause with a rollup of the given expressions to the query.
      Parameters:
      expressions - The expressions for rollup for the group by clauses
      Returns:
      The query builder for chaining calls
    • groupByCube

      X groupByCube​(String[]... expressions)
      Adds a group by clause with a cube of the given expressions to the query.
      Parameters:
      expressions - The expressions for cube for the group by clauses
      Returns:
      The query builder for chaining calls
    • groupByGroupingSets

      X groupByGroupingSets​(String[]... expressions)
      Adds a group by clause with a grouping set of the given expressions to the query.
      Parameters:
      expressions - The expressions for grouping set for the group by clauses
      Returns:
      The query builder for chaining calls