Interface TransactionalConsumer<T extends Transactional<T>,X extends Exception> 
- Type Parameters:
 T- the SqlObject type to provideX- exception thrown
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> voiduseTransaction(T transactional) Execute in a transaction. 
- 
Method Details
- 
useTransaction
Execute in a transaction. Will be committed afterwards, or rolled back if an exception is thrown.- Parameters:
 transactional- The object communicating with the database.- Throws:
 X- any exception thrown will cause the transaction to be rolled back
 - 
asCallback
 
 -