org.axiondb.functions
Class CastAsFunction

java.lang.Object
  extended byorg.axiondb.BaseSelectable
      extended byorg.axiondb.functions.BaseFunction
          extended byorg.axiondb.functions.CastAsFunction
All Implemented Interfaces:
ConcreteFunction, Function, FunctionFactory, ScalarFunction, Selectable, Serializable

public class CastAsFunction
extends BaseFunction
implements ScalarFunction, FunctionFactory

ANSI style Cast As Function function : CAST( {id|expr} AS type)

See Also:
Serialized Form

Constructor Summary
CastAsFunction()
           
 
Method Summary
 Object evaluate(RowDecorator row)
           
 DataType getDataType()
           
 boolean isValid()
           
 ConcreteFunction makeNewInstance()
           
 
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

CastAsFunction

public CastAsFunction()
Method Detail

makeNewInstance

public ConcreteFunction makeNewInstance()
Specified by:
makeNewInstance in interface FunctionFactory

evaluate

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

getDataType

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

isValid

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