public static Statement getInstance ( Statement stmt ) { InvocationHandler handler = new JdbcLogStatement ( stmt ) ; ClassLoader cl = Statement . class . getClassLoader ( ) ; return ( Statement ) Proxy . newProxyInstance ( cl , new Class [ ] { Statement . class } , handler ) ; }
Creates a logging version of a Statement