Class BaseResultSetHandler<T>

  • Type Parameters:
    T - the target type the input ResultSet will be converted to.
    All Implemented Interfaces:
    ResultSetHandler<T>

    public abstract class BaseResultSetHandler<T>
    extends java.lang.Object
    implements ResultSetHandler<T>
    Extensions of this class convert ResultSets into other objects. According to the DRY principle (Don't Repeat Yourself), repeating resultSet variable inside the ResultSetHandler.handle(ResultSet) over and over for each iteration can get a little tedious, AbstractResultSetHandler implicitly gives users access to ResultSet's methods. NOTE This class is NOT thread safe!
    Since:
    1.6
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.sql.ResultSet resultSet
      The adapted ResultSet.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected boolean absolute​(int row)
      protected void afterLast()
      protected void beforeFirst()
      protected void cancelRowUpdates()
      protected void clearWarnings()
      protected void close()
      protected void deleteRow()
      protected int findColumn​(java.lang.String columnLabel)
      protected boolean first()
      protected java.sql.ResultSet getAdaptedResultSet()  
      protected java.sql.Array getArray​(int columnIndex)
      protected java.sql.Array getArray​(java.lang.String columnLabel)
      protected java.io.InputStream getAsciiStream​(int columnIndex)
      protected java.io.InputStream getAsciiStream​(java.lang.String columnLabel)
      protected java.math.BigDecimal getBigDecimal​(int columnIndex)
      protected java.math.BigDecimal getBigDecimal​(int columnIndex, int scale)
      Deprecated.
      protected java.math.BigDecimal getBigDecimal​(java.lang.String columnLabel)
      protected java.math.BigDecimal getBigDecimal​(java.lang.String columnLabel, int scale)
      Deprecated.
      protected java.io.InputStream getBinaryStream​(int columnIndex)
      protected java.io.InputStream getBinaryStream​(java.lang.String columnLabel)
      protected java.sql.Blob getBlob​(int columnIndex)
      protected java.sql.Blob getBlob​(java.lang.String columnLabel)
      protected boolean getBoolean​(int columnIndex)
      protected boolean getBoolean​(java.lang.String columnLabel)
      protected byte getByte​(int columnIndex)
      protected byte getByte​(java.lang.String columnLabel)
      protected byte[] getBytes​(int columnIndex)
      protected byte[] getBytes​(java.lang.String columnLabel)
      protected java.io.Reader getCharacterStream​(int columnIndex)
      protected java.io.Reader getCharacterStream​(java.lang.String columnLabel)
      protected java.sql.Clob getClob​(int columnIndex)
      protected java.sql.Clob getClob​(java.lang.String columnLabel)
      protected int getConcurrency()
      protected java.lang.String getCursorName()
      protected java.sql.Date getDate​(int columnIndex)
      protected java.sql.Date getDate​(int columnIndex, java.util.Calendar cal)
      protected java.sql.Date getDate​(java.lang.String columnLabel)
      protected java.sql.Date getDate​(java.lang.String columnLabel, java.util.Calendar cal)
      protected double getDouble​(int columnIndex)
      protected double getDouble​(java.lang.String columnLabel)
      protected int getFetchDirection()
      protected int getFetchSize()
      protected float getFloat​(int columnIndex)
      protected float getFloat​(java.lang.String columnLabel)
      protected int getHoldability()
      protected int getInt​(int columnIndex)
      protected int getInt​(java.lang.String columnLabel)
      protected long getLong​(int columnIndex)
      protected long getLong​(java.lang.String columnLabel)
      protected java.sql.ResultSetMetaData getMetaData()
      protected java.io.Reader getNCharacterStream​(int columnIndex)
      protected java.io.Reader getNCharacterStream​(java.lang.String columnLabel)
      protected java.sql.NClob getNClob​(int columnIndex)
      protected java.sql.NClob getNClob​(java.lang.String columnLabel)
      protected java.lang.String getNString​(int columnIndex)
      protected java.lang.String getNString​(java.lang.String columnLabel)
      protected java.lang.Object getObject​(int columnIndex)
      protected java.lang.Object getObject​(int columnIndex, java.util.Map<java.lang.String,​java.lang.Class<?>> map)
      protected java.lang.Object getObject​(java.lang.String columnLabel)
      protected java.lang.Object getObject​(java.lang.String columnLabel, java.util.Map<java.lang.String,​java.lang.Class<?>> map)
      protected java.sql.Ref getRef​(int columnIndex)
      protected java.sql.Ref getRef​(java.lang.String columnLabel)
      protected int getRow()
      protected java.sql.RowId getRowId​(int columnIndex)
      protected java.sql.RowId getRowId​(java.lang.String columnLabel)
      protected short getShort​(int columnIndex)
      protected short getShort​(java.lang.String columnLabel)
      protected java.sql.SQLXML getSQLXML​(int columnIndex)
      protected java.sql.SQLXML getSQLXML​(java.lang.String columnLabel)
      protected java.sql.Statement getStatement()
      protected java.lang.String getString​(int columnIndex)
      protected java.lang.String getString​(java.lang.String columnLabel)
      protected java.sql.Time getTime​(int columnIndex)
      protected java.sql.Time getTime​(int columnIndex, java.util.Calendar cal)
      protected java.sql.Time getTime​(java.lang.String columnLabel)
      protected java.sql.Time getTime​(java.lang.String columnLabel, java.util.Calendar cal)
      protected java.sql.Timestamp getTimestamp​(int columnIndex)
      protected java.sql.Timestamp getTimestamp​(int columnIndex, java.util.Calendar cal)
      protected java.sql.Timestamp getTimestamp​(java.lang.String columnLabel)
      protected java.sql.Timestamp getTimestamp​(java.lang.String columnLabel, java.util.Calendar cal)
      protected int getType()
      protected java.io.InputStream getUnicodeStream​(int columnIndex)
      Deprecated.
      protected java.io.InputStream getUnicodeStream​(java.lang.String columnLabel)
      Deprecated.
      protected java.net.URL getURL​(int columnIndex)
      protected java.net.URL getURL​(java.lang.String columnLabel)
      protected java.sql.SQLWarning getWarnings()
      protected abstract T handle()
      Turn the ResultSet into an Object.
      T handle​(java.sql.ResultSet rs)
      Turn the ResultSet into an Object.
      protected void insertRow()
      protected boolean isAfterLast()
      protected boolean isBeforeFirst()
      protected boolean isClosed()
      protected boolean isFirst()
      protected boolean isLast()
      protected boolean isWrapperFor​(java.lang.Class<?> iface)
      protected boolean last()
      protected void moveToCurrentRow()
      protected void moveToInsertRow()
      protected boolean next()
      protected boolean previous()
      protected void refreshRow()
      protected boolean relative​(int rows)
      protected boolean rowDeleted()
      protected boolean rowInserted()
      protected boolean rowUpdated()
      protected void setFetchDirection​(int direction)
      protected void setFetchSize​(int rows)
      protected <E> E unwrap​(java.lang.Class<E> iface)
      protected void updateArray​(int columnIndex, java.sql.Array x)
      protected void updateArray​(java.lang.String columnLabel, java.sql.Array x)
      protected void updateAsciiStream​(int columnIndex, java.io.InputStream x)
      protected void updateAsciiStream​(int columnIndex, java.io.InputStream x, int length)
      protected void updateAsciiStream​(int columnIndex, java.io.InputStream x, long length)
      protected void updateAsciiStream​(java.lang.String columnLabel, java.io.InputStream x)
      protected void updateAsciiStream​(java.lang.String columnLabel, java.io.InputStream x, int length)
      protected void updateAsciiStream​(java.lang.String columnLabel, java.io.InputStream x, long length)
      protected void updateBigDecimal​(int columnIndex, java.math.BigDecimal x)
      protected void updateBigDecimal​(java.lang.String columnLabel, java.math.BigDecimal x)
      protected void updateBinaryStream​(int columnIndex, java.io.InputStream x)
      protected void updateBinaryStream​(int columnIndex, java.io.InputStream x, int length)
      protected void updateBinaryStream​(int columnIndex, java.io.InputStream x, long length)
      protected void updateBinaryStream​(java.lang.String columnLabel, java.io.InputStream x)
      protected void updateBinaryStream​(java.lang.String columnLabel, java.io.InputStream x, int length)
      protected void updateBinaryStream​(java.lang.String columnLabel, java.io.InputStream x, long length)
      protected void updateBlob​(int columnIndex, java.io.InputStream inputStream)
      protected void updateBlob​(int columnIndex, java.io.InputStream inputStream, long length)
      protected void updateBlob​(int columnIndex, java.sql.Blob x)
      protected void updateBlob​(java.lang.String columnLabel, java.io.InputStream inputStream)
      protected void updateBlob​(java.lang.String columnLabel, java.io.InputStream inputStream, long length)
      protected void updateBlob​(java.lang.String columnLabel, java.sql.Blob x)
      protected void updateBoolean​(int columnIndex, boolean x)
      protected void updateBoolean​(java.lang.String columnLabel, boolean x)
      protected void updateByte​(int columnIndex, byte x)
      protected void updateByte​(java.lang.String columnLabel, byte x)
      protected void updateBytes​(int columnIndex, byte[] x)
      protected void updateBytes​(java.lang.String columnLabel, byte[] x)
      protected void updateCharacterStream​(int columnIndex, java.io.Reader x)
      protected void updateCharacterStream​(int columnIndex, java.io.Reader x, int length)
      protected void updateCharacterStream​(int columnIndex, java.io.Reader x, long length)
      protected void updateCharacterStream​(java.lang.String columnLabel, java.io.Reader reader)
      protected void updateCharacterStream​(java.lang.String columnLabel, java.io.Reader reader, int length)
      protected void updateCharacterStream​(java.lang.String columnLabel, java.io.Reader reader, long length)
      protected void updateClob​(int columnIndex, java.io.Reader reader)
      protected void updateClob​(int columnIndex, java.io.Reader reader, long length)
      protected void updateClob​(int columnIndex, java.sql.Clob x)
      protected void updateClob​(java.lang.String columnLabel, java.io.Reader reader)
      protected void updateClob​(java.lang.String columnLabel, java.io.Reader reader, long length)
      protected void updateClob​(java.lang.String columnLabel, java.sql.Clob x)
      protected void updateDate​(int columnIndex, java.sql.Date x)
      protected void updateDate​(java.lang.String columnLabel, java.sql.Date x)
      protected void updateDouble​(int columnIndex, double x)
      protected void updateDouble​(java.lang.String columnLabel, double x)
      protected void updateFloat​(int columnIndex, float x)
      protected void updateFloat​(java.lang.String columnLabel, float x)
      protected void updateInt​(int columnIndex, int x)
      protected void updateInt​(java.lang.String columnLabel, int x)
      protected void updateLong​(int columnIndex, long x)
      protected void updateLong​(java.lang.String columnLabel, long x)
      protected void updateNCharacterStream​(int columnIndex, java.io.Reader x)
      protected void updateNCharacterStream​(int columnIndex, java.io.Reader x, long length)
      protected void updateNCharacterStream​(java.lang.String columnLabel, java.io.Reader reader)
      protected void updateNCharacterStream​(java.lang.String columnLabel, java.io.Reader reader, long length)
      protected void updateNClob​(int columnIndex, java.io.Reader reader)
      protected void updateNClob​(int columnIndex, java.io.Reader reader, long length)
      protected void updateNClob​(int columnIndex, java.sql.NClob nClob)
      protected void updateNClob​(java.lang.String columnLabel, java.io.Reader reader)
      protected void updateNClob​(java.lang.String columnLabel, java.io.Reader reader, long length)
      protected void updateNClob​(java.lang.String columnLabel, java.sql.NClob nClob)
      protected void updateNString​(int columnIndex, java.lang.String nString)
      protected void updateNString​(java.lang.String columnLabel, java.lang.String nString)
      protected void updateNull​(int columnIndex)
      protected void updateNull​(java.lang.String columnLabel)
      protected void updateObject​(int columnIndex, java.lang.Object x)
      protected void updateObject​(int columnIndex, java.lang.Object x, int scaleOrLength)
      protected void updateObject​(java.lang.String columnLabel, java.lang.Object x)
      protected void updateObject​(java.lang.String columnLabel, java.lang.Object x, int scaleOrLength)
      protected void updateRef​(int columnIndex, java.sql.Ref x)
      protected void updateRef​(java.lang.String columnLabel, java.sql.Ref x)
      protected void updateRow()
      protected void updateRowId​(int columnIndex, java.sql.RowId x)
      protected void updateRowId​(java.lang.String columnLabel, java.sql.RowId x)
      protected void updateShort​(int columnIndex, short x)
      protected void updateShort​(java.lang.String columnLabel, short x)
      protected void updateSQLXML​(int columnIndex, java.sql.SQLXML xmlObject)
      protected void updateSQLXML​(java.lang.String columnLabel, java.sql.SQLXML xmlObject)
      protected void updateString​(int columnIndex, java.lang.String x)
      protected void updateString​(java.lang.String columnLabel, java.lang.String x)
      protected void updateTime​(int columnIndex, java.sql.Time x)
      protected void updateTime​(java.lang.String columnLabel, java.sql.Time x)
      protected void updateTimestamp​(int columnIndex, java.sql.Timestamp x)
      protected void updateTimestamp​(java.lang.String columnLabel, java.sql.Timestamp x)
      protected boolean wasNull()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resultSet

        private java.sql.ResultSet resultSet
        The adapted ResultSet.
    • Constructor Detail

      • BaseResultSetHandler

        public BaseResultSetHandler()
    • Method Detail

      • absolute

        protected final boolean absolute​(int row)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • afterLast

        protected final void afterLast()
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • beforeFirst

        protected final void beforeFirst()
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • cancelRowUpdates

        protected final void cancelRowUpdates()
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • clearWarnings

        protected final void clearWarnings()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • close

        protected final void close()
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • deleteRow

        protected final void deleteRow()
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • findColumn

        protected final int findColumn​(java.lang.String columnLabel)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • first

        protected final boolean first()
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getAdaptedResultSet

        protected final java.sql.ResultSet getAdaptedResultSet()
      • getArray

        protected final java.sql.Array getArray​(int columnIndex)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getArray

        protected final java.sql.Array getArray​(java.lang.String columnLabel)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getAsciiStream

        protected final java.io.InputStream getAsciiStream​(int columnIndex)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getAsciiStream

        protected final java.io.InputStream getAsciiStream​(java.lang.String columnLabel)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBigDecimal

        protected final java.math.BigDecimal getBigDecimal​(int columnIndex)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBigDecimal

        @Deprecated
        protected final java.math.BigDecimal getBigDecimal​(int columnIndex,
                                                           int scale)
                                                    throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • getBigDecimal

        protected final java.math.BigDecimal getBigDecimal​(java.lang.String columnLabel)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBigDecimal

        @Deprecated
        protected final java.math.BigDecimal getBigDecimal​(java.lang.String columnLabel,
                                                           int scale)
                                                    throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • getBinaryStream

        protected final java.io.InputStream getBinaryStream​(int columnIndex)
                                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBinaryStream

        protected final java.io.InputStream getBinaryStream​(java.lang.String columnLabel)
                                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBlob

        protected final java.sql.Blob getBlob​(int columnIndex)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBlob

        protected final java.sql.Blob getBlob​(java.lang.String columnLabel)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBoolean

        protected final boolean getBoolean​(int columnIndex)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBoolean

        protected final boolean getBoolean​(java.lang.String columnLabel)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getByte

        protected final byte getByte​(int columnIndex)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getByte

        protected final byte getByte​(java.lang.String columnLabel)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBytes

        protected final byte[] getBytes​(int columnIndex)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getBytes

        protected final byte[] getBytes​(java.lang.String columnLabel)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getCharacterStream

        protected final java.io.Reader getCharacterStream​(int columnIndex)
                                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getCharacterStream

        protected final java.io.Reader getCharacterStream​(java.lang.String columnLabel)
                                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getClob

        protected final java.sql.Clob getClob​(int columnIndex)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getClob

        protected final java.sql.Clob getClob​(java.lang.String columnLabel)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getConcurrency

        protected final int getConcurrency()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getCursorName

        protected final java.lang.String getCursorName()
                                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getDate

        protected final java.sql.Date getDate​(int columnIndex)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getDate

        protected final java.sql.Date getDate​(int columnIndex,
                                              java.util.Calendar cal)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getDate

        protected final java.sql.Date getDate​(java.lang.String columnLabel)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getDate

        protected final java.sql.Date getDate​(java.lang.String columnLabel,
                                              java.util.Calendar cal)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getDouble

        protected final double getDouble​(int columnIndex)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getDouble

        protected final double getDouble​(java.lang.String columnLabel)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getFetchDirection

        protected final int getFetchDirection()
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getFetchSize

        protected final int getFetchSize()
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getFloat

        protected final float getFloat​(int columnIndex)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getFloat

        protected final float getFloat​(java.lang.String columnLabel)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getHoldability

        protected final int getHoldability()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInt

        protected final int getInt​(int columnIndex)
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getInt

        protected final int getInt​(java.lang.String columnLabel)
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getLong

        protected final long getLong​(int columnIndex)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getLong

        protected final long getLong​(java.lang.String columnLabel)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getMetaData

        protected final java.sql.ResultSetMetaData getMetaData()
                                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNCharacterStream

        protected final java.io.Reader getNCharacterStream​(int columnIndex)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNCharacterStream

        protected final java.io.Reader getNCharacterStream​(java.lang.String columnLabel)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNClob

        protected final java.sql.NClob getNClob​(int columnIndex)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNClob

        protected final java.sql.NClob getNClob​(java.lang.String columnLabel)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNString

        protected final java.lang.String getNString​(int columnIndex)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNString

        protected final java.lang.String getNString​(java.lang.String columnLabel)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getObject

        protected final java.lang.Object getObject​(int columnIndex)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getObject

        protected final java.lang.Object getObject​(int columnIndex,
                                                   java.util.Map<java.lang.String,​java.lang.Class<?>> map)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getObject

        protected final java.lang.Object getObject​(java.lang.String columnLabel)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getObject

        protected final java.lang.Object getObject​(java.lang.String columnLabel,
                                                   java.util.Map<java.lang.String,​java.lang.Class<?>> map)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getRef

        protected final java.sql.Ref getRef​(int columnIndex)
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getRef

        protected final java.sql.Ref getRef​(java.lang.String columnLabel)
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getRow

        protected final int getRow()
                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getRowId

        protected final java.sql.RowId getRowId​(int columnIndex)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getRowId

        protected final java.sql.RowId getRowId​(java.lang.String columnLabel)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getShort

        protected final short getShort​(int columnIndex)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getShort

        protected final short getShort​(java.lang.String columnLabel)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSQLXML

        protected final java.sql.SQLXML getSQLXML​(int columnIndex)
                                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSQLXML

        protected final java.sql.SQLXML getSQLXML​(java.lang.String columnLabel)
                                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getStatement

        protected final java.sql.Statement getStatement()
                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getString

        protected final java.lang.String getString​(int columnIndex)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getString

        protected final java.lang.String getString​(java.lang.String columnLabel)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTime

        protected final java.sql.Time getTime​(int columnIndex)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTime

        protected final java.sql.Time getTime​(int columnIndex,
                                              java.util.Calendar cal)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTime

        protected final java.sql.Time getTime​(java.lang.String columnLabel)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTime

        protected final java.sql.Time getTime​(java.lang.String columnLabel,
                                              java.util.Calendar cal)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTimestamp

        protected final java.sql.Timestamp getTimestamp​(int columnIndex)
                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTimestamp

        protected final java.sql.Timestamp getTimestamp​(int columnIndex,
                                                        java.util.Calendar cal)
                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTimestamp

        protected final java.sql.Timestamp getTimestamp​(java.lang.String columnLabel)
                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getTimestamp

        protected final java.sql.Timestamp getTimestamp​(java.lang.String columnLabel,
                                                        java.util.Calendar cal)
                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getType

        protected final int getType()
                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getUnicodeStream

        @Deprecated
        protected final java.io.InputStream getUnicodeStream​(int columnIndex)
                                                      throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • getUnicodeStream

        @Deprecated
        protected final java.io.InputStream getUnicodeStream​(java.lang.String columnLabel)
                                                      throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • getURL

        protected final java.net.URL getURL​(int columnIndex)
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getURL

        protected final java.net.URL getURL​(java.lang.String columnLabel)
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getWarnings

        protected final java.sql.SQLWarning getWarnings()
                                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • handle

        protected abstract T handle()
                             throws java.sql.SQLException
        Turn the ResultSet into an Object.
        Returns:
        An Object initialized with ResultSet data
        Throws:
        java.sql.SQLException - if a database access error occurs
        See Also:
        ResultSetHandler.handle(ResultSet)
      • handle

        public final T handle​(java.sql.ResultSet rs)
                       throws java.sql.SQLException
        Turn the ResultSet into an Object.
        Specified by:
        handle in interface ResultSetHandler<T>
        Parameters:
        rs - The ResultSet to handle. It has not been touched before being passed to this method.
        Returns:
        An Object initialized with ResultSet data. It is legal for implementations to return null if the ResultSet contained 0 rows.
        Throws:
        java.sql.SQLException - if a database access error occurs
      • insertRow

        protected final void insertRow()
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isAfterLast

        protected final boolean isAfterLast()
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isBeforeFirst

        protected final boolean isBeforeFirst()
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isClosed

        protected final boolean isClosed()
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isFirst

        protected final boolean isFirst()
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isLast

        protected final boolean isLast()
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • isWrapperFor

        protected final boolean isWrapperFor​(java.lang.Class<?> iface)
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • last

        protected final boolean last()
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • moveToCurrentRow

        protected final void moveToCurrentRow()
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • moveToInsertRow

        protected final void moveToInsertRow()
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • next

        protected final boolean next()
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • previous

        protected final boolean previous()
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • refreshRow

        protected final void refreshRow()
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • relative

        protected final boolean relative​(int rows)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • rowDeleted

        protected final boolean rowDeleted()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • rowInserted

        protected final boolean rowInserted()
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • rowUpdated

        protected final boolean rowUpdated()
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setFetchDirection

        protected final void setFetchDirection​(int direction)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setFetchSize

        protected final void setFetchSize​(int rows)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • unwrap

        protected final <E> E unwrap​(java.lang.Class<E> iface)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateArray

        protected final void updateArray​(int columnIndex,
                                         java.sql.Array x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateArray

        protected final void updateArray​(java.lang.String columnLabel,
                                         java.sql.Array x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateAsciiStream

        protected final void updateAsciiStream​(int columnIndex,
                                               java.io.InputStream x)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateAsciiStream

        protected final void updateAsciiStream​(int columnIndex,
                                               java.io.InputStream x,
                                               int length)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateAsciiStream

        protected final void updateAsciiStream​(int columnIndex,
                                               java.io.InputStream x,
                                               long length)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateAsciiStream

        protected final void updateAsciiStream​(java.lang.String columnLabel,
                                               java.io.InputStream x)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateAsciiStream

        protected final void updateAsciiStream​(java.lang.String columnLabel,
                                               java.io.InputStream x,
                                               int length)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateAsciiStream

        protected final void updateAsciiStream​(java.lang.String columnLabel,
                                               java.io.InputStream x,
                                               long length)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBigDecimal

        protected final void updateBigDecimal​(int columnIndex,
                                              java.math.BigDecimal x)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBigDecimal

        protected final void updateBigDecimal​(java.lang.String columnLabel,
                                              java.math.BigDecimal x)
                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBinaryStream

        protected final void updateBinaryStream​(int columnIndex,
                                                java.io.InputStream x)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBinaryStream

        protected final void updateBinaryStream​(int columnIndex,
                                                java.io.InputStream x,
                                                int length)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBinaryStream

        protected final void updateBinaryStream​(int columnIndex,
                                                java.io.InputStream x,
                                                long length)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBinaryStream

        protected final void updateBinaryStream​(java.lang.String columnLabel,
                                                java.io.InputStream x)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBinaryStream

        protected final void updateBinaryStream​(java.lang.String columnLabel,
                                                java.io.InputStream x,
                                                int length)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBinaryStream

        protected final void updateBinaryStream​(java.lang.String columnLabel,
                                                java.io.InputStream x,
                                                long length)
                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBlob

        protected final void updateBlob​(int columnIndex,
                                        java.sql.Blob x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBlob

        protected final void updateBlob​(int columnIndex,
                                        java.io.InputStream inputStream)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBlob

        protected final void updateBlob​(int columnIndex,
                                        java.io.InputStream inputStream,
                                        long length)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBlob

        protected final void updateBlob​(java.lang.String columnLabel,
                                        java.sql.Blob x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBlob

        protected final void updateBlob​(java.lang.String columnLabel,
                                        java.io.InputStream inputStream)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBlob

        protected final void updateBlob​(java.lang.String columnLabel,
                                        java.io.InputStream inputStream,
                                        long length)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBoolean

        protected final void updateBoolean​(int columnIndex,
                                           boolean x)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBoolean

        protected final void updateBoolean​(java.lang.String columnLabel,
                                           boolean x)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateByte

        protected final void updateByte​(int columnIndex,
                                        byte x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateByte

        protected final void updateByte​(java.lang.String columnLabel,
                                        byte x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBytes

        protected final void updateBytes​(int columnIndex,
                                         byte[] x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateBytes

        protected final void updateBytes​(java.lang.String columnLabel,
                                         byte[] x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateCharacterStream

        protected final void updateCharacterStream​(int columnIndex,
                                                   java.io.Reader x)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateCharacterStream

        protected final void updateCharacterStream​(int columnIndex,
                                                   java.io.Reader x,
                                                   int length)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateCharacterStream

        protected final void updateCharacterStream​(int columnIndex,
                                                   java.io.Reader x,
                                                   long length)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateCharacterStream

        protected final void updateCharacterStream​(java.lang.String columnLabel,
                                                   java.io.Reader reader)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateCharacterStream

        protected final void updateCharacterStream​(java.lang.String columnLabel,
                                                   java.io.Reader reader,
                                                   int length)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateCharacterStream

        protected final void updateCharacterStream​(java.lang.String columnLabel,
                                                   java.io.Reader reader,
                                                   long length)
                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateClob

        protected final void updateClob​(int columnIndex,
                                        java.sql.Clob x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateClob

        protected final void updateClob​(int columnIndex,
                                        java.io.Reader reader)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateClob

        protected final void updateClob​(int columnIndex,
                                        java.io.Reader reader,
                                        long length)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateClob

        protected final void updateClob​(java.lang.String columnLabel,
                                        java.sql.Clob x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateClob

        protected final void updateClob​(java.lang.String columnLabel,
                                        java.io.Reader reader)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateClob

        protected final void updateClob​(java.lang.String columnLabel,
                                        java.io.Reader reader,
                                        long length)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateDate

        protected final void updateDate​(int columnIndex,
                                        java.sql.Date x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateDate

        protected final void updateDate​(java.lang.String columnLabel,
                                        java.sql.Date x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateDouble

        protected final void updateDouble​(int columnIndex,
                                          double x)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateDouble

        protected final void updateDouble​(java.lang.String columnLabel,
                                          double x)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateFloat

        protected final void updateFloat​(int columnIndex,
                                         float x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateFloat

        protected final void updateFloat​(java.lang.String columnLabel,
                                         float x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateInt

        protected final void updateInt​(int columnIndex,
                                       int x)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateInt

        protected final void updateInt​(java.lang.String columnLabel,
                                       int x)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateLong

        protected final void updateLong​(int columnIndex,
                                        long x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateLong

        protected final void updateLong​(java.lang.String columnLabel,
                                        long x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNCharacterStream

        protected final void updateNCharacterStream​(int columnIndex,
                                                    java.io.Reader x)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNCharacterStream

        protected final void updateNCharacterStream​(int columnIndex,
                                                    java.io.Reader x,
                                                    long length)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNCharacterStream

        protected final void updateNCharacterStream​(java.lang.String columnLabel,
                                                    java.io.Reader reader)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNCharacterStream

        protected final void updateNCharacterStream​(java.lang.String columnLabel,
                                                    java.io.Reader reader,
                                                    long length)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNClob

        protected final void updateNClob​(int columnIndex,
                                         java.sql.NClob nClob)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNClob

        protected final void updateNClob​(int columnIndex,
                                         java.io.Reader reader)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNClob

        protected final void updateNClob​(int columnIndex,
                                         java.io.Reader reader,
                                         long length)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNClob

        protected final void updateNClob​(java.lang.String columnLabel,
                                         java.sql.NClob nClob)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNClob

        protected final void updateNClob​(java.lang.String columnLabel,
                                         java.io.Reader reader)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNClob

        protected final void updateNClob​(java.lang.String columnLabel,
                                         java.io.Reader reader,
                                         long length)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNString

        protected final void updateNString​(int columnIndex,
                                           java.lang.String nString)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNString

        protected final void updateNString​(java.lang.String columnLabel,
                                           java.lang.String nString)
                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNull

        protected final void updateNull​(int columnIndex)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateNull

        protected final void updateNull​(java.lang.String columnLabel)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateObject

        protected final void updateObject​(int columnIndex,
                                          java.lang.Object x)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateObject

        protected final void updateObject​(int columnIndex,
                                          java.lang.Object x,
                                          int scaleOrLength)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateObject

        protected final void updateObject​(java.lang.String columnLabel,
                                          java.lang.Object x)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateObject

        protected final void updateObject​(java.lang.String columnLabel,
                                          java.lang.Object x,
                                          int scaleOrLength)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateRef

        protected final void updateRef​(int columnIndex,
                                       java.sql.Ref x)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateRef

        protected final void updateRef​(java.lang.String columnLabel,
                                       java.sql.Ref x)
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateRow

        protected final void updateRow()
                                throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateRowId

        protected final void updateRowId​(int columnIndex,
                                         java.sql.RowId x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateRowId

        protected final void updateRowId​(java.lang.String columnLabel,
                                         java.sql.RowId x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateShort

        protected final void updateShort​(int columnIndex,
                                         short x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateShort

        protected final void updateShort​(java.lang.String columnLabel,
                                         short x)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateSQLXML

        protected final void updateSQLXML​(int columnIndex,
                                          java.sql.SQLXML xmlObject)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateSQLXML

        protected final void updateSQLXML​(java.lang.String columnLabel,
                                          java.sql.SQLXML xmlObject)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateString

        protected final void updateString​(int columnIndex,
                                          java.lang.String x)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateString

        protected final void updateString​(java.lang.String columnLabel,
                                          java.lang.String x)
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateTime

        protected final void updateTime​(int columnIndex,
                                        java.sql.Time x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateTime

        protected final void updateTime​(java.lang.String columnLabel,
                                        java.sql.Time x)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateTimestamp

        protected final void updateTimestamp​(int columnIndex,
                                             java.sql.Timestamp x)
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • updateTimestamp

        protected final void updateTimestamp​(java.lang.String columnLabel,
                                             java.sql.Timestamp x)
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • wasNull

        protected final boolean wasNull()
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException