public static class FunctionAlias.JavaMethod extends java.lang.Object implements java.lang.Comparable<FunctionAlias.JavaMethod>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FunctionAlias.JavaMethod m) |
java.lang.Class<?>[] |
getColumnClasses() |
TypeInfo |
getDataType()
Returns data type information for regular functions or
null
for table value functions. |
int |
getParameterCount() |
ResultInterface |
getTableValue(SessionLocal session,
Expression[] args,
boolean columnList)
Call the table user-defined function and return the value.
|
Value |
getValue(SessionLocal session,
Expression[] args,
boolean columnList)
Call the user-defined function and return the value.
|
boolean |
hasConnectionParam()
Check if this function requires a database connection.
|
boolean |
isVarArgs() |
static ResultInterface |
resultSetToResult(SessionLocal session,
java.sql.ResultSet rs,
int maxrows)
Create a result for the given result set.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasConnectionParam()
public Value getValue(SessionLocal session, Expression[] args, boolean columnList)
session - the sessionargs - the argument listcolumnList - true if the function should only return the column
listpublic ResultInterface getTableValue(SessionLocal session, Expression[] args, boolean columnList)
session - the sessionargs - the argument listcolumnList - true if the function should only return the column
listpublic static ResultInterface resultSetToResult(SessionLocal session, java.sql.ResultSet rs, int maxrows)
session - the sessionrs - the result setmaxrows - the maximum number of rows to read (0 to just read the
meta data)public java.lang.Class<?>[] getColumnClasses()
public TypeInfo getDataType()
null
for table value functions.null
for table value functionspublic int getParameterCount()
public boolean isVarArgs()
public int compareTo(FunctionAlias.JavaMethod m)
compareTo in interface java.lang.Comparable<FunctionAlias.JavaMethod>