Class AggregateTasks
java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks2.AggregateTasks
Deprecated.
Collection of the 3 standard aggregation functions: avg, count and sum. The tasks work with either
EntityList or Iterable<Entity>.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAggregateTasks.AggregateTask<N extends Number>Deprecated.static classDeprecated.UsesAggregateTasks.SumandAggregateTasks.Countto compute the average.static classDeprecated.Returns the size of the given entity list.static classDeprecated.static classDeprecated.Uses a given field name to obtain the value of that field of each entity in the list to compute the sum.static classDeprecated.Calculates the sum of the values returned when resolving the given path against each entity of the entity list. -
Method Summary
QueryBuilderFactory.aggregate(String, ch.tocco.nice2.persist.core.api.hibernate.query.builder.Aggregate[]), it calculates the aggregates with a single database query instead of loading every entity