org.axiondb.functions

Class CharToDateFunction

public class CharToDateFunction extends BaseFunction implements ScalarFunction, FunctionFactory

Syntax: CharToDate( date-string, 'format-literal' )

Version: $Revision: 1.7 $ $Date: 2005/03/05 01:35:35 $

Author: Jonathan Giron

Constructor Summary
CharToDateFunction()
Creates a new instance of Class
Method Summary
Objectevaluate(RowDecorator row)
Gets String value representing the timestamp/date value in the given format.
DataTypegetDataType()
booleanisValid()
ConcreteFunctionmakeNewInstance()

Constructor Detail

CharToDateFunction

public CharToDateFunction()
Creates a new instance of Class

Method Detail

evaluate

public Object evaluate(RowDecorator row)
Gets String value representing the timestamp/date value in the given format.

Parameters: row

Returns: String representation of the timestamp/date value

getDataType

public DataType getDataType()
DataType

isValid

public boolean isValid()

makeNewInstance

public ConcreteFunction makeNewInstance()