org.skife.jdbi
Interface TransactionCallback
public interface TransactionCallback
Callback interface for use with Handle
instances. Will ensure everything
executed within the callback method is in a single transactions, and will rollback
and rethrow if any exception is thrown from the callback
inTransaction
void inTransaction(Handle handle)
throws java.lang.Exception
- Called within context of a transaction
- Parameters:
handle
- will be open and transactional
- Throws:
java.lang.Exception
- will cause transaction to rollback and be rethrown