Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.skife.jdbi.v2.sqlobject;
 
 import  net.sf.cglib.proxy.MethodProxy;
 
 class InTransactionHandler implements Handler
    public Object invoke(HandleDing hfinal Object targetObject[] args, MethodProxy mp)
    {
        h.retain("transaction");
        try {
            final Transaction t = (Transactionargs[0];
            return h.getHandle().inTransaction(new TransactionCallback()
            {
                public Object inTransaction(Handle connTransactionStatus statusthrows Exception
                {
                    return t.inTransaction(targetstatus);
                }
            });
        }
        finally {
            h.release("transaction");
        }
    }
New to GrepCode? Check out our FAQ X