sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1634098 [3/4] - in /sis/branches/JDK7: ./ core/sis-build-helper/src/main/java/org/apache/sis/util/resources/ core/sis-build-helper/src/test/ core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/ core/sis-metadata/src/test/java/org/a...
Date Fri, 24 Oct 2014 17:11:17 GMT
Modified: sis/branches/JDK7/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java?rev=1634098&r1=1634097&r2=1634098&view=diff
==============================================================================
--- sis/branches/JDK7/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java [UTF-8] (original)
+++ sis/branches/JDK7/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java [UTF-8] Fri Oct 24 17:11:16 2014
@@ -16,1272 +16,1632 @@
  */
 package org.apache.sis.internal.shapefile.jdbc;
 
-import java.io.*;
-import java.math.*;
-import java.net.*;
 import java.sql.*;
-import java.sql.Date;
-import java.util.*;
+import java.net.URL;
+import java.util.Map;
+import java.util.Calendar;
+import java.math.BigDecimal;
+import java.io.Reader;
+import java.io.InputStream;
 
 
 /**
- * This base class holds all the unimplemented feature of a ResultSet.
- * (In order to avoid having a ResultSet implementation of thousand lines and unreadable).
+ * Holds all the unimplemented feature of a {@code ResultSet}.
+ * This is in order to avoid having a ResultSet implementation of thousand lines and unreadable.
+ *
+ * <table class="sis">
+ *   <caption>Connection default values</caption>
+ *   <tr><th>Property</th>                           <th>Value</th></tr>
+ *   <tr><td>{@link #getType()}</td>                 <td>{@link Statement#getResultSetType()}</td></tr>
+ *   <tr><td>{@link #getConcurrency()}</td>          <td>{@link Statement#getResultSetConcurrency()}</td></tr>
+ *   <tr><td>{@link #getHoldability()}</td>          <td>{@link Statement#getResultSetHoldability()}</td></tr>
+ *   <tr><td>{@link #getFetchDirection()}</td>       <td>{@link Statement#getFetchDirection()}</td></tr>
+ *   <tr><td>{@link #getFetchSize()}</td>            <td>{@link Statement#getFetchSize()}</td></tr>
+ *   <tr><td>{@link #isBeforeFirst()}</td>           <td>Compute from {@link #getRow()}</td></tr>
+ *   <tr><td>{@link #isFirst()}</td>                 <td>Compute from {@link #getRow()}</td></tr>
+ *   <tr><td>{@link #relative(int)}</td>             <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #beforeFirst()}</td>             <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #first()}</td>                   <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #last()}</td>                    <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #afterLast()}</td>               <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #previous()}</td>                <td>Use {@link #relative(int)}</td></tr>
+ *   <tr><td>{@link #getNString(int)}</td>           <td>{@link #getString(int)}</td></tr>
+ *   <tr><td>{@link #getNCharacterStream(int)}</td>  <td>{@link #getCharacterStream(int)}</td></tr>
+ *   <tr><td>{@link #getWarnings()}</td>             <td>{@code null}</td></tr>
+ *   <tr><td>{@link #clearWarnings()}</td>           <td>Ignored</td></tr>
+ * </table>
+ *
+ * Furthermore, most methods expecting a column label of type {@code String} first invoke {@link #findColumn(String)},
+ * then invoke the method of the same name expecting a column index as an {@code int}.
  *
  * @author  Marc Le Bihan
  * @version 0.5
  * @since   0.5
  * @module
  */
-abstract public class AbstractResultSet extends AbstractJDBC implements ResultSet {
+@SuppressWarnings("unused")
+abstract class AbstractResultSet extends AbstractJDBC implements ResultSet {
+    /**
+     * Constructs a new {@code ResultSet} instance.
+     */
+    AbstractResultSet() {
+    }
+
+    /**
+     * Returns the JDBC interface implemented by this class.
+     * This is used for formatting error messages.
+     */
+    @Override
+    final Class<?> getInterface() {
+        return ResultSet.class;
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public ResultSetMetaData getMetaData() throws SQLException {
+        throw unsupportedOperation("getMetaData");
+    }
+
+    /**
+     * Defaults to {@link Statement#getResultSetType()}.
+     */
+    @Override
+    public int getType() throws SQLException {
+        return getStatement().getResultSetType();
+    }
+
+    /**
+     * Defaults to {@link Statement#getResultSetConcurrency()}.
+     */
+    @Override
+    public int getConcurrency() throws SQLException {
+        return getStatement().getResultSetConcurrency();
+    }
+
+    /**
+     * Defaults to {@link Statement#getResultSetHoldability()}.
+     */
+    @Override
+    public int getHoldability() throws SQLException {
+        return getStatement().getResultSetHoldability();
+    }
+
+    /**
+     * Defaults to {@link Statement#getFetchDirection()}.
+     */
+    @Override
+    public int getFetchDirection() throws SQLException {
+        return getStatement().getFetchDirection();
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void setFetchDirection(int direction) throws SQLException {
+        throw unsupportedOperation("setFetchDirection");
+    }
+
+    /**
+     * Defaults to {@link Statement#getFetchSize()}.
+     */
+    @Override
+    public int getFetchSize() throws SQLException {
+        return getStatement().getFetchSize();
+    }
+
     /**
-     * @see java.sql.Wrapper#unwrap(java.lang.Class)
+     * Unsupported by default.
      */
     @Override
-    public <T> T unwrap(@SuppressWarnings("unused") Class<T> iface) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void setFetchSize(int rows) throws SQLException {
+        throw unsupportedOperation("setFetchSize");
     }
 
     /**
-     * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
+     * Unsupported by default.
      */
     @Override
-    public boolean isWrapperFor(@SuppressWarnings("unused") Class<?> iface) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public String getCursorName() throws SQLException {
+        throw unsupportedOperation("getCursorName");
+    }
+
+    /**
+     * Retrieves the current row number (first row is 1). This method is unsupported by default.
+     * Implementing this method will allow {@link #relative(int)} and other methods to work with
+     * their default implementation.
+     */
+    @Override
+    public int getRow() throws SQLException {
+        throw unsupportedOperation("getRow");
+    }
+
+    /**
+     * Defaults to {@link #getRow()}.
+     */
+    @Override
+    public boolean isBeforeFirst() throws SQLException {
+        return getRow() == 0;
     }
 
     /**
-     * @see java.sql.ResultSet#wasNull()
+     * Defaults to {@link #getRow()}.
+     */
+    @Override
+    public boolean isFirst() throws SQLException {
+        return getRow() == 1;
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean isLast() throws SQLException {
+        throw unsupportedOperation("isLast");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean isAfterLast() throws SQLException {
+        throw unsupportedOperation("isAfterLast");
+    }
+
+    /**
+     * Moves the cursor to the given row number (first row is 1).
+     * Special cases:
+     * <ul>
+     *   <li>Negative numbers move to an absolute row position with respect to the end of the result set.</li>
+     *   <li>-1 moves on the last row.</li>
+     *   <li> 0 moves the cursor before the first row.</li>
+     * </ul>
+     *
+     * This method is unsupported by default. Implementing this method will allow
+     * {@link #relative(int)} and other methods to work with their default implementation.
+     *
+     * @return {@code true} if the cursor is on a row.
+     */
+    @Override
+    public boolean absolute(int row) throws SQLException {
+        throw unsupportedOperation("absolute");
+    }
+
+    /**
+     * Defaults to {@link #absolute(int)} with an offset computed from {@link #getRow()}.
+     */
+    @Override
+    public boolean relative(int rows) throws SQLException {
+        return absolute(rows - getRow());
+    }
+
+    /**
+     * Defaults to {@link #absolute(int)}.
+     */
+    @Override
+    public void beforeFirst() throws SQLException {
+        absolute(0);
+    }
+
+    /**
+     * Defaults to {@link #absolute(int)}.
+     */
+    @Override
+    public boolean first() throws SQLException {
+        return absolute(1);
+    }
+
+    /**
+     * Defaults to {@link #absolute(int)}.
+     */
+    @Override
+    public boolean last() throws SQLException {
+        return absolute(-1);
+    }
+
+    /**
+     * Defaults to {@link #last()} followed by {@link #next()}.
+     */
+    @Override
+    public void afterLast() throws SQLException {
+        if (last()) next();
+    }
+
+    /**
+     * Defaults to {@link #relative(int)}.
+     */
+    @Override
+    public boolean previous() throws SQLException {
+        return relative(-1);
+    }
+
+    /**
+     * Returns the column index for the given column name.
+     * The default implementation of all methods expecting a column label will invoke this method.
+     * The default implementation throws a {@link SQLFeatureNotSupportedException}.
+     *
+     * @param  columnLabel The name of the column.
+     * @return The index of the given column name
+     * @exception SQLException if this feature is not implemented, or if there is no column of the given name.
+     */
+    @Override
+    public int findColumn(String columnLabel) throws SQLException {
+        throw unsupportedOperation("findColumn");
+    }
+
+    /**
+     * Unsupported by default.
      */
     @Override
     public boolean wasNull() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+        throw unsupportedOperation("wasNull");
     }
 
     /**
-     * @see java.sql.ResultSet#getAsciiStream(int)
+     * Unsupported by default.
      */
     @Override
-    public InputStream getAsciiStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public RowId getRowId(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getRowId");
     }
 
     /**
-     * @see java.sql.ResultSet#getUnicodeStream(int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    @Deprecated
-    public InputStream getUnicodeStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public RowId getRowId(String columnLabel) throws SQLException {
+        return getRowId(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#getBinaryStream(int)
+     * Unsupported by default.
      */
     @Override
-    public InputStream getBinaryStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public String getString(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getString");
     }
 
     /**
-     * @see java.sql.ResultSet#getAsciiStream(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public InputStream getAsciiStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public String getString(String columnLabel) throws SQLException {
+        return getString(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#getUnicodeStream(java.lang.String)
+     * Defaults to {@link #getString(int)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    @Deprecated
-    public InputStream getUnicodeStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public String getNString(int columnIndex) throws SQLException {
+        return getString(columnIndex);
     }
 
     /**
-     * @see java.sql.ResultSet#getBinaryStream(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public InputStream getBinaryStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public String getNString(String columnLabel) throws SQLException {
+        return getNString(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#getWarnings()
+     * Unsupported by default.
      */
     @Override
-    public SQLWarning getWarnings() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public boolean getBoolean(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBoolean");
     }
 
     /**
-     * @see java.sql.ResultSet#clearWarnings()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void clearWarnings() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public boolean getBoolean(String columnLabel) throws SQLException {
+        return getBoolean(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#getCursorName()
+     * Unsupported by default.
      */
     @Override
-    public String getCursorName() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public byte getByte(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getByte");
     }
 
+    /**
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
+     */
+    @Override
+    public byte getByte(String columnLabel) throws SQLException {
+        return getByte(findColumn(columnLabel));
+    }
 
     /**
-     * @see java.sql.ResultSet#findColumn(java.lang.String)
+     * Unsupported by default.
      */
     @Override
-    public int findColumn(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public byte[] getBytes(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBytes");
     }
 
     /**
-     * @see java.sql.ResultSet#getCharacterStream(int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Reader getCharacterStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public byte[] getBytes(String columnLabel) throws SQLException {
+        return getBytes(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#getCharacterStream(java.lang.String)
+     * Unsupported by default.
      */
     @Override
-    public Reader getCharacterStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public short getShort(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getShort");
     }
 
     /**
-     * @see java.sql.ResultSet#isBeforeFirst()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public boolean isBeforeFirst() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public short getShort(String columnLabel) throws SQLException {
+        return getShort(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#isAfterLast()
+     * Unsupported by default.
      */
     @Override
-    public boolean isAfterLast() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public int getInt(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getInt");
     }
 
     /**
-     * @see java.sql.ResultSet#isFirst()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public boolean isFirst() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public int getInt(String columnLabel) throws SQLException {
+        return getInt(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#isLast()
+     * Unsupported by default.
      */
     @Override
-    public boolean isLast() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public long getLong(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getLong");
     }
 
     /**
-     * @see java.sql.ResultSet#beforeFirst()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void beforeFirst() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public long getLong(String columnLabel) throws SQLException {
+        return getLong(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#afterLast()
+     * Unsupported by default.
      */
     @Override
-    public void afterLast() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public float getFloat(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getFloat");
     }
 
     /**
-     * @see java.sql.ResultSet#first()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public boolean first() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public float getFloat(String columnLabel) throws SQLException {
+        return getFloat(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#last()
+     * Unsupported by default.
      */
     @Override
-    public boolean last() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public double getDouble(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getDouble");
     }
 
     /**
-     * @see java.sql.ResultSet#getRow()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public int getRow() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public double getDouble(String columnLabel) throws SQLException {
+        return getDouble(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#absolute(int)
+     * Unsupported by default.
      */
     @Override
-    public boolean absolute(@SuppressWarnings("unused") int row) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBigDecimal");
     }
 
     /**
-     * @see java.sql.ResultSet#relative(int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public boolean relative(@SuppressWarnings("unused") int rows) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public BigDecimal getBigDecimal(String columnLabel) throws SQLException {
+        return getBigDecimal(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#previous()
+     * @deprecated Replaced by {@link #getBigDecimal(int)}.
+     * Defaults to {@link #getBigDecimal(int)} followed by {@link BigDecimal#setScale(int)}.
      */
     @Override
-    public boolean previous() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    @Deprecated
+    public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
+        final BigDecimal d = getBigDecimal(columnIndex);
+        return (d != null) ? d.setScale(scale) : null;
     }
 
     /**
-     * @see java.sql.ResultSet#setFetchDirection(int)
+     * @deprecated Replaced by {@link #getBigDecimal(String)}.
+     * Defaults to {@link #getBigDecimal(String)} followed by {@link BigDecimal#setScale(int)}.
      */
     @Override
-    public void setFetchDirection(@SuppressWarnings("unused") int direction) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    @Deprecated
+    public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
+        final BigDecimal d = getBigDecimal(columnLabel);
+        return (d != null) ? d.setScale(scale) : null;
     }
 
     /**
-     * @see java.sql.ResultSet#getFetchDirection()
+     * Unsupported by default.
      */
     @Override
-    public int getFetchDirection() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Date getDate(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getDate");
     }
 
     /**
-     * @see java.sql.ResultSet#setFetchSize(int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void setFetchSize(@SuppressWarnings("unused") int rows) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Date getDate(String columnLabel) throws SQLException {
+        return getDate(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#getFetchSize()
+     * Unsupported by default.
      */
     @Override
-    public int getFetchSize() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Date getDate(int columnIndex, Calendar cal) throws SQLException {
+        throw unsupportedOperation("getDate");
     }
 
     /**
-     * @see java.sql.ResultSet#getType()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public int getType() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Date getDate(String columnLabel, Calendar cal) throws SQLException {
+        return getDate(findColumn(columnLabel), cal);
     }
 
     /**
-     * @see java.sql.ResultSet#getConcurrency()
+     * Unsupported by default.
      */
     @Override
-    public int getConcurrency() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Time getTime(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getTime");
     }
 
     /**
-     * @see java.sql.ResultSet#rowUpdated()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public boolean rowUpdated() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Time getTime(String columnLabel) throws SQLException {
+        return getTime(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#rowInserted()
+     * Unsupported by default.
      */
     @Override
-    public boolean rowInserted() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Time getTime(int columnIndex, Calendar cal) throws SQLException {
+        throw unsupportedOperation("getTime");
     }
 
     /**
-     * @see java.sql.ResultSet#rowDeleted()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public boolean rowDeleted() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Time getTime(String columnLabel, Calendar cal) throws SQLException {
+        return getTime(findColumn(columnLabel), cal);
     }
 
     /**
-     * @see java.sql.ResultSet#updateNull(int)
+     * Unsupported by default.
      */
     @Override
-    public void updateNull(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Timestamp getTimestamp(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getTimestamp");
     }
 
     /**
-     * @see java.sql.ResultSet#updateBoolean(int, boolean)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateBoolean(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") boolean x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Timestamp getTimestamp(String columnLabel) throws SQLException {
+        return getTimestamp(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateByte(int, byte)
+     * Unsupported by default.
      */
     @Override
-    public void updateByte(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") byte x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
+        throw unsupportedOperation("getTimestamp");
     }
 
     /**
-     * @see java.sql.ResultSet#updateShort(int, short)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateShort(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") short x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
+        return getTimestamp(findColumn(columnLabel), cal);
     }
 
     /**
-     * @see java.sql.ResultSet#updateInt(int, int)
+     * Unsupported by default.
      */
     @Override
-    public void updateInt(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") int x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public URL getURL(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getURL");
     }
 
     /**
-     * @see java.sql.ResultSet#updateLong(int, long)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateLong(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") long x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public URL getURL(String columnLabel) throws SQLException {
+        return getURL(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateFloat(int, float)
+     * Unsupported by default.
      */
     @Override
-    public void updateFloat(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") float x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Array getArray(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getArray");
     }
 
     /**
-     * @see java.sql.ResultSet#updateDouble(int, double)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateDouble(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") double x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Array getArray(String columnLabel) throws SQLException {
+        return getArray(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateBigDecimal(int, java.math.BigDecimal)
+     * Unsupported by default.
      */
     @Override
-    public void updateBigDecimal(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") BigDecimal x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public SQLXML getSQLXML(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getSQLXML");
     }
 
     /**
-     * @see java.sql.ResultSet#updateString(int, java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateString(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") String x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public SQLXML getSQLXML(String columnLabel) throws SQLException {
+        return getSQLXML(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateBytes(int, byte[])
+     * Unsupported by default.
      */
     @Override
-    public void updateBytes(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") byte[] x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Object getObject(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getObject");
     }
 
     /**
-     * @see java.sql.ResultSet#updateDate(int, java.sql.Date)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateDate(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Date x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Object getObject(String columnLabel) throws SQLException {
+        return getObject(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateTime(int, java.sql.Time)
+     * Unsupported by default.
      */
     @Override
-    public void updateTime(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Time x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
+        throw unsupportedOperation("getObject");
     }
 
     /**
-     * @see java.sql.ResultSet#updateTimestamp(int, java.sql.Timestamp)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateTimestamp(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Timestamp x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Object getObject(String columnLabel, Map<String, Class<?>> map) throws SQLException {
+        return getObject(findColumn(columnLabel), map);
     }
 
     /**
-     * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, int)
+     * Unsupported by default.
      */
     @Override
-    public void updateAsciiStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
+        throw unsupportedOperation("getObject");
     }
 
     /**
-     * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateBinaryStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
+        return getObject(findColumn(columnLabel), type);
     }
 
     /**
-     * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, int)
+     * Unsupported by default.
      */
     @Override
-    public void updateCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x, @SuppressWarnings("unused") int length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Ref getRef(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getRef");
     }
 
     /**
-     * @see java.sql.ResultSet#updateObject(int, java.lang.Object, int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Object x, @SuppressWarnings("unused") int scaleOrLength) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Ref getRef(String columnLabel) throws SQLException {
+        return getRef(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateObject(int, java.lang.Object)
+     * Unsupported by default.
      */
     @Override
-    public void updateObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Object x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Blob getBlob(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBlob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateNull(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateNull(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Blob getBlob(String columnLabel) throws SQLException {
+        return getBlob(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateBoolean(java.lang.String, boolean)
+     * Unsupported by default.
      */
     @Override
-    public void updateBoolean(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") boolean x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Clob getClob(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getClob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateByte(java.lang.String, byte)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateByte(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") byte x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Clob getClob(String columnLabel) throws SQLException {
+        return getClob(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateShort(java.lang.String, short)
+     * Unsupported by default.
      */
     @Override
-    public void updateShort(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") short x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public NClob getNClob(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getNClob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateInt(java.lang.String, int)
+     * Unsupported by default.
      */
     @Override
-    public void updateInt(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") int x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public NClob getNClob(String columnLabel) throws SQLException {
+        throw unsupportedOperation("getNClob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateLong(java.lang.String, long)
+     * Unsupported by default.
      */
     @Override
-    public void updateLong(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") long x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public InputStream getAsciiStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getAsciiStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateFloat(java.lang.String, float)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateFloat(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") float x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public InputStream getAsciiStream(String columnLabel) throws SQLException {
+        return getAsciiStream(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateDouble(java.lang.String, double)
+     * Unsupported by default.
      */
     @Override
-    public void updateDouble(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") double x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Reader getCharacterStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getCharacterStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateBigDecimal(java.lang.String, java.math.BigDecimal)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateBigDecimal(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") BigDecimal x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Reader getCharacterStream(String columnLabel) throws SQLException {
+        return getCharacterStream(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateString(java.lang.String, java.lang.String)
+     * Defaults to {@link #getCharacterStream(int)} on the assumption that the fact that Java use UTF-16 internally
+     * makes the two methods identical in behavior.
      */
     @Override
-    public void updateString(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") String x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Reader getNCharacterStream(int columnIndex) throws SQLException {
+        return getCharacterStream(columnIndex);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBytes(java.lang.String, byte[])
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateBytes(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") byte[] x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public Reader getNCharacterStream(String columnLabel) throws SQLException {
+        return getNCharacterStream(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateDate(java.lang.String, java.sql.Date)
+     * Unsupported by default.
      */
     @Override
-    public void updateDate(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Date x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    @Deprecated
+    public InputStream getUnicodeStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getUnicodeStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateTime(java.lang.String, java.sql.Time)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateTime(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Time x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    @Deprecated
+    public InputStream getUnicodeStream(String columnLabel) throws SQLException {
+        return getUnicodeStream(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateTimestamp(java.lang.String, java.sql.Timestamp)
+     * Unsupported by default.
      */
     @Override
-    public void updateTimestamp(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Timestamp x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public InputStream getBinaryStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBinaryStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream, int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateAsciiStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public InputStream getBinaryStream(String columnLabel) throws SQLException {
+        return getBinaryStream(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream, int)
+     * Unsupported by default.
      */
     @Override
-    public void updateBinaryStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNull(int columnIndex) throws SQLException {
+        throw unsupportedOperation("updateNull");
     }
 
     /**
-     * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader, int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") int length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNull(String columnLabel) throws SQLException {
+        updateNull(findColumn(columnLabel));
     }
 
     /**
-     * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object, int)
+     * Unsupported by default.
      */
     @Override
-    public void updateObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Object x, @SuppressWarnings("unused") int scaleOrLength) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateRowId(int columnIndex, RowId x) throws SQLException {
+        throw unsupportedOperation("updateRowId");
     }
 
     /**
-     * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Object x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateRowId(String columnLabel, RowId x) throws SQLException {
+        updateRowId(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#insertRow()
+     * Unsupported by default.
      */
     @Override
-    public void insertRow() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateString(int columnIndex, String x) throws SQLException {
+        throw unsupportedOperation("updateString");
     }
 
     /**
-     * @see java.sql.ResultSet#updateRow()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateRow() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateString(String columnLabel, String x) throws SQLException {
+        updateString(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#deleteRow()
+     * Defaults to {@link #updateString(int, String)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void deleteRow() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNString(int columnIndex, String nString) throws SQLException {
+        updateString(columnIndex, nString);
     }
 
     /**
-     * @see java.sql.ResultSet#refreshRow()
+     * Defaults to {@link #updateString(String, String)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void refreshRow() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNString(String columnLabel, String nString) throws SQLException {
+        updateString(columnLabel, nString);
     }
 
     /**
-     * @see java.sql.ResultSet#cancelRowUpdates()
+     * Unsupported by default.
      */
     @Override
-    public void cancelRowUpdates() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBoolean(int columnIndex, boolean x) throws SQLException {
+        throw unsupportedOperation("updateBoolean");
     }
 
     /**
-     * @see java.sql.ResultSet#moveToInsertRow()
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void moveToInsertRow() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBoolean(String columnLabel, boolean x) throws SQLException {
+        updateBoolean(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#moveToCurrentRow()
+     * Unsupported by default.
      */
     @Override
-    public void moveToCurrentRow() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateByte(int columnIndex, byte x) throws SQLException {
+        throw unsupportedOperation("updateByte");
     }
 
     /**
-     * @see java.sql.ResultSet#getRef(int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Ref getRef(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateByte(String columnLabel, byte x) throws SQLException {
+        updateByte(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getBlob(int)
+     * Unsupported by default.
      */
     @Override
-    public Blob getBlob(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBytes(int columnIndex, byte[] x) throws SQLException {
+        throw unsupportedOperation("updateBytes");
     }
 
     /**
-     * @see java.sql.ResultSet#getClob(int)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Clob getClob(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBytes(String columnLabel, byte[] x) throws SQLException {
+        updateBytes(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getArray(int)
+     * Unsupported by default.
      */
     @Override
-    public Array getArray(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateShort(int columnIndex, short x) throws SQLException {
+        throw unsupportedOperation("updateShort");
     }
 
     /**
-     * @see java.sql.ResultSet#getObject(java.lang.String, java.util.Map)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Object getObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Map<String, Class<?>> map) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateShort(String columnLabel, short x) throws SQLException {
+        updateShort(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getRef(java.lang.String)
+     * Unsupported by default.
      */
     @Override
-    public Ref getRef(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateInt(int columnIndex, int x) throws SQLException {
+        throw unsupportedOperation("updateInt");
     }
 
     /**
-     * @see java.sql.ResultSet#getBlob(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Blob getBlob(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateInt(String columnLabel, int x) throws SQLException {
+        updateInt(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getClob(java.lang.String)
+     * Unsupported by default.
      */
     @Override
-    public Clob getClob(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateLong(int columnIndex, long x) throws SQLException {
+        throw unsupportedOperation("updateLong");
     }
 
     /**
-     * @see java.sql.ResultSet#getArray(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Array getArray(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateLong(String columnLabel, long x) throws SQLException {
+        updateLong(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getDate(int, java.util.Calendar)
+     * Unsupported by default.
      */
     @Override
-    public Date getDate(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Calendar cal) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateFloat(int columnIndex, float x) throws SQLException {
+        throw unsupportedOperation("updateFloat");
     }
 
     /**
-     * @see java.sql.ResultSet#getDate(java.lang.String, java.util.Calendar)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Date getDate(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Calendar cal) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateFloat(String columnLabel, float x) throws SQLException {
+        updateFloat(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getTime(int, java.util.Calendar)
+     * Unsupported by default.
      */
     @Override
-    public Time getTime(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Calendar cal) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateDouble(int columnIndex, double x) throws SQLException {
+        throw unsupportedOperation("updateDouble");
     }
 
     /**
-     * @see java.sql.ResultSet#getTime(java.lang.String, java.util.Calendar)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Time getTime(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Calendar cal) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateDouble(String columnLabel, double x) throws SQLException {
+        updateDouble(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getTimestamp(int, java.util.Calendar)
+     * Unsupported by default.
      */
     @Override
-    public Timestamp getTimestamp(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Calendar cal) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
+        throw unsupportedOperation("updateBigDecimal");
     }
 
     /**
-     * @see java.sql.ResultSet#getTimestamp(java.lang.String, java.util.Calendar)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public Timestamp getTimestamp(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Calendar cal) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
+        updateBigDecimal(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getURL(int)
+     * Unsupported by default.
      */
     @Override
-    public URL getURL(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateDate(int columnIndex, Date x) throws SQLException {
+        throw unsupportedOperation("updateDate");
     }
 
     /**
-     * @see java.sql.ResultSet#getURL(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public URL getURL(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateDate(String columnLabel, Date x) throws SQLException {
+        updateDate(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateRef(int, java.sql.Ref)
+     * Unsupported by default.
      */
     @Override
-    public void updateRef(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Ref x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateTime(int columnIndex, Time x) throws SQLException {
+        throw unsupportedOperation("updateTime");
     }
 
     /**
-     * @see java.sql.ResultSet#updateRef(java.lang.String, java.sql.Ref)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateRef(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Ref x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateTime(String columnLabel, Time x) throws SQLException {
+        updateTime(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBlob(int, java.sql.Blob)
+     * Unsupported by default.
      */
     @Override
-    public void updateBlob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Blob x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
+        throw unsupportedOperation("updateTimestamp");
     }
 
     /**
-     * @see java.sql.ResultSet#updateBlob(java.lang.String, java.sql.Blob)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateBlob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Blob x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {
+        updateTimestamp(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateClob(int, java.sql.Clob)
+     * Unsupported by default.
      */
     @Override
-    public void updateClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Clob x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateArray(int columnIndex, Array x) throws SQLException {
+        throw unsupportedOperation("updateArray");
     }
 
     /**
-     * @see java.sql.ResultSet#updateClob(java.lang.String, java.sql.Clob)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Clob x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateArray(String columnLabel, Array x) throws SQLException {
+        updateArray(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateArray(int, java.sql.Array)
+     * Unsupported by default.
      */
     @Override
-    public void updateArray(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Array x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateObject(int columnIndex, Object x) throws SQLException {
+        throw unsupportedOperation("updateObject");
     }
 
     /**
-     * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateArray(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Array x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateObject(String columnLabel, Object x) throws SQLException {
+        updateObject(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getRowId(int)
+     * Unsupported by default.
      */
     @Override
-    public RowId getRowId(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
+        throw unsupportedOperation("updateObject");
     }
 
     /**
-     * @see java.sql.ResultSet#getRowId(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public RowId getRowId(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {
+        updateObject(findColumn(columnLabel), x, scaleOrLength);
     }
 
     /**
-     * @see java.sql.ResultSet#updateRowId(int, java.sql.RowId)
+     * Unsupported by default.
      */
     @Override
-    public void updateRowId(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") RowId x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateSQLXML(int columnIndex, SQLXML x) throws SQLException {
+        throw unsupportedOperation("updateSQLXML");
     }
 
     /**
-     * @see java.sql.ResultSet#updateRowId(java.lang.String, java.sql.RowId)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateRowId(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") RowId x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateSQLXML(String columnLabel, SQLXML x) throws SQLException {
+        updateSQLXML(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getHoldability()
+     * Unsupported by default.
      */
     @Override
-    public int getHoldability() throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateRef(int columnIndex, Ref x) throws SQLException {
+        throw unsupportedOperation("updateRef");
+    }
+
+    /**
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
+     */
+    @Override
+    public void updateRef(String columnLabel, Ref x) throws SQLException {
+        updateRef(findColumn(columnLabel), x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBlob(int columnIndex, Blob x) throws SQLException {
+        throw unsupportedOperation("updateBlob");
+    }
+
+    /**
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
+     */
+    @Override
+    public void updateBlob(String columnLabel, Blob x) throws SQLException {
+        updateBlob(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateNString(int, java.lang.String)
+     * Unsupported by default.
      */
     @Override
-    public void updateNString(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") String nString) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
+        throw unsupportedOperation("updateBlob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateNString(java.lang.String, java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateNString(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") String nString) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBlob(String columnLabel, InputStream x, long length) throws SQLException {
+        updateBlob(findColumn(columnLabel), x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateNClob(int, java.sql.NClob)
+     * Unsupported by default.
      */
     @Override
-    public void updateNClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") NClob nClob) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateClob(int columnIndex, Clob x) throws SQLException {
+        throw unsupportedOperation("updateClob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateNClob(java.lang.String, java.sql.NClob)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateNClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") NClob nClob) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateClob(String columnLabel, Clob x) throws SQLException {
+        updateClob(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getNClob(int)
+     * Unsupported by default.
      */
     @Override
-    public NClob getNClob(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
+        throw unsupportedOperation("updateClob");
     }
 
     /**
-     * @see java.sql.ResultSet#getNClob(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public NClob getNClob(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateClob(String columnLabel, Reader x, long length) throws SQLException {
+        updateClob(findColumn(columnLabel), x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#getSQLXML(int)
+     * Defaults to {@link #updateClob(int, Clob)} on the assumption that the fact that Java use UTF-16 internally
+     * makes the two methods identical in behavior.
      */
     @Override
-    public SQLXML getSQLXML(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNClob(int columnIndex, NClob x) throws SQLException {
+        updateClob(columnIndex, x);
     }
 
     /**
-     * @see java.sql.ResultSet#getSQLXML(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public SQLXML getSQLXML(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNClob(String columnLabel, NClob x) throws SQLException {
+        updateNClob(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateSQLXML(int, java.sql.SQLXML)
+     * Defaults to {@link #updateClob(int, Reader, long)} on the assumption that the fact that Java use UTF-16 internally
+     * makes the two methods identical in behavior.
      */
     @Override
-    public void updateSQLXML(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") SQLXML xmlObject) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNClob(int columnIndex, Reader x, long length) throws SQLException {
+        updateClob(columnIndex, x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateSQLXML(java.lang.String, java.sql.SQLXML)
+     * Defaults to {@link #updateClob(String, Reader, long)} on the assumption that the fact that Java use UTF-16 internally
+     * makes the two methods identical in behavior.
      */
     @Override
-    public void updateSQLXML(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") SQLXML xmlObject) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
+        updateClob(columnLabel, reader, length);
     }
 
     /**
-     * @see java.sql.ResultSet#getNString(int)
+     * Unsupported by default.
      */
     @Override
-    public String getNString(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
+        throw unsupportedOperation("updateAsciiStream");
     }
 
     /**
-     * @see java.sql.ResultSet#getNString(java.lang.String)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public String getNString(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
+        updateAsciiStream(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#getNCharacterStream(int)
+     * Delegates to {@link #updateAsciiStream(int, InputStream, long)}
      */
     @Override
-    public Reader getNCharacterStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public final void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
+        updateAsciiStream(columnIndex, x, (long) length);
     }
 
     /**
-     * @see java.sql.ResultSet#getNCharacterStream(java.lang.String)
+     * Delegates to {@link #updateAsciiStream(String, InputStream, long)}
      */
     @Override
-    public Reader getNCharacterStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public final void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
+        updateAsciiStream(columnLabel, x, (long) length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateNCharacterStream(int, java.io.Reader, long)
+     * Unsupported by default.
      */
     @Override
-    public void updateNCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
+        throw unsupportedOperation("updateAsciiStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateNCharacterStream(java.lang.String, java.io.Reader, long)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateNCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
+        updateAsciiStream(findColumn(columnLabel), x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, long)
+     * Unsupported by default.
      */
     @Override
-    public void updateAsciiStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
+        throw unsupportedOperation("updateCharacterStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, long)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateBinaryStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateCharacterStream(String columnLabel, Reader x) throws SQLException {
+        updateCharacterStream(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, long)
+     * Delegates to {@link #updateCharacterStream(int, Reader, long)}
      */
     @Override
-    public void updateCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public final void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
+        updateCharacterStream(columnIndex, x, (long) length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream, long)
+     * Delegates to {@link #updateCharacterStream(String, Reader, long)}
      */
     @Override
-    public void updateAsciiStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public final void updateCharacterStream(String columnLabel, Reader x, int length) throws SQLException {
+        updateCharacterStream(columnLabel, x, (long) length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream, long)
+     * Unsupported by default.
      */
     @Override
-    public void updateBinaryStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
+        throw unsupportedOperation("updateCharacterStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader, long)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateCharacterStream(String columnLabel, Reader x, long length) throws SQLException {
+        updateCharacterStream(findColumn(columnLabel), x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBlob(int, java.io.InputStream, long)
+     * Defaults to {@link #updateCharacterStream(int, Reader)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void updateBlob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream inputStream, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
+        updateCharacterStream(columnIndex, x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBlob(java.lang.String, java.io.InputStream, long)
+     * Defaults to {@link #updateCharacterStream(String, Reader)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void updateBlob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream inputStream, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNCharacterStream(String columnLabel, Reader x) throws SQLException {
+        updateCharacterStream(columnLabel, x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateClob(int, java.io.Reader, long)
+     * Defaults to {@link #updateCharacterStream(int, Reader, int)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void updateClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
+        updateCharacterStream(columnIndex, x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateClob(java.lang.String, java.io.Reader, long)
+     * Defaults to {@link #updateCharacterStream(String, Reader, int)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void updateClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNCharacterStream(String columnLabel, Reader x, long length) throws SQLException {
+        updateCharacterStream(columnLabel, x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateNClob(int, java.io.Reader, long)
+     * Unsupported by default.
      */
     @Override
-    public void updateNClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
+        throw unsupportedOperation("updateBinaryStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateNClob(java.lang.String, java.io.Reader, long)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateNClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
+        updateBinaryStream(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateNCharacterStream(int, java.io.Reader)
+     * Delegates to {@link #updateBinaryStream(int, InputStream, long)}.
      */
     @Override
-    public void updateNCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public final void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
+        updateBinaryStream(columnIndex, x, (long) length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateNCharacterStream(java.lang.String, java.io.Reader)
+     * Delegates to {@link #updateBinaryStream(String, InputStream, long)}.
      */
     @Override
-    public void updateNCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public final void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {
+        updateBinaryStream(columnLabel, x, (long) length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream)
+     * Unsupported by default.
      */
     @Override
-    public void updateAsciiStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
+        throw unsupportedOperation("updateBinaryStream");
     }
 
     /**
-     * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateBinaryStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
+        updateBinaryStream(findColumn(columnLabel), x, length);
     }
 
     /**
-     * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader)
+     * Unsupported by default.
      */
     @Override
-    public void updateCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBlob(int columnIndex, InputStream x) throws SQLException {
+        throw unsupportedOperation("updateBlob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateAsciiStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateBlob(String columnLabel, InputStream x) throws SQLException {
+        updateBlob(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream)
+     * Unsupported by default.
      */
     @Override
-    public void updateBinaryStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateClob(int columnIndex, Reader x) throws SQLException {
+        throw unsupportedOperation("updateClob");
     }
 
     /**
-     * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader)
+     * Defaults to the index-based version of this method.
+     * The given column name is mapped to a column index by {@link #findColumn(String)}.
      */
     @Override
-    public void updateCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateClob(String columnLabel, Reader x) throws SQLException {
+        updateClob(findColumn(columnLabel), x);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBlob(int, java.io.InputStream)
+     * Defaults to {@link #updateClob(int, Reader)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void updateBlob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream inputStream) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNClob(int columnIndex, Reader reader) throws SQLException {
+        updateClob(columnIndex, reader);
     }
 
     /**
-     * @see java.sql.ResultSet#updateBlob(java.lang.String, java.io.InputStream)
+     * Defaults to {@link #updateClob(String, Reader)} on the assumption that the fact that
+     * Java use UTF-16 internally makes the two methods identical in behavior.
      */
     @Override
-    public void updateBlob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream inputStream) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateNClob(String columnLabel, Reader reader) throws SQLException {
+        updateClob(columnLabel, reader);
     }
 
     /**
-     * @see java.sql.ResultSet#updateClob(int, java.io.Reader)
+     * Unsupported by default.
      */
     @Override
-    public void updateClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void insertRow() throws SQLException {
+        throw unsupportedOperation("insertRow");
     }
 
     /**
-     * @see java.sql.ResultSet#updateClob(java.lang.String, java.io.Reader)
+     * Unsupported by default.
      */
     @Override
-    public void updateClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void updateRow() throws SQLException {
+        throw unsupportedOperation("updateRow");
     }
 
     /**
-     * @see java.sql.ResultSet#updateNClob(int, java.io.Reader)
+     * Unsupported by default.
      */
     @Override
-    public void updateNClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void deleteRow() throws SQLException {
+        throw unsupportedOperation("deleteRow");
     }
 
     /**
-     * @see java.sql.ResultSet#updateNClob(java.lang.String, java.io.Reader)
+     * Unsupported by default.
      */
     @Override
-    public void updateNClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void refreshRow() throws SQLException {
+        throw unsupportedOperation("refreshRow");
     }
 
     /**
-     * @see java.sql.ResultSet#getObject(int, java.lang.Class)
+     * Unsupported by default.
      */
     @Override
-    public <T> T getObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Class<T> type) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void cancelRowUpdates() throws SQLException {
+        throw unsupportedOperation("cancelRowUpdates");
     }
 
     /**
-     * @see java.sql.ResultSet#getObject(java.lang.String, java.lang.Class)
+     * Unsupported by default.
      */
     @Override
-    public <T> T getObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Class<T> type) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void moveToInsertRow() throws SQLException {
+        throw unsupportedOperation("moveToInsertRow");
     }
 
     /**
-     * @see java.sql.ResultSet#getObject(int, java.util.Map)
+     * Unsupported by default.
      */
     @Override
-    public Object getObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Map<String, Class<?>> map) throws SQLException {
-        throw unsupportedOperation(ResultSet.class, "");
+    public void moveToCurrentRow() throws SQLException {
+        throw unsupportedOperation("moveToCurrentRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean rowUpdated() throws SQLException {

[... 20 lines stripped ...]


Mime
View raw message