org.axiondb.functions
Class BaseFunction

java.lang.Object
  extended by org.axiondb.BaseSelectable
      extended by org.axiondb.functions.BaseFunction
All Implemented Interfaces:
Serializable, Function, ConcreteFunction, Selectable
Direct Known Subclasses:
ABSFunction, ArithmeticFunction, AsciiFunction, Base64DecodeFunction, Base64EncodeFunction, BaseAggregateFunction, BaseBooleanBranchFunction, BaseRegExpFunction, BitAndFunction, BitOrFunction, CastAsFunction, CharFunction, CharToDateFunction, CoalesceFunction, ComparisonFunction, ConcatFunction, ContainsFunction, DateAddFunction, DateDiffFunction, DatePartFunction, DateToCharFunction, ExistsFunction, FunctionIdentifier, HexFunction, IfThenFunction, InFunction, InStringFunction, IsNotNullFunction, IsNullFunction, IsValidDateTimeFunction, LengthFunction, Log10Function, LowerFunction, LPadFunction, LTrimFunction, ModFunction, NotFunction, NotInFunction, NowFunction, NullIfFunction, ReplaceFunction, RoundFunction, RowNumFunction, RPadFunction, RTrimFunction, SignFunction, SoundexFunction, SpaceFunction, SubstringFunction, TrimFunction, TruncateFunction, UpperFunction

public abstract class BaseFunction
extends BaseSelectable
implements ConcreteFunction

An abstract base ConcreteFunctionimplementation.

Version:
$Revision: 1.11 $ $Date: 2005/12/20 18:32:28 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.axiondb.BaseSelectable
_hash
 
Constructor Summary
BaseFunction(String name)
           
BaseFunction(String name, List args)
           
 
Method Summary
 void addArgument(Selectable arg)
          Append the given Selectableto my argument list.
 Selectable getArgument(int i)
          Returns the Selectableat the given index.
 int getArgumentCount()
          Returns the number of arguments in my argument list.
abstract  DataType getDataType()
           
abstract  boolean isValid()
           
 void setArgument(int i, Selectable arg)
           
 void setVariableContext(VariableContext context)
           
 String 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
getAlias, getName, setAlias
 
Methods inherited from interface org.axiondb.Selectable
evaluate, getLabel
 

Constructor Detail

BaseFunction

public BaseFunction(String name)

BaseFunction

public BaseFunction(String name,
                    List args)
Method Detail

addArgument

public void addArgument(Selectable arg)
Description copied from interface: Function
Append the given Selectableto my argument list.

Specified by:
addArgument in interface Function

getArgument

public Selectable getArgument(int i)
Description copied from interface: Function
Returns the Selectableat the given index.

Specified by:
getArgument in interface Function

getArgumentCount

public int getArgumentCount()
Description copied from interface: Function
Returns the number of arguments in my argument list.

Specified by:
getArgumentCount in interface Function

getDataType

public abstract DataType getDataType()
Specified by:
getDataType in interface Selectable

isValid

public abstract boolean isValid()
Specified by:
isValid in interface ConcreteFunction

setArgument

public void setArgument(int i,
                        Selectable arg)
Specified by:
setArgument in interface Function

setVariableContext

public void setVariableContext(VariableContext context)
Specified by:
setVariableContext in interface Selectable
Overrides:
setVariableContext in class BaseSelectable

toString

public String toString()
Overrides:
toString in class Object