org.axiondb.functions
Class AddFunction

java.lang.Object
  extended by org.axiondb.BaseSelectable
      extended by org.axiondb.functions.BaseFunction
          extended by org.axiondb.functions.ArithmeticFunction
              extended by org.axiondb.functions.AddFunction
All Implemented Interfaces:
Serializable, Function, FunctionFactory, ConcreteFunction, ScalarFunction, Selectable

public class AddFunction
extends ArithmeticFunction
implements ScalarFunction, FunctionFactory

Version:
$Revision: 1.6 $ $Date: 2005/05/02 22:28:41 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.axiondb.BaseSelectable
_hash
 
Constructor Summary
AddFunction()
           
 
Method Summary
 ConcreteFunction makeNewInstance()
           
protected  BigDecimal operate(BigDecimal left, BigDecimal right)
           
 
Methods inherited from class org.axiondb.functions.ArithmeticFunction
evaluate, getDataType, isValid, setDataType
 
Methods inherited from class org.axiondb.functions.BaseFunction
addArgument, getArgument, getArgumentCount, 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.ScalarFunction
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
getDataType, getLabel, setVariableContext
 

Constructor Detail

AddFunction

public AddFunction()
Method Detail

makeNewInstance

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

operate

protected BigDecimal operate(BigDecimal left,
                             BigDecimal right)
                      throws AxionException
Specified by:
operate in class ArithmeticFunction
Throws:
AxionException