Module is.codion.framework.domain
Interface FunctionType<C,P extends @Nullable Object,R extends @Nullable Object>
- Type Parameters:
C- the connection typeThe parameter and result types carry their nullness through, to the
DatabaseFunctionand the caller executing it: a function declared with a non-null parameter receives one, and one declared with a non-null result returns one,@Nullablemarking either where null is allowed.P- the function parameter type, nullable where the function may be executed without oneR- the function result type, nullable where the function may return null
Identifies a database function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C,P extends @Nullable Object, R extends @Nullable Object>
FunctionType<C, P, R> functionType(String name) Creates aFunctionTypewith the given name.name()
-
Method Details
-
name
String name()- Returns:
- the function name
-
functionType
static <C,P extends @Nullable Object, FunctionType<C,R extends @Nullable Object> P, functionTypeR> (String name) Creates aFunctionTypewith the given name.- Type Parameters:
C- the connection typeP- the function parameter typeR- the function result type- Parameters:
name- the name- Returns:
- a new
FunctionType
-