Function

This class implements most built-in functions of this database.

Methods
static Function getFunction(Database database, String name)
Get an instance of the given function for this database.
static Function getFunction(Database database, String name)
Get an instance of the given function for this database. If no function with this name is found, null is returned.
Parameters:
database - the database
name - the function name
Returns:
the function object or null
void checkParameterCount(int len)
Check if the parameter count is correct.
void checkParameterCount(int len)
Check if the parameter count is correct.
Parameters:
len - the number of parameters set
Throws:
DbException - if the parameter count is incorrect
void doneWithParameters()
This method is called after all the parameters have been set.
void doneWithParameters()
This method is called after all the parameters have been set. It checks if the parameter count is correct.
Throws:
DbException - if the parameter count is incorrect.
Expression[] getArgs()
Expression[] getArgs()
int getCost()
int getCost()
int getDisplaySize()
int getDisplaySize()
int getFunctionType()
int getFunctionType()
String getName()
String getName()
long getPrecision()
long getPrecision()
String getSQL()
String getSQL()
int getScale()
int getScale()
int getType()
int getType()
Value getValue(Session session)
Value getValue(Session session)
ValueResultSet getValueForColumnList(Session session, Expression[] argList)
ValueResultSet getValueForColumnList(Session session, Expression[] argList)
boolean isBufferResultSetToLocalTemp()
boolean isBufferResultSetToLocalTemp()
boolean isDeterministic()
boolean isDeterministic()
boolean isEverything(ExpressionVisitor visitor)
boolean isEverything(ExpressionVisitor visitor)
void mapColumns(ColumnResolver resolver, int level)
void mapColumns(ColumnResolver resolver, int level)
Expression optimize(Session session)
Expression optimize(Session session)
void setDataType(Column col)
void setDataType(Column col)
void setEvaluatable(TableFilter tableFilter, boolean b)
void setEvaluatable(TableFilter tableFilter, boolean b)
void setParameter(int index, Expression param)
Set the parameter expression at the given index.
void setParameter(int index, Expression param)
Set the parameter expression at the given index.
Parameters:
index - the index (0, 1,...)
param - the expression
void updateAggregate(Session session)
void updateAggregate(Session session)