org.axiondb
Interface Function

All Superinterfaces:
Selectable, Serializable
All Known Subinterfaces:
AggregateFunction, ConcreteFunction, ScalarFunction
All Known Implementing Classes:
ABSFunction, AddFunction, AggregateBigDecimalFunction, AndFunction, ArithmeticFunction, AsciiFunction, AverageFunction, Base64DecodeFunction, Base64EncodeFunction, BaseBooleanBranchFunction, BaseFunction, BitAndFunction, BitOrFunction, CastAsFunction, CharFunction, CharToDateFunction, CoalesceFunction, ComparisonFunction, ConcatFunction, ContainsFunction, CountFunction, DateAddFunction, DateDiffFunction, DatePartFunction, DateToCharFunction, DifferenceFunction, DivideFunction, EqualFunction, ExistsFunction, FunctionIdentifier, GreaterThanFunction, GreaterThanOrEqualFunction, IfThenFunction, InFunction, InStringFunction, IsNotNullFunction, IsNullFunction, IsValidDateTimeFunction, LengthFunction, LessThanFunction, LessThanOrEqualFunction, LikeToRegexpFunction, Log10Function, LowerFunction, LPadFunction, LTrimFunction, MatchesFunction, MaxFunction, MinFunction, ModFunction, MultiplyFunction, NotEqualFunction, NotExistsFunction, NotFunction, NotInFunction, NowFunction, OrFunction, ReplaceFunction, RoundFunction, RowNumFunction, RPadFunction, RTrimFunction, SignFunction, SoundexFunction, SoundsLikeFunction, SpaceFunction, SubstringFunction, SubtractFunction, SumFunction, TruncateFunction, UpperFunction

public interface Function
extends Selectable

A database function.

Version:
$Revision: 1.11 $ $Date: 2004/08/27 03:21:21 $

Method Summary
 void addArgument(Selectable arg)
          Append the given Selectableto my argument list.
 String getAlias()
          Returns the Alias name of this function.
 Selectable getArgument(int i)
          Returns the Selectableat the given index.
 int getArgumentCount()
          Returns the number of arguments in my argument list.
 String getName()
          Returns the cannonical name of this function.
 void setAlias(String alias)
          Set the Alias name of this function.
 void setArgument(int i, Selectable arg)
           
 
Methods inherited from interface org.axiondb.Selectable
evaluate, getDataType, getLabel, setVariableContext
 

Method Detail

addArgument

void addArgument(Selectable arg)
Append the given Selectableto my argument list.


getAlias

String getAlias()
Returns the Alias name of this function.

Specified by:
getAlias in interface Selectable

getArgument

Selectable getArgument(int i)
                       throws IndexOutOfBoundsException
Returns the Selectableat the given index.

Throws:
IndexOutOfBoundsException - if there is no argument at the given index

getArgumentCount

int getArgumentCount()
Returns the number of arguments in my argument list.


getName

String getName()
Returns the cannonical name of this function.

Specified by:
getName in interface Selectable

setAlias

void setAlias(String alias)
Set the Alias name of this function.


setArgument

void setArgument(int i,
                 Selectable arg)