|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FunctionCall
This interface is used by the built-in functions, as well as the user-defined functions.
Method Summary | |
---|---|
Expression[] |
getArgs()
Get the function arguments. |
java.lang.String |
getName()
Get the name of the function. |
int |
getParameterCount()
Get the number of parameters. |
java.lang.String |
getSQL()
Get the SQL snippet of the function (including arguments). |
int |
getType()
Get the data type. |
Value |
getValue(Session session)
Calculate the result. |
ValueResultSet |
getValueForColumnList(Session session,
Expression[] nullArgs)
Get an empty result set with the column names set. |
boolean |
isDeterministic()
Whether the function always returns the same result for the same parameters. |
Expression |
optimize(Session session)
Optimize the function if possible. |
Method Detail |
---|
java.lang.String getName()
int getParameterCount()
ValueResultSet getValueForColumnList(Session session, Expression[] nullArgs)
session
- the sessionnullArgs
- the argument list (some arguments may be null)
int getType()
Expression optimize(Session session)
session
- the session
Value getValue(Session session)
session
- the session
Expression[] getArgs()
java.lang.String getSQL()
boolean isDeterministic()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |