Module is.codion.framework.domain
Interface DatabaseFunction<C,P extends @Nullable Object,R extends @Nullable Object>
- Type Parameters:
C- the connection type required by this functionP- the parameter type, nullable where the function may be executed without oneR- the return type, nullable where the function may return null
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface DatabaseFunction<C,P extends @Nullable Object,R extends @Nullable Object>
A database function
- See Also:
-
Method Summary
-
Method Details
-
execute
Executes this function using the given connection- Parameters:
connection- the connection to useparameter- the function parameter- Returns:
- the function return value
-