org.axiondb.functions
Class ComparisonFunction

java.lang.Object
  extended byorg.axiondb.BaseSelectable
      extended byorg.axiondb.functions.BaseFunction
          extended byorg.axiondb.functions.ComparisonFunction
All Implemented Interfaces:
ConcreteFunction, Function, ScalarFunction, Selectable, Serializable
Direct Known Subclasses:
EqualFunction, GreaterThanFunction, GreaterThanOrEqualFunction, LessThanFunction, LessThanOrEqualFunction, NotEqualFunction

public abstract class ComparisonFunction
extends BaseFunction
implements ScalarFunction

Version:
$Revision: 1.5 $ $Date: 2003/08/25 23:41:10 $
See Also:
Serialized Form

Constructor Summary
ComparisonFunction(String name)
           
 
Method Summary
protected abstract  boolean compare(int value)
           
 Object evaluate(RowDecorator row)
           
 ComparisonFunction flip()
           
 DataType getDataType()
           
 boolean isColumnColumn()
           
 boolean isColumnLiteral()
           
 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

ComparisonFunction

public ComparisonFunction(String name)
Method Detail

getDataType

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

isValid

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

evaluate

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

compare

protected abstract boolean compare(int value)

flip

public ComparisonFunction flip()

isColumnColumn

public boolean isColumnColumn()

isColumnLiteral

public boolean isColumnLiteral()