jetbrick-orm/src/main/java/jetbrick/dao/jdbclog/JdbcLogConnection.java
public static Connection getInstance(Connection conn) {
        InvocationHandler handler = new JdbcLogConnection(conn);
        ClassLoader cl = Connection.class.getClassLoader();
        return (Connection) Proxy.newProxyInstance(cl, new Class[] { Connection.class }, handler);
    }
public static Connection getInstance(Connection conn) {
        InvocationHandler handler = new JdbcLogConnection(conn);
        ClassLoader cl = Connection.class.getClassLoader();
        return (Connection) Proxy.newProxyInstance(cl, new Class[] { Connection.class }, handler);
    }
public static Connection getInstance ( Connection conn ) { InvocationHandler handler = new JdbcLogConnection ( conn ) ; ClassLoader cl = Connection . class . getClassLoader ( ) ; return ( Connection ) Proxy . newProxyInstance ( cl , new Class [ ] { Connection . class } , handler ) ; }
Creates a logging version of a connection

@param conn - the original connection
@return - the connection with logging
Creates a logging version of a connection