org.axiondb.functions
Class Base64EncodeFunction

java.lang.Object
  extended by org.axiondb.BaseSelectable
      extended by org.axiondb.functions.BaseFunction
          extended by org.axiondb.functions.Base64EncodeFunction
All Implemented Interfaces:
java.io.Serializable, Function, FunctionFactory, ConcreteFunction, ScalarFunction, Selectable

public class Base64EncodeFunction
extends BaseFunction
implements ScalarFunction, FunctionFactory

BASE64ENCODE(byte[]): returns a string representing the Base64 encoded value of the given byte[] or Blob.

Version:
$Revision: 1.3 $ $Date: 2005/03/04 09:09:18 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.axiondb.BaseSelectable
_hash
 
Constructor Summary
Base64EncodeFunction()
           
 
Method Summary
 java.lang.Object evaluate(RowDecorator row)
           
 DataType getDataType()
           
 boolean isValid()
           
 ConcreteFunction makeNewInstance()
           
 
Methods inherited from class org.axiondb.functions.BaseFunction
addArgument, getArgument, getArgumentCount, setArgument, setVariableContext, toString
 
Methods inherited from class org.axiondb.BaseSelectable
getAlias, getLabel, getName, setAlias, setName
 
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

Base64EncodeFunction

public Base64EncodeFunction()
Method Detail

makeNewInstance

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

getDataType

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

evaluate

public java.lang.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