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