public static class FunctionAlias.JavaMethod extends Object implements Comparable<FunctionAlias.JavaMethod>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(FunctionAlias.JavaMethod m) |
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,
ResultSet resultSet,
int maxrows)
Create a result for the given result set.
|
String |
toString() |
public 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, ResultSet resultSet, int maxrows)
session - the sessionresultSet - the result setmaxrows - the maximum number of rows to read (0 to just read the
meta data)public 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 在接口中 Comparable<FunctionAlias.JavaMethod>Copyright © 2022. All rights reserved.