org.axiondb.functions
Class SumFunction

java.lang.Object
  extended by org.axiondb.BaseSelectable
      extended by org.axiondb.functions.BaseFunction
          extended by org.axiondb.functions.AggregateBigDecimalFunction
              extended by org.axiondb.functions.SumFunction
All Implemented Interfaces:
Serializable, Function, FunctionFactory, AggregateFunction, ConcreteFunction, Selectable

public class SumFunction
extends AggregateBigDecimalFunction
implements AggregateFunction, FunctionFactory

Version:
$Revision: 1.3 $ $Date: 2004/09/09 23:47:44 $
See Also:
Serialized Form

Constructor Summary
SumFunction()
           
 
Method Summary
protected  BigDecimal evaluate(BigDecimal src, BigDecimal val)
           
 ConcreteFunction makeNewInstance()
           
 
Methods inherited from class org.axiondb.functions.AggregateBigDecimalFunction
evaluate, evaluate, getDataType, isValid
 
Methods inherited from class org.axiondb.functions.BaseFunction
addArgument, getAlias, getArgument, getArgumentCount, getLabel, getName, setAlias, setArgument, setName, setVariableContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.functions.AggregateFunction
evaluate
 
Methods inherited from interface org.axiondb.functions.ConcreteFunction
isValid
 
Methods inherited from interface org.axiondb.Function
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument
 
Methods inherited from interface org.axiondb.Selectable
evaluate, getDataType, getLabel, setVariableContext
 

Constructor Detail

SumFunction

public SumFunction()
Method Detail

makeNewInstance

public ConcreteFunction makeNewInstance()
Specified by:
makeNewInstance in interface FunctionFactory

evaluate

protected BigDecimal evaluate(BigDecimal src,
                              BigDecimal val)
Specified by:
evaluate in class AggregateBigDecimalFunction