org.axiondb.functions
Class CharToDateFunction
java.lang.Object
org.axiondb.BaseSelectable
org.axiondb.functions.BaseFunction
org.axiondb.functions.CharToDateFunction
- All Implemented Interfaces:
- Serializable, Function, FunctionFactory, ConcreteFunction, ScalarFunction, Selectable
public class CharToDateFunction
- extends BaseFunction
- implements ScalarFunction, FunctionFactory
Syntax: CharToDate( date-string, 'format-literal' )
- Version:
- $Revision: 1.3 $ $Date: 2004/09/09 23:47:44 $
- See Also:
- Serialized Form
Methods inherited from class org.axiondb.functions.BaseFunction |
addArgument, getAlias, getArgument, getArgumentCount, getLabel, getName, setAlias, setArgument, setName, setVariableContext, toString |
CharToDateFunction
public CharToDateFunction()
- Creates a new instance of Class
makeNewInstance
public ConcreteFunction makeNewInstance()
- Specified by:
makeNewInstance
in interface FunctionFactory
getDataType
public DataType getDataType()
DataType
- Specified by:
getDataType
in interface Selectable
- Specified by:
getDataType
in class BaseFunction
evaluate
public Object evaluate(RowDecorator row)
throws AxionException
- Gets String value representing the timestamp/date value in the
given format.
- Specified by:
evaluate
in interface ScalarFunction
- Specified by:
evaluate
in interface Selectable
- Parameters:
row
-
- Returns:
- String representation of the timestamp/date value
- Throws:
AxionException
isValid
public boolean isValid()
- Specified by:
isValid
in interface ConcreteFunction
- Specified by:
isValid
in class BaseFunction