org.axiondb.functions
Class DifferenceFunction

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

public class DifferenceFunction
extends SoundexFunction
implements ScalarFunction, FunctionFactory

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

Field Summary
 
Fields inherited from class org.axiondb.BaseSelectable
_hash
 
Constructor Summary
DifferenceFunction()
          Creates a new instance of Class
 
Method Summary
 java.lang.Object evaluate(RowDecorator row)
           
 DataType getDataType()
          StringType
 boolean isValid()
           
 ConcreteFunction makeNewInstance()
           
 
Methods inherited from class org.axiondb.functions.SoundexFunction
soundex
 
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.Function
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument
 
Methods inherited from interface org.axiondb.Selectable
getLabel, setVariableContext
 

Constructor Detail

DifferenceFunction

public DifferenceFunction()
Creates a new instance of Class

Method Detail

makeNewInstance

public ConcreteFunction makeNewInstance()
Specified by:
makeNewInstance in interface FunctionFactory
Overrides:
makeNewInstance in class SoundexFunction

getDataType

public DataType getDataType()
StringType

Specified by:
getDataType in interface Selectable
Overrides:
getDataType in class SoundexFunction

evaluate

public java.lang.Object evaluate(RowDecorator row)
                          throws AxionException
Specified by:
evaluate in interface ScalarFunction
Specified by:
evaluate in interface Selectable
Overrides:
evaluate in class SoundexFunction
Throws:
AxionException

isValid

public boolean isValid()
Specified by:
isValid in interface ConcreteFunction
Overrides:
isValid in class SoundexFunction