Module is.codion.framework.db
Package is.codion.framework.db
Interface EntityConnection.TransactionalResult<T extends @Nullable Object>
- Type Parameters:
T- the result type, nullable where the transactional may return null
- Enclosing interface:
EntityConnection
- 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 static interface EntityConnection.TransactionalResult<T extends @Nullable Object>
Specifies an action to be executed within a transaction producing a result.
The result's nullness is the type argument's, carried through to the caller of
EntityConnection.transaction(EntityConnection, TransactionalResult) and EntityConnection.savepoint(EntityConnection, TransactionalResult):
a lambda returning a non-null value yields a non-null result, one which may return null a nullable one.
-
Method Summary
-
Method Details
-
execute
Executes this transactional.- Returns:
- the result
- Throws:
Exception- in case of an exception
-