Package com.blazebit.persistence
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 Summary
Modifier and Type Method Description X
groupBy(String expression)
Adds a group by clause with the given expression to the query.X
groupBy(String... expressions)
Adds a group by clause with the given expressions to the query.X
groupByCube(String... expressions)
Adds a group by clause with a cube of the given expressions to the query.X
groupByCube(String[]... expressions)
Adds a group by clause with a cube of the given expressions to the query.X
groupByGroupingSets(String[]... expressions)
Adds a group by clause with a grouping set of the given expressions to the query.X
groupByRollup(String... expressions)
Adds a group by clause with a rollup of the given expressions to the query.X
groupByRollup(String[]... expressions)
Adds a group by clause with a rollup of the given expressions to the query.Methods inherited from interface com.blazebit.persistence.BaseHavingBuilder
having, havingCase, havingExists, havingExists, havingExpression, havingExpressionSubqueries, havingNotExists, havingNotExists, havingSimpleCase, havingSubqueries, havingSubquery, havingSubquery, havingSubquery, havingSubquery
Methods inherited from interface com.blazebit.persistence.HavingBuilder
havingOr, setHavingExpression, setHavingExpressionSubqueries
-
Method Details
-
groupBy
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
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
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
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
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
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
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
-