org.axiondb.functions
Class IfThenFunction
java.lang.Object
org.axiondb.BaseSelectable
org.axiondb.functions.BaseFunction
org.axiondb.functions.IfThenFunction
- All Implemented Interfaces:
- Serializable, Function, FunctionFactory, ConcreteFunction, ScalarFunction, Selectable
public class IfThenFunction
- extends BaseFunction
- implements ScalarFunction, FunctionFactory
IFTHEN(condition value)
: returns value if condition
evalates to true; else, it returns null.
- Version:
- $Revision: 1.4 $ $Date: 2004/04/15 02:52:23 $
- See Also:
- Serialized Form
Methods inherited from class org.axiondb.functions.BaseFunction |
addArgument, getAlias, getArgument, getArgumentCount, getLabel, getName, setAlias, setArgument, setName, setVariableContext, toString |
IfThenFunction
public IfThenFunction()
makeNewInstance
public ConcreteFunction makeNewInstance()
- Specified by:
makeNewInstance
in interface FunctionFactory
getDataType
public DataType getDataType()
AnyType
- Specified by:
getDataType
in interface Selectable
- Specified by:
getDataType
in class BaseFunction
evaluate
public Object evaluate(RowDecorator row)
throws AxionException
- Specified by:
evaluate
in interface ScalarFunction
- Specified by:
evaluate
in interface Selectable
- Throws:
AxionException
isValid
public boolean isValid()
- Specified by:
isValid
in interface ConcreteFunction
- Specified by:
isValid
in class BaseFunction