switch (calculation)
{
case AVERAGE:
case VARIANCE:
{
JRSubreportReturnValue countVal = createHelperReturnValue(parentReturnValue, "_COUNT", CalculationEnum.COUNT);
addReturnValue(countVal, returnValueList, factory);
JRSubreportReturnValue sumVal = createHelperReturnValue(parentReturnValue, "_SUM", CalculationEnum.SUM);
addReturnValue(sumVal, returnValueList, factory);
filler.addVariableCalculationReq(returnValue.getToVariable(), calculation);
break;
}
case STANDARD_DEVIATION:
{
JRSubreportReturnValue varianceVal = createHelperReturnValue(parentReturnValue, "_VARIANCE", CalculationEnum.VARIANCE);
addReturnValue(varianceVal, returnValueList, factory);
filler.addVariableCalculationReq(returnValue.getToVariable(), calculation);
break;
}
case DISTINCT_COUNT:
{
JRSubreportReturnValue countVal = createDistinctCountHelperReturnValue(parentReturnValue);
addReturnValue(countVal, returnValueList, factory);
filler.addVariableCalculationReq(returnValue.getToVariable(), calculation);
break;
}