Interface AggregateResult


public interface AggregateResult
The values of all aggregates of one AggregateQueryBuilder.
  • Method Details

    • getSingleResult

      <T> Optional<T> getSingleResult()
      Returns:
      the value of the only aggregate of the query
      Throws:
      IllegalStateException - if the query has more than one aggregate
    • getResult

      <T> Optional<T> getResult(Aggregate<T> aggregate)
      Returns:
      the value of the aggregate or an empty Optional if no rows matched
      Throws:
      IllegalArgumentException - if the aggregate was not added to the query builder