protected static CallableStatement memorize ( final CallableStatement target , final ConnectionHandle connectionHandle ) { return ( CallableStatement ) Proxy . newProxyInstance ( CallableStatementProxy . class . getClassLoader ( ) , new Class [ ] { CallableStatementProxy . class } , new MemorizeTransactionProxy ( target , connectionHandle ) ) ; }
Wrap CallableStatement with a proxy .