Package com.blazebit.persistence
Interface HavingBuilder<T extends HavingBuilder<T>>
- Type Parameters:
T
- The concrete builder type
- All Superinterfaces:
BaseHavingBuilder<T>
- All Known Subinterfaces:
BaseCriteriaBuilder<T,
,X> BaseCTECriteriaBuilder<X>
,BaseFromQueryBuilder<T,
,X> BaseInsertCriteriaBuilder<T,
,X> BaseSubqueryBuilder<X>
,CriteriaBuilder<T>
,FullSelectCTECriteriaBuilder<X>
,GroupByBuilder<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>
An interface for builders that support aggregation.
This is related to the fact, that a query builder supports group by and having clauses.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionhaving()
Starts aPredicateBuilder
for the having clause.havingOr()
Starts aHavingOrBuilder
which is a predicate consisting only of disjunctiv connected predicates.setHavingExpression
(String expression) Sets the given expression as expression for the having clause.setHavingExpressionSubqueries
(String expression) Starts aMultipleSubqueryInitiator
for expression of the having clause.Methods inherited from interface com.blazebit.persistence.BaseHavingBuilder
having, havingCase, havingExists, havingExists, havingExpression, havingExpressionSubqueries, havingNotExists, havingNotExists, havingSimpleCase, havingSubqueries, havingSubquery, havingSubquery, havingSubquery, havingSubquery
-
Method Details
-
havingOr
HavingOrBuilder<T> havingOr()Starts aHavingOrBuilder
which is a predicate consisting only of disjunctiv connected predicates. When the builder finishes, the predicate is added to the parent predicate container represented by the typeT
.- Returns:
- The or predicate builder for the having clause
-
setHavingExpression
Sets the given expression as expression for the having clause.- Parameters:
expression
- The having expression- Returns:
- The builder
- Since:
- 1.2.0
-
setHavingExpressionSubqueries
Starts aMultipleSubqueryInitiator
for expression of the having clause.All occurrences of subsequently defined
subqueryAlias
es inexpression
will be replaced by the respective subquery. When the builder finishes, the resulting expression is used as expression for the having clause.- Parameters:
expression
- The having expression- Returns:
- The subquery initiator for building multiple subqueries for their respective subqueryAliases
- Since:
- 1.2.0
-
having
PredicateBuilder having()Starts aPredicateBuilder
for the having clause.- Returns:
- The predicate builder for the having clause
- Since:
- 1.6.8
-