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>

public interface HavingBuilder<T extends HavingBuilder<T>> extends BaseHavingBuilder<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 Details

    • havingOr

      HavingOrBuilder<T> havingOr()
      Starts a HavingOrBuilder 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 type T.
      Returns:
      The or predicate builder for the having clause
    • setHavingExpression

      T setHavingExpression(String expression)
      Sets the given expression as expression for the having clause.
      Parameters:
      expression - The having expression
      Returns:
      The builder
      Since:
      1.2.0
    • setHavingExpressionSubqueries

      MultipleSubqueryInitiator<T> setHavingExpressionSubqueries(String expression)
      Starts a MultipleSubqueryInitiator for expression of the having clause.

      All occurrences of subsequently defined subqueryAliases in expression 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

      Starts a PredicateBuilder for the having clause.
      Returns:
      The predicate builder for the having clause
      Since:
      1.6.8