Package org.dalesbred.transaction
Interface TransactionCallback<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for executing a block of code within a transaction.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(@NotNull TransactionContext tx) static @NotNull TransactionCallback<Void>
fromVoidCallback
(@NotNull VoidTransactionCallback callback) ConvertsVoidTransactionCallback
toTransactionCallback<Void>
-
Method Details
-
execute
- Throws:
SQLException
-
fromVoidCallback
@NotNull static @NotNull TransactionCallback<Void> fromVoidCallback(@NotNull @NotNull VoidTransactionCallback callback) ConvertsVoidTransactionCallback
toTransactionCallback<Void>
-