public abstract class VoidTransactionCallback extends Object implements TransactionCallback<Void>
TransactionCallback
that doesn't return a result.Constructor and Description |
---|
VoidTransactionCallback() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
execute(Handle handle,
TransactionStatus status)
inTransaction(org.skife.jdbi.v2.Handle, org.skife.jdbi.v2.TransactionStatus) will delegate to this method. |
Void |
inTransaction(Handle handle,
TransactionStatus status)
This implementation delegates to
execute(org.skife.jdbi.v2.Handle, org.skife.jdbi.v2.TransactionStatus) . |
protected abstract void execute(Handle handle, TransactionStatus status) throws Exception
inTransaction(org.skife.jdbi.v2.Handle, org.skife.jdbi.v2.TransactionStatus)
will delegate to this method.handle
- Handle to be used only within scope of this callbackstatus
- Allows rolling back the transactionException
- will result in a CallbackFailedException
wrapping
the exception being thrownpublic final Void inTransaction(Handle handle, TransactionStatus status) throws Exception
execute(org.skife.jdbi.v2.Handle, org.skife.jdbi.v2.TransactionStatus)
.inTransaction
in interface TransactionCallback<Void>
handle
- Exception
Copyright © 2018. All rights reserved.