@Override public int getMaxRows() throws SQLException { checkNotClosed(); return maxRows; }
@Override public void setQueryTimeout(int seconds) throws SQLException { checkNotClosed(); this.queryTimeout = seconds; }
@Override public int getFetchSize() throws SQLException { checkNotClosed(); return 0; }
@Override public SQLWarning getWarnings() throws SQLException { checkNotClosed(); return null; }
@Override public int getMaxFieldSize() throws SQLException { checkNotClosed(); return 0; }
@Override public int getResultSetType() throws SQLException { checkNotClosed(); return 0; }
@Override public ResultSetMetaData getMetaData() throws SQLException { checkNotClosed(); throw new SQLException("Can this be ignored?"); }
@Override public void clearBatch() throws SQLException { checkNotClosed(); sql.clear(); bindings.clear(); bindings.add(new ArrayList<Object>()); }
@Override public void clearBatch() throws SQLException { checkNotClosed(); sql.clear(); bindings.clear(); bindings.add(new ArrayList<Object>()); }
@SuppressWarnings("resource") @Override public ResultSet getResultSet() throws SQLException { checkNotClosed(); return (result != null && resultIndex < result.length && result[resultIndex].data != null) ? new MockResultSet(result[resultIndex].data, maxRows) : null; }
@Override public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); }
@Override public void setInt(int parameterIndex, int x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }
@Override public void setFloat(int parameterIndex, float x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }
@Override public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }
@Override public void setURL(int parameterIndex, URL x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }
@Override public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, null); }
@Override public void setBoolean(int parameterIndex, boolean x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }
@Override public void setDate(int parameterIndex, Date x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }
@Override public void setDouble(int parameterIndex, double x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }
@Override public void setBytes(int parameterIndex, byte[] x) throws SQLException { checkNotClosed(); ensureBindingsCapacity(parameterIndex); bindings().set(parameterIndex - 1, x); }