221222223224225226227228229230231
public ResultSetMetaData getMetaData() throws SQLException { throw new SQLException(); } }; StatementProxy stmt = new StatementProxyImpl(conn, new MockStatement(conn) { public ResultSet getResultSet() throws SQLException { return rs; } }, 0);
4444444544464447444844494450
public StatementProxy wrap(ConnectionProxy connection, Statement statement) { if (statement == null) { return null; } return new StatementProxyImpl(connection, statement, dataSource.createStatementId()); }