public class DBCalculator
extends java.lang.Object
| Constructor and Description |
|---|
DBCalculator() |
| Modifier and Type | Method and Description |
|---|---|
double |
doAverage(DBResult results,
DBFormula formula)
Calculate the average value
|
int |
doCount(DBResult results,
Path pth)
Counts the result according to a path
|
java.lang.Object |
doFirst(DBResult results,
Path pth)
doFirst
|
double |
doMax(DBResult results,
DBFormula formula)
Finds the Maximum value
|
double |
doMin(DBResult results,
DBFormula formula)
Finds the minimum value
|
double |
doSum(DBResult results,
DBFormula formula)
calculates the sum
|
double |
doWeighting(DBResult results,
DBFormula formula,
DBFormula factor)
If the factor is calculated to be the same for each record this will return the Average
|
public double doSum(DBResult results, DBFormula formula) throws java.lang.Exception
results - DBResultformula - DBFormulajava.lang.Exception - a serious problempublic double doWeighting(DBResult results, DBFormula formula, DBFormula factor) throws java.lang.Exception
results - DBResultformula - DBFormulafactor - DBFormulajava.lang.Exception - a serious problempublic double doAverage(@Nonnull
DBResult results,
DBFormula formula)
throws java.lang.Exception
results - DBResultformula - DBFormulajava.lang.Exception - a serious problempublic int doCount(DBResult results, Path pth) throws java.lang.Exception
results - DBResultpth - Pathjava.lang.Exception - a serious problempublic java.lang.Object doFirst(DBResult results, Path pth) throws java.lang.Exception
results - DBResultpth - Pathjava.lang.Exception - a serious problempublic double doMin(DBResult results, DBFormula formula) throws java.lang.Exception
results - DBResultformula - DBFormulajava.lang.Exception - a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.