@Override public ResultSet executeQuery(String sql) throws SQLException { return new DefaultResultSet(getDelegateStatement().executeQuery(sql), this); }
@Override public final void close() throws SQLException { checkPrimitive(); try { if (current < rows) super.absolute(current = rows); DefaultDiagnosticsContext ctx = ctx(); ctx.resultSetClosing = true; if (super.next()) connection.listeners.tooManyRowsFetched(ctx); if (read.cardinality() != columns) connection.listeners.tooManyColumnsFetched(ctx); } catch (SQLException ignore) {} super.close(); }
@Override public final void beforeFirst() throws SQLException { checkPrimitive(); super.beforeFirst(); moveAbsolute(true, super.getRow()); }
@Override public final InputStream getAsciiStream(int columnIndex) throws SQLException { checkPrimitive(); read(columnIndex); return super.getAsciiStream(columnIndex); }
@Override public final Array getArray(int columnIndex) throws SQLException { checkPrimitive(); read(columnIndex); return super.getArray(columnIndex); }
private final void read(String columnLabel) throws SQLException { read(super.findColumn(columnLabel)); }
@Override public void deleteRow() throws SQLException { checkPrimitive(); super.deleteRow(); }
@Override public final InputStream getAsciiStream(String columnLabel) throws SQLException { checkPrimitive(); read(columnLabel); return super.getAsciiStream(columnLabel); }
@Override public final Array getArray(String columnLabel) throws SQLException { checkPrimitive(); read(columnLabel); return super.getArray(columnLabel); }
private final void wasPrimitive(String columnLabel) throws SQLException { wasPrimitive(super.findColumn(columnLabel)); }
@Override public ResultSet executeQuery() throws SQLException { return new DefaultResultSet(getDelegatePreparedStatement().executeQuery(), this); }
@Override public ResultSet getResultSet() throws SQLException { return new DefaultResultSet(getDelegateStatement().getResultSet(), this); }
@Override public ResultSet getGeneratedKeys() throws SQLException { return new DefaultResultSet(getDelegateStatement().getGeneratedKeys(), this); }