Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.skife.jdbi.v2;

Abstract TransactionCallback that doesn't return a result.
 
 public abstract class VoidTransactionCallback implements TransactionCallback<Void>
 {
    
This implementation delegates to execute(org.skife.jdbi.v2.Handle,org.skife.jdbi.v2.TransactionStatus).

Parameters:
handle
Returns:
nothing
Throws:
java.lang.Exception
    @Override
    public final Void inTransaction(Handle handleTransactionStatus statusthrows Exception
    {
        execute(handlestatus);
        return null;
    }

    
inTransaction(org.skife.jdbi.v2.Handle,org.skife.jdbi.v2.TransactionStatus) will delegate to this method.

Parameters:
handle Handle to be used only within scope of this callback
status Allows rolling back the transaction
Throws:
java.lang.Exception will result in a org.skife.jdbi.v2.exceptions.CallbackFailedException wrapping the exception being thrown
    protected abstract void execute(Handle handleTransactionStatus statusthrows Exception;
New to GrepCode? Check out our FAQ X