Interface TransactionalConsumer<T extends Transactional<T>,X extends Exception>
- Type Parameters:
T
- the SqlObject type to provideX
- exception thrown
- 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 TransactionalConsumer<T extends Transactional<T>,X extends Exception>
Callback that expects an open transaction and returns no results.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TransactionalCallback
<Void, T, X> void
useTransaction
(T transactional) Execute in a transaction.