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