org.axiondb.functions
Class BaseAggregateFunction

java.lang.Object
  extended by org.axiondb.BaseSelectable
      extended by org.axiondb.functions.BaseFunction
          extended by org.axiondb.functions.BaseAggregateFunction
All Implemented Interfaces:
Serializable, Function, AggregateFunction, ConcreteFunction, Selectable
Direct Known Subclasses:
AverageFunction, ComparableAggregateFunction, CountFunction, SumFunction

public abstract class BaseAggregateFunction
extends BaseFunction
implements AggregateFunction

Version:
$Revision: 1.4 $ $Date: 2005/12/20 18:32:28 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.axiondb.BaseSelectable
_hash
 
Constructor Summary
BaseAggregateFunction(String name)
           
 
Method Summary
protected  boolean acceptable(Object val)
           
 Object evaluate(RowDecorator row)
           
protected  boolean isDistinct()
           
 boolean isValid()
           
protected  void setDistinct()
           
protected  void setDistinct(boolean distinct)
           
 
Methods inherited from class org.axiondb.functions.BaseFunction
addArgument, getArgument, getArgumentCount, getDataType, setArgument, setVariableContext, toString
 
Methods inherited from class org.axiondb.BaseSelectable
getAlias, getLabel, getName, setAlias, setName
 
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.Function
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument
 
Methods inherited from interface org.axiondb.Selectable
getDataType, getLabel, setVariableContext
 

Constructor Detail

BaseAggregateFunction

public BaseAggregateFunction(String name)
Method Detail

evaluate

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

acceptable

protected boolean acceptable(Object val)
                      throws AxionException
Throws:
AxionException

setDistinct

protected void setDistinct()
                    throws AxionException
Throws:
AxionException

setDistinct

protected void setDistinct(boolean distinct)
                    throws AxionException
Throws:
AxionException

isDistinct

protected boolean isDistinct()

isValid

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