Module io.ebean.api

Interface AggregateFormulaContext


public interface AggregateFormulaContext
Used when parsing formulas to determine if they are aggregation formulas like sum, min, max, avg, count etc.

Ebean needs to determine if they are aggregation formulas to determine which properties should be included in a GROUP BY clause etc.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for the AggregateFormulaContext.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a builder for the AggregateFormulaContext.
    boolean
    isAggregate(String outerFunction)
    Return true if the outer function is an aggregate function (like sum, count, min, max, avg etc).
    boolean
    isConcat(String outerFunction)
    Return true if the aggregate function returns a VARCHAR type.
    boolean
    isCount(String outerFunction)
    Return true if the aggregate function returns a BIGINT type.
  • Method Details

    • isAggregate

      boolean isAggregate(String outerFunction)
      Return true if the outer function is an aggregate function (like sum, count, min, max, avg etc).
    • isCount

      boolean isCount(String outerFunction)
      Return true if the aggregate function returns a BIGINT type. This is true for functions like count that return a numeric value regardless of the type of the property or expression inside the outer function.
    • isConcat

      boolean isConcat(String outerFunction)
      Return true if the aggregate function returns a VARCHAR type. This is true for functions that return a string concatenation like group_concat etc regardless of the type of the property used inside the outer function.
    • builder

      Return a builder for the AggregateFormulaContext.