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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for the AggregateFormulaContext. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Return a builder for the AggregateFormulaContext.booleanisAggregate(String outerFunction) Return true if the outer function is an aggregate function (like sum, count, min, max, avg etc).booleanReturn true if the aggregate function returns a VARCHAR type.booleanReturn true if the aggregate function returns a BIGINT type.
-
Method Details
-
isAggregate
Return true if the outer function is an aggregate function (like sum, count, min, max, avg etc). -
isCount
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
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.
-