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

@param stmt
- the statement
@param sql
- the sql statement
@return - the proxy
Creates a logging version of a PreparedStatement