- Type Parameters:
C- the connection typeT- the function argument typeR- the function result type
public interface FunctionType<C,T,R>
-
Method Summary
Modifier and TypeMethodDescriptionExecutes the given function.static <C,T, R> FunctionType<C, T, R> functionType(String name) Creates aFunctionTypewith the given name and types.name()
-
Method Details
-
name
String name()- Returns:
- the function name
-
execute
Executes the given function.- Parameters:
connection- the connection being usedfunction- the function to executeargument- the function argument, if any- Returns:
- the function result
- Throws:
DatabaseException- in case of an exception
-
functionType
Creates aFunctionTypewith the given name and types.- Type Parameters:
C- the connection typeT- the function argument typeR- the function result type- Parameters:
name- the name- Returns:
- a new
FunctionType
-