org.axiondb.functions
Class AggregateBigDecimalFunction

java.lang.Object
  extended byorg.axiondb.BaseSelectable
      extended byorg.axiondb.functions.BaseFunction
          extended byorg.axiondb.functions.AggregateBigDecimalFunction
All Implemented Interfaces:
AggregateFunction, ConcreteFunction, Function, Selectable, Serializable
Direct Known Subclasses:
MaxFunction, MinFunction, SumFunction

public abstract class AggregateBigDecimalFunction
extends BaseFunction
implements AggregateFunction

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

Constructor Summary
AggregateBigDecimalFunction(String name)
           
 
Method Summary
protected abstract  BigDecimal evaluate(BigDecimal src, BigDecimal val)
           
 Object evaluate(RowDecorator row)
           
 Object evaluate(RowDecoratorIterator rows)
           
 DataType getDataType()
           
 boolean 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.Function
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument
 
Methods inherited from interface org.axiondb.Selectable
getLabel, setVariableContext
 

Constructor Detail

AggregateBigDecimalFunction

public AggregateBigDecimalFunction(String name)
Method Detail

getDataType

public final DataType getDataType()
Specified by:
getDataType in interface Selectable
Specified by:
getDataType in class BaseFunction

evaluate

public final Object evaluate(RowDecorator row)
                      throws AxionException
Specified by:
evaluate in interface Selectable
Throws:
AxionException

evaluate

public final Object evaluate(RowDecoratorIterator rows)
                      throws AxionException
Specified by:
evaluate in interface AggregateFunction
Throws:
AxionException

evaluate

protected abstract BigDecimal evaluate(BigDecimal src,
                                       BigDecimal val)

isValid

public final boolean isValid()
Specified by:
isValid in interface ConcreteFunction
Specified by:
isValid in class BaseFunction