Class TotalItemCountFunction

  • All Implemented Interfaces:
    Serializable, Cloneable, EventListener, ReportListener, AggregationFunction, Expression, Function
    Direct Known Subclasses:
    TotalPageItemCountFunction

    public class TotalItemCountFunction
    extends AbstractFunction
    implements AggregationFunction
    A report function that counts the total number of items contained in groups in a report. If no groupname is given, all items of the report are counted.

    Like all Total-Functions, this function produces a precomputed grand total. The function's result is precomputed once and will not change later. Printing the result of this function in a group header returns the same value as printed in the group-footer.

    The ItemCount can be used to produce a running row-count for a group or report.

    To count the number of groups in a report, use the TotalGroupCountFunction.

    Author:
    Thomas Morgner
    See Also:
    Serialized Form