Class AggregateTasks.Sum

java.lang.Object
ch.tocco.nice2.persist.core.api.exec.tasks2.AggregateTasks.Sum
All Implemented Interfaces:
OptionalTask<Iterable<Entity>,BigDecimal>, PersistTask<Iterable<Entity>,BigDecimal>, AggregateTasks.AggregateTask<BigDecimal>
Enclosing class:
AggregateTasks

public static class AggregateTasks.Sum extends Object implements OptionalTask<Iterable<Entity>,BigDecimal>, AggregateTasks.AggregateTask<BigDecimal>
Calculates the sum of the values returned when resolving the given path against each entity of the entity list. The path must denote a numeric field or end in a relation. For the latter case it sums up the relation targets. If the path is empty, it is the same as count.