Package SQLite.JDBC2z

Class JDBCResultSet

java.lang.Object
SQLite.JDBC2z.JDBCResultSet
All Implemented Interfaces:
AutoCloseable, ResultSet, Wrapper

public class JDBCResultSet
extends Object
implements ResultSet
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected TableResult tr
    Table returned by Database.get_table()
  • Constructor Summary

    Constructors
    Constructor Description
    JDBCResultSet​(TableResult tr, JDBCStatement s)  
  • Method Summary

    Modifier and Type Method Description
    boolean absolute​(int row)
    Moves the cursor to a specified row number in the ResultSet.
    void afterLast()
    Moves the cursor to the end of the ResultSet, after the last row.
    void beforeFirst()
    Moves the cursor to the start of the ResultSet, before the first row.
    void cancelRowUpdates()
    Cancels any updates made to the current row in the ResultSet.
    void clearWarnings()
    Clears all warnings related to this ResultSet.
    void close()
    Releases this ResultSet's database and JDBC resources.
    void deleteRow()
    Deletes the current row from the ResultSet and from the underlying database.
    void fillRowbuf()  
    int findColumn​(String columnName)
    Gets the index number for a column in the ResultSet from the provided column name.
    boolean first()
    Shifts the cursor position to the first row in the ResultSet.
    Array getArray​(int columnIndex)
    Gets the content of a column specified by column index in the current row of this ResultSet as a java.sql.Array.
    Array getArray​(String columnName)
    Gets the value of a column specified by column name as a java.sql.Array.
    InputStream getAsciiStream​(int columnIndex)
    Gets the value of a column specified by column index as an ASCII character stream.
    InputStream getAsciiStream​(String columnName)
    Gets the value of a column specified by column name as an ASCII character stream.
    BigDecimal getBigDecimal​(int columnIndex)
    Gets the value of a column specified by column index as a java.math.BigDecimal.
    BigDecimal getBigDecimal​(int columnIndex, int scale)
    Deprecated.
    BigDecimal getBigDecimal​(String columnName)
    Gets the value of a column specified by column name, as a java.math.BigDecimal.
    BigDecimal getBigDecimal​(String columnName, int scale)
    Deprecated.
    InputStream getBinaryStream​(int columnIndex)
    Gets the value of a column specified by column index as a binary stream.
    InputStream getBinaryStream​(String columnName)
    Gets the value of a column specified by column name as a binary stream.
    Blob getBlob​(int columnIndex)
    Gets the value of a column specified by column index as a java.sql.Blob object.
    Blob getBlob​(String columnName)
    Gets the value of a column specified by column name, as a java.sql.Blob object.
    boolean getBoolean​(int columnIndex)
    Gets the value of a column specified by column index as a boolean .
    boolean getBoolean​(String columnName)
    Gets the value of a column specified by column name, as a boolean .
    byte getByte​(int columnIndex)
    Gets the value of a column specified by column index as a byte.
    byte getByte​(String columnName)
    Gets the value of a column specified by column name as a byte.
    byte[] getBytes​(int columnIndex)
    Gets the value of a column specified by column index as a byte array.
    byte[] getBytes​(String columnName)
    Gets the value of a column specified by column name as a byte array.
    Reader getCharacterStream​(int columnIndex)
    Gets the value of a column specified by column index as a java.io.Reader object.
    Reader getCharacterStream​(String columnName)
    Gets the value of a column specified by column name as a java.io.Reader object.
    Clob getClob​(int columnIndex)
    Gets the value of a column specified by column index as a java.sql.Clob.
    Clob getClob​(String columnName)
    Gets the value of a column specified by column name as a java.sql.Clob.
    int getConcurrency()
    Gets the concurrency mode of this ResultSet.
    String getCursorName()
    Gets the name of the SQL cursor of this ResultSet.
    Date getDate​(int columnIndex)
    Gets the value of a column specified by column index as a java.sql.Date.
    Date getDate​(int columnIndex, Calendar cal)
    Gets the value of a column specified by column index as a java.sql.Date.
    Date getDate​(String columnName)
    Gets the value of a column specified by column name as a java.sql.Date.
    Date getDate​(String columnName, Calendar cal)
    Gets the value of a column specified by column name, as a java.sql.Date object.
    double getDouble​(int columnIndex)
    Gets the value of a column specified by column index as a double value.
    double getDouble​(String columnName)
    Gets the value of a column specified by column name as a double value.
    int getFetchDirection()
    Gets the direction in which rows are fetched for this ResultSet object.
    int getFetchSize()
    Gets the fetch size (in number of rows) for this ResultSet.
    float getFloat​(int columnIndex)
    Gets the value of a column specified by column index as a float value.
    float getFloat​(String columnName)
    Gets the value of a column specified by column name as a float value.
    int getHoldability()
    Returns the holdability of this result set: ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT.
    int getInt​(int columnIndex)
    Gets the value of a column specified by column index as an int value.
    int getInt​(String columnName)
    Gets the value of a column specified by column name, as an int value.
    long getLong​(int columnIndex)
    Gets the value of a column specified by column index as a long value.
    long getLong​(String columnName)
    Gets the value of a column specified by column name, as a long value.
    ResultSetMetaData getMetaData()
    Gets the metadata for this ResultSet.
    Reader getNCharacterStream​(int colIndex)
    Returns a Reader corresponding to the value at the 1-based columnIndex.
    Reader getNCharacterStream​(String colName)
    Returns a Reader corresponding to the value in the named column.
    NClob getNClob​(int colIndex)
    Returns an NClob corresponding to the value at the 1-based columnIndex.
    NClob getNClob​(String colName)
    Returns an NClob corresponding to the value in the named column.
    String getNString​(int colIndex)
    Returns a String corresponding to the value at the 1-based columnIndex.
    String getNString​(String colName)
    Returns a String corresponding to the value in the named column.
    Object getObject​(int columnIndex)
    Gets the value of a specified column as a Java Object.
    Object getObject​(int columnIndex, Map map)
    Gets the value of a column specified by column index as a Java Object.
    Object getObject​(String columnName)
    Gets the value of a specified column as a Java Object.
    Object getObject​(String columnName, Map map)
    Gets the value of a column specified by column name as a Java Object.
    Ref getRef​(int columnIndex)
    Gets the value of a column specified by column index as a Java java.sql.Ref.
    Ref getRef​(String columnName)
    Gets the value of a column specified by column name as a Java java.sql.Ref.
    int getRow()
    Gets the number of the current row in the ResultSet.
    RowId getRowId​(int colIndex)
    Returns a RowId corresponding to the SQL ROWID at the 1-based columnIndex.
    RowId getRowId​(String colName)
    Returns a RowId corresponding to the SQL ROWID at the named column.
    short getShort​(int columnIndex)
    Gets the value of a column specified by column index as a short value.
    short getShort​(String columnName)
    Gets the value of a column specified by column name, as a short value.
    SQLXML getSQLXML​(int colIndex)
    Returns an SQLXML corresponding to the value at the 1-based columnIndex.
    SQLXML getSQLXML​(String colName)
    Returns an SQLXML corresponding to the value in the named column.
    Statement getStatement()
    Gets the statement that produced this ResultSet.
    String getString​(int columnIndex)
    Gets the value of a column specified by column index as a String.
    String getString​(String columnName)
    Gets the value of a column specified by column name, as a String.
    Time getTime​(int columnIndex)
    Gets the value of a column specified by column index as a java.sql.Time value.
    Time getTime​(int columnIndex, Calendar cal)
    Gets the value of a column specified by column index as a java.sql.Time value.
    Time getTime​(String columnName)
    Gets the value of a column specified by column name, as a java.sql.Time value.
    Time getTime​(String columnName, Calendar cal)
    Gets the value of a column specified by column index, as a java.sql.Time value.
    Timestamp getTimestamp​(int columnIndex)
    Gets the value of a column specified by column index as a java.sql.Timestamp value.
    Timestamp getTimestamp​(int columnIndex, Calendar cal)
    Gets the value of a column specified by column index, as a java.sql.Timestamp value.
    Timestamp getTimestamp​(String columnName)
    Gets the value of a column specified by column name, as a java.sql.Timestamp value.
    Timestamp getTimestamp​(String columnName, Calendar cal)
    Gets the value of a column specified by column name, as a java.sql.Timestamp value.
    int getType()
    Gets the type of the ResultSet.
    InputStream getUnicodeStream​(int columnIndex)
    Deprecated.
    InputStream getUnicodeStream​(String columnName)
    Deprecated.
    URL getURL​(int colIndex)
    Gets the value of a column specified by column index as a java.net.URL.
    URL getURL​(String colName)
    Gets the value of a column specified by column name as a java.net.URL object.
    SQLWarning getWarnings()
    Gets the first warning generated by calls on this ResultSet.
    void insertRow()
    Insert the insert row into the ResultSet and into the underlying database.
    boolean isAfterLast()
    Gets if the cursor is after the last row of the ResultSet.
    boolean isBeforeFirst()
    Gets if the cursor is before the first row of the ResultSet.
    boolean isClosed()
    Returns true if this result set has been closed, false otherwise.
    boolean isFirst()
    Gets if the cursor is on the first row of the ResultSet.
    boolean isLast()
    Gets if the cursor is on the last row of the ResultSet
    boolean isUpdatable()  
    boolean isWrapperFor​(Class iface)
    If the caller is a wrapper of the class or implements the given interface, the methods return false and vice versa.
    boolean last()
    Shifts the cursor position to the last row of the ResultSet.
    void moveToCurrentRow()
    Moves the cursor to the remembered position, namely the row that was the current row before a call to moveToInsertRow.
    void moveToInsertRow()
    Moves the cursor position to the Insert Row.
    boolean next()
    Shifts the cursor position down one row in this ResultSet object.
    boolean previous()
    Relocates the cursor position to the preceding row in this ResultSet.
    void refreshRow()
    Refreshes the current row with its most up to date value in the database.
    boolean relative​(int row)
    Moves the cursor position up or down by a specified number of rows.
    boolean rowDeleted()
    Indicates whether a row has been deleted.
    boolean rowInserted()
    Indicates whether the current row has had an insertion operation.
    boolean rowUpdated()
    Indicates whether the current row has been updated.
    void setFetchDirection​(int dir)
    Indicates which direction (forward/reverse) will be used to process the rows of this ResultSet object.
    void setFetchSize​(int fsize)
    Indicates the number of rows to fetch from the database when extra rows are required for this ResultSet.
    <T> T unwrap​(Class<T> iface)
    Returns an object that implements the given interface.
    void updateArray​(int colIndex, Array x)
    Updates a column specified by a column index with a java.sql.Array value.
    void updateArray​(String colName, Array x)
    Updates a column specified by a column name with a java.sql.Array value.
    void updateAsciiStream​(int colIndex, InputStream x)
    Updates the value at the 1-based columnIndex.
    void updateAsciiStream​(int colIndex, InputStream in, int s)
    Updates a column specified by a column index with an ASCII stream value.
    void updateAsciiStream​(int colIndex, InputStream x, long len)
    Updates the value at the 1-based columnIndex.
    void updateAsciiStream​(String colName, InputStream x)
    Updates the value in the named column.
    void updateAsciiStream​(String colName, InputStream in, int s)
    Updates a column specified by a column name with an Ascii stream value.
    void updateAsciiStream​(String colName, InputStream x, long len)
    Updates the value in the named column.
    void updateBigDecimal​(int colIndex, BigDecimal f)
    Updates a column specified by a column index with a java.sql.BigDecimal value.
    void updateBigDecimal​(String colName, BigDecimal f)
    Updates a column specified by a column name with a java.sql.BigDecimal value.
    void updateBinaryStream​(int colIndex, InputStream x)
    Updates the value at the 1-based columnIndex.
    void updateBinaryStream​(int colIndex, InputStream in, int s)
    Updates a column specified by a column index with a binary stream value.
    void updateBinaryStream​(int colIndex, InputStream x, long len)
    Updates the value at the 1-based columnIndex.
    void updateBinaryStream​(String colName, InputStream x)
    Updates the value in the named column.
    void updateBinaryStream​(String colName, InputStream in, int s)
    Updates a column specified by a column name with a binary stream value.
    void updateBinaryStream​(String colName, InputStream x, long len)
    Updates the value in the named column.
    void updateBlob​(int colIndex, InputStream x)
    Updates the value at the 1-based columnIndex.
    void updateBlob​(int colIndex, InputStream x, long len)
    Updates the value at the 1-based columnIndex.
    void updateBlob​(int colIndex, Blob x)
    Updates a column specified by a column index with a java.sql.Blob value.
    void updateBlob​(String colName, InputStream x)
    Updates the value in the named column.
    void updateBlob​(String colName, InputStream x, long len)
    Updates the value in the named column.
    void updateBlob​(String colName, Blob x)
    Updates a column specified by a column name with a java.sql.Blob value.
    void updateBoolean​(int colIndex, boolean b)
    Updates a column specified by a column index with a boolean value.
    void updateBoolean​(String colName, boolean b)
    Updates a column specified by a column name with a boolean value.
    void updateByte​(int colIndex, byte b)
    Updates a column specified by a column index with a byte value.
    void updateByte​(String colName, byte b)
    Updates a column specified by a column name with a byte value.
    void updateBytes​(int colIndex, byte[] s)
    Updates a column specified by a column index with a byte array value.
    void updateBytes​(String colName, byte[] s)
    Updates a column specified by a column name with a byte array value.
    void updateCharacterStream​(int colIndex, Reader x)
    Updates the value at the 1-based columnIndex.
    void updateCharacterStream​(int colIndex, Reader in, int s)
    Updates a column specified by a column index with a character stream value.
    void updateCharacterStream​(int colIndex, Reader x, long len)
    Updates the value at the 1-based columnIndex.
    void updateCharacterStream​(String colName, Reader x)
    Updates the value in the named column.
    void updateCharacterStream​(String colName, Reader in, int s)
    Updates a column specified by a column name with a character stream value.
    void updateCharacterStream​(String colName, Reader x, long len)
    Updates the value in the named column.
    void updateClob​(int colIndex, Reader x)
    Updates the value at the 1-based columnIndex.
    void updateClob​(int colIndex, Reader x, long len)
    Updates the value at the 1-based columnIndex.
    void updateClob​(int colIndex, Clob x)
    Updates a column specified by a column index with a java.sql.Clob value.
    void updateClob​(String colName, Reader x)
    Updates the value in the named column.
    void updateClob​(String colName, Reader x, long len)
    Updates the value in the named column.
    void updateClob​(String colName, Clob x)
    Updates a column specified by a column name with a java.sql.Clob value.
    void updateDate​(int colIndex, Date d)
    Updates a column specified by a column index with a java.sql.Date value.
    void updateDate​(String colName, Date d)
    Updates a column specified by a column name with a java.sql.Date value.
    void updateDouble​(int colIndex, double f)
    Updates a column specified by a column index with a double value.
    void updateDouble​(String colName, double f)
    Updates a column specified by a column name with a double value.
    void updateFloat​(int colIndex, float f)
    Updates a column specified by a column index with a float value.
    void updateFloat​(String colName, float f)
    Updates a column specified by a column name with a float value.
    void updateInt​(int colIndex, int b)
    Updates a column specified by a column index with an int value.
    void updateInt​(String colName, int b)
    Updates a column specified by a column name with an int value.
    void updateLong​(int colIndex, long b)
    Updates a column specified by a column index with a long value.
    void updateLong​(String colName, long b)
    Updates a column specified by a column name with a long value.
    void updateNCharacterStream​(int colIndex, Reader x)
    Updates the value at the 1-based columnIndex.
    void updateNCharacterStream​(int colIndex, Reader x, long len)
    Updates the value at the 1-based columnIndex.
    void updateNCharacterStream​(String colName, Reader x)
    Updates the value in the named column.
    void updateNCharacterStream​(String colName, Reader x, long len)
    Updates the value in the named column.
    void updateNClob​(int colIndex, Reader x)
    Updates the value at the 1-based columnIndex.
    void updateNClob​(int colIndex, Reader x, long len)
    Updates the value at the 1-based columnIndex.
    void updateNClob​(int colIndex, NClob nclob)
    Updates the value at the 1-based columnIndex.
    void updateNClob​(String colName, Reader x)
    Updates the value in the named column.
    void updateNClob​(String colName, Reader x, long len)
    Updates the value in the named column.
    void updateNClob​(String colName, NClob nclob)
    Updates the value in the named column.
    void updateNString​(int colIndex, String nString)
    Updates the value at the 1-based columnIndex.
    void updateNString​(String colName, String nString)
    Updates the value in the named column.
    void updateNull​(int colIndex)
    Updates a column specified by a column index with a null value.
    void updateNull​(String colName)
    Updates a column specified by a column name with a null value.
    void updateObject​(int colIndex, Object obj)
    Updates a column specified by a column index with an Object value.
    void updateObject​(int colIndex, Object obj, int s)
    Updates a column specified by a column index with an Object value.
    void updateObject​(String colName, Object obj)
    Updates a column specified by a column name with an Object value.
    void updateObject​(String colName, Object obj, int s)
    Updates a column specified by a column name with an Object value.
    void updateRef​(int colIndex, Ref x)
    Updates a column specified by a column index with a java.sql.Ref value.
    void updateRef​(String colName, Ref x)
    Updates a column specified by a column name with a java.sql.Ref value.
    void updateRow()
    Updates the database with the new contents of the current row of this ResultSet object.
    void updateRowId​(int colIndex, RowId x)
    Updates the value at the 1-based columnIndex.
    void updateRowId​(String colName, RowId x)
    Updates the value in the named column.
    void updateShort​(int colIndex, short b)
    Updates a column specified by a column index with a short value.
    void updateShort​(String colName, short b)
    Updates a column specified by a column name with a short value.
    void updateSQLXML​(int colIndex, SQLXML xml)
    Updates the value at the 1-based columnIndex.
    void updateSQLXML​(String colName, SQLXML xml)
    Updates the value in the named column.
    void updateString​(int colIndex, String s)
    Updates a column specified by a column index with a String value.
    void updateString​(String colName, String s)
    Updates a column specified by a column name with a String value.
    void updateTime​(int colIndex, Time t)
    Updates a column specified by a column index with a Time value.
    void updateTime​(String colName, Time t)
    Updates a column specified by a column name with a Time value.
    void updateTimestamp​(int colIndex, Timestamp t)
    Updates a column specified by a column index with a Timestamp value.
    void updateTimestamp​(String colName, Timestamp t)
    Updates a column specified by column name with a Timestamp value.
    boolean wasNull()
    Determines whether the last column read from this ResultSet contained SQL NULL.

    Methods inherited from class java.lang.Object

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

    • tr

      protected TableResult tr
      Table returned by Database.get_table()
  • Constructor Details

  • Method Details

    • isUpdatable

      public boolean isUpdatable() throws SQLException
      Throws:
      SQLException
    • fillRowbuf

      public void fillRowbuf() throws SQLException
      Throws:
      SQLException
    • next

      public boolean next() throws SQLException
      Description copied from interface: ResultSet
      Shifts the cursor position down one row in this ResultSet object.

      Any input streams associated with the current row are closed and any warnings are cleared.

      Specified by:
      next in interface ResultSet
      Returns:
      true if the updated cursor position is pointing to a valid row, false otherwise (i.e. when the cursor is after the last row in the ResultSet).
      Throws:
      SQLException - if a database error happens.
    • findColumn

      public int findColumn​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the index number for a column in the ResultSet from the provided column name.
      Specified by:
      findColumn in interface ResultSet
      Parameters:
      columnName - the column name.
      Returns:
      the column's index in the ResultSet identified by column name.
      Throws:
      SQLException - if a database error happens.
    • getRow

      public int getRow() throws SQLException
      Description copied from interface: ResultSet
      Gets the number of the current row in the ResultSet. Row numbers start at 1 for the first row.
      Specified by:
      getRow in interface ResultSet
      Returns:
      the index number of the current row. 0 is returned if there is no current row.
      Throws:
      SQLException - if a database error happens.
    • previous

      public boolean previous() throws SQLException
      Description copied from interface: ResultSet
      Relocates the cursor position to the preceding row in this ResultSet.
      Specified by:
      previous in interface ResultSet
      Returns:
      true if the new position is in a legitimate row, false if the cursor is now before the first row.
      Throws:
      SQLException - if a database error happens.
    • absolute

      public boolean absolute​(int row) throws SQLException
      Description copied from interface: ResultSet
      Moves the cursor to a specified row number in the ResultSet.
      Specified by:
      absolute in interface ResultSet
      Parameters:
      row - the index of the row starting at index 1. Index -1 returns the last row.
      Returns:
      true if the new cursor position is on the ResultSet, false otherwise.
      Throws:
      SQLException - if a database error happens.
    • relative

      public boolean relative​(int row) throws SQLException
      Description copied from interface: ResultSet
      Moves the cursor position up or down by a specified number of rows. If the new position is beyond the start row (or end row), the cursor position is set before the first row (or, respectively, after the last row).
      Specified by:
      relative in interface ResultSet
      Parameters:
      row - a number of rows to move the cursor - may be positive or negative
      Returns:
      true if the new cursor position is on a row, false otherwise
      Throws:
      SQLException - if a database error happens.
    • setFetchDirection

      public void setFetchDirection​(int dir) throws SQLException
      Description copied from interface: ResultSet
      Indicates which direction (forward/reverse) will be used to process the rows of this ResultSet object. This is treated as a hint by the JDBC driver.
      Specified by:
      setFetchDirection in interface ResultSet
      Parameters:
      dir - can be ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, or ResultSet.FETCH_UNKNOWN
      Throws:
      SQLException - if there is a database error.
    • getFetchDirection

      public int getFetchDirection() throws SQLException
      Description copied from interface: ResultSet
      Gets the direction in which rows are fetched for this ResultSet object.
      Specified by:
      getFetchDirection in interface ResultSet
      Returns:
      the fetch direction. Will be one of:
      • ResultSet.FETCH_FORWARD
      • ResultSet.FETCH_REVERSE
      • ResultSet.FETCH_UNKNOWN
      Throws:
      SQLException - if a database error happens.
    • setFetchSize

      public void setFetchSize​(int fsize) throws SQLException
      Description copied from interface: ResultSet
      Indicates the number of rows to fetch from the database when extra rows are required for this ResultSet. This used as a hint to the JDBC driver.
      Specified by:
      setFetchSize in interface ResultSet
      Parameters:
      fsize - the number of rows to fetch. 0 implies that the JDBC driver can make its own decision about the fetch size. The number should not be greater than the maximum number of rows established by the statement that generated the ResultSet.
      Throws:
      SQLException - if a database error happens.
    • getFetchSize

      public int getFetchSize() throws SQLException
      Description copied from interface: ResultSet
      Gets the fetch size (in number of rows) for this ResultSet.
      Specified by:
      getFetchSize in interface ResultSet
      Returns:
      the fetch size as an int
      Throws:
      SQLException - if a database error happens.
    • getString

      public String getString​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a String.
      Specified by:
      getString in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      the String representing the value of the column, null if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getString

      public String getString​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a String.
      Specified by:
      getString in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      the String representing the value of the column, null if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getInt

      public int getInt​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as an int value.
      Specified by:
      getInt in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      an int equal to the column value. 0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getInt

      public int getInt​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as an int value.
      Specified by:
      getInt in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      an int equal to the column value. 0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getBoolean

      public boolean getBoolean​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a boolean .
      Specified by:
      getBoolean in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a boolean value from the column. If the column is SQL NULL, false is returned.
      Throws:
      SQLException - if a database error happens.
    • getBoolean

      public boolean getBoolean​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a boolean .
      Specified by:
      getBoolean in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a boolean value from the column. If the column is SQL NULL, false is returned.
      Throws:
      SQLException - if a database error happens.
    • getMetaData

      public ResultSetMetaData getMetaData() throws SQLException
      Description copied from interface: ResultSet
      Gets the metadata for this ResultSet. This defines the number, types and properties of the columns in the ResultSet.
      Specified by:
      getMetaData in interface ResultSet
      Returns:
      a ResultSetMetaData object with information about this ResultSet.
      Throws:
      SQLException - if a database error happens.
    • getShort

      public short getShort​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a short value.
      Specified by:
      getShort in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a short value equal to the value of the column. 0 if the value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getShort

      public short getShort​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a short value.
      Specified by:
      getShort in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a short value equal to the value of the column. 0 if the value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTime

      public Time getTime​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.sql.Time value.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a Time representing the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTime

      public Time getTime​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a java.sql.Time value.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTime

      public Time getTime​(int columnIndex, Calendar cal) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.sql.Time value. The supplied Calendar is used to map the SQL Time value to a Java Time value.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      cal - a Calendar to use in creating the Java Time value.
      Returns:
      a Time representing the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTime

      public Time getTime​(String columnName, Calendar cal) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index, as a java.sql.Time value. The supplied Calendar is used to map the SQL Time value to a Java Time value.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      cal - a Calendar to use in creating the Java time value.
      Returns:
      a Time representing the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTimestamp

      public Timestamp getTimestamp​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.sql.Timestamp value.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a timestamp representing the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTimestamp

      public Timestamp getTimestamp​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a java.sql.Timestamp value.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a timestamp representing the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTimestamp

      public Timestamp getTimestamp​(int columnIndex, Calendar cal) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index, as a java.sql.Timestamp value. The supplied Calendar is used when mapping the SQL Timestamp value to a Java Timestamp value.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      cal - Calendar to use in creating the Java timestamp value.
      Returns:
      a timestamp representing the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getTimestamp

      public Timestamp getTimestamp​(String columnName, Calendar cal) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a java.sql.Timestamp value. The supplied Calendar is used when mapping the SQL Timestamp value to a Java Timestamp value.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      cal - Calendar to use in creating the Java Timestamp value.
      Returns:
      a timestamp representing the column value, null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getDate

      public Date getDate​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.sql.Date.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a java.sql.Date matching the column value. null if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getDate

      public Date getDate​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a java.sql.Date.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a java.sql.Date matching the column value. null if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getDate

      public Date getDate​(int columnIndex, Calendar cal) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.sql.Date. This method uses a supplied calendar to compute the Date.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      cal - a java.util.Calendar to use in constructing the Date.
      Returns:
      a java.sql.Date matching the column value. null if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getDate

      public Date getDate​(String columnName, Calendar cal) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a java.sql.Date object.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      cal - java.util.Calendar to use in constructing the Date.
      Returns:
      a java.sql.Date matching the column value. null if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getDouble

      public double getDouble​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a double value.
      Specified by:
      getDouble in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a double equal to the column value. 0.0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getDouble

      public double getDouble​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a double value.
      Specified by:
      getDouble in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a double equal to the column value. 0.0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getFloat

      public float getFloat​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a float value.
      Specified by:
      getFloat in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a float equal to the column value. 0.0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getFloat

      public float getFloat​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a float value.
      Specified by:
      getFloat in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a float equal to the column value. 0.0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getLong

      public long getLong​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a long value.
      Specified by:
      getLong in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a long equal to the column value. 0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getLong

      public long getLong​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a long value.
      Specified by:
      getLong in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a long equal to the column value. 0 if the column is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getUnicodeStream

      @Deprecated public InputStream getUnicodeStream​(int columnIndex) throws SQLException
      Deprecated.
      Description copied from interface: ResultSet
      Gets the value of the column as an InputStream of unicode characters.
      Specified by:
      getUnicodeStream in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      an InputStream holding the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getUnicodeStream

      @Deprecated public InputStream getUnicodeStream​(String columnName) throws SQLException
      Deprecated.
      Description copied from interface: ResultSet
      Gets the value of the column as an InputStream of Unicode characters.
      Specified by:
      getUnicodeStream in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      an InputStream holding the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getAsciiStream

      public InputStream getAsciiStream​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as an ASCII character stream.
      Specified by:
      getAsciiStream in interface ResultSet
      Parameters:
      columnName - the name of the column to read
      Returns:
      an InputStream with the data from the column.
      Throws:
      SQLException - if a database error happens.
    • getAsciiStream

      public InputStream getAsciiStream​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as an ASCII character stream.
      Specified by:
      getAsciiStream in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      an InputStream with the data from the column.
      Throws:
      SQLException - if a database error happens.
    • getBigDecimal

      public BigDecimal getBigDecimal​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a java.math.BigDecimal.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a BigDecimal with value of the column.
      Throws:
      SQLException - if a database error happens.
    • getBigDecimal

      @Deprecated public BigDecimal getBigDecimal​(String columnName, int scale) throws SQLException
      Deprecated.
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a java.math.BigDecimal.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      scale - the number of digits after the decimal point
      Returns:
      a BigDecimal with value of the column.
      Throws:
      SQLException - if a database error happens.
    • getBigDecimal

      public BigDecimal getBigDecimal​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.math.BigDecimal.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a BigDecimal with the value of the column.
      Throws:
      SQLException - if a database error happens.
    • getBigDecimal

      @Deprecated public BigDecimal getBigDecimal​(int columnIndex, int scale) throws SQLException
      Deprecated.
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.math.BigDecimal.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      scale - the number of digits after the decimal point
      Returns:
      a BigDecimal with the value of the column.
      Throws:
      SQLException - if a database error happens.
    • getBinaryStream

      public InputStream getBinaryStream​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a binary stream.

      This method can be used to read LONGVARBINARY values. All of the data in the InputStream should be read before getting data from any other column. A further call to a getter method will implicitly close the InputStream.

      Specified by:
      getBinaryStream in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      an InputStream with the data from the column. If the column value is SQL NULL, null is returned.
      Throws:
      SQLException - if a database error happens.
    • getBinaryStream

      public InputStream getBinaryStream​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a binary stream.

      This method can be used to read LONGVARBINARY values. All of the data in the InputStream should be read before getting data from any other column. A further call to a getter method will implicitly close the InputStream.

      Specified by:
      getBinaryStream in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      an InputStream with the data from the column if the column value is SQL NULL, null is returned.
      Throws:
      SQLException - if a database error happens.
    • getByte

      public byte getByte​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a byte.
      Specified by:
      getByte in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a byte equal to the value of the column. 0 if the value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getByte

      public byte getByte​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a byte.
      Specified by:
      getByte in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a byte equal to the value of the column. 0 if the value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getBytes

      public byte[] getBytes​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a byte array.
      Specified by:
      getBytes in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a byte array containing the value of the column. null if the column contains SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getBytes

      public byte[] getBytes​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a byte array.
      Specified by:
      getBytes in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a byte array containing the value of the column. null if the column contains SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getCursorName

      public String getCursorName() throws SQLException
      Description copied from interface: ResultSet
      Gets the name of the SQL cursor of this ResultSet.
      Specified by:
      getCursorName in interface ResultSet
      Returns:
      the SQL cursor name.
      Throws:
      SQLException - if a database error happens.
    • getObject

      public Object getObject​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a specified column as a Java Object. The type of the returned object will be the default according to the column's SQL type, following the JDBC specification for built-in types.

      For SQL User Defined Types, if a column value is Structured or Distinct, this method behaves the same as a call to: getObject(columnIndex,this.getStatement().getConnection().getTypeMap())

      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      an Object containing the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getObject

      public Object getObject​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a specified column as a Java Object. The type of the returned object will be the default according to the column's SQL type, following the JDBC specification for built-in types.

      For SQL User Defined Types, if a column value is structured or distinct, this method behaves the same as a call to: getObject(columnIndex,this.getStatement().getConnection().getTypeMap())

      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      an Object containing the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getObject

      public Object getObject​(int columnIndex, Map map) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a Java Object.

      The type of the Java object will be determined by the supplied Map to perform the mapping of SQL Struct or Distinct types into Java objects.

      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      map - a java.util.Map containing a mapping from SQL Type names to Java classes.
      Returns:
      an Object containing the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getObject

      public Object getObject​(String columnName, Map map) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a Java Object.

      The type of the Java object will be determined by the supplied Map to perform the mapping of SQL Struct or Distinct types into Java objects.

      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      map - a java.util.Map containing a mapping from SQL Type names to Java classes.
      Returns:
      an Object containing the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getRef

      public Ref getRef​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a Java java.sql.Ref.
      Specified by:
      getRef in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a Ref representing the value of the SQL REF in the column
      Throws:
      SQLException - if a database error happens.
    • getRef

      public Ref getRef​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a Java java.sql.Ref.
      Specified by:
      getRef in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a Ref representing the value of the SQL REF in the column
      Throws:
      SQLException - if a database error happens.
    • getBlob

      public Blob getBlob​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.sql.Blob object.
      Specified by:
      getBlob in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a java.sql.Blob with the value of the column.
      Throws:
      SQLException - if a database error happens.
    • getBlob

      public Blob getBlob​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name, as a java.sql.Blob object.
      Specified by:
      getBlob in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a java.sql.Blob with the value of the column.
      Throws:
      SQLException - if a database error happens.
    • getClob

      public Clob getClob​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.sql.Clob.
      Specified by:
      getClob in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a Clob object representing the value in the column. null if the value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getClob

      public Clob getClob​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a java.sql.Clob.
      Specified by:
      getClob in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a Clob object representing the value in the column. null if the value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getArray

      public Array getArray​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the content of a column specified by column index in the current row of this ResultSet as a java.sql.Array.
      Specified by:
      getArray in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read
      Returns:
      a java.sql.Array with the data from the column.
      Throws:
      SQLException - if a database error happens.
    • getArray

      public Array getArray​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a java.sql.Array.
      Specified by:
      getArray in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a java.sql.Array with the data from the specified column.
      Throws:
      SQLException - if a database error happens.
    • getCharacterStream

      public Reader getCharacterStream​(int columnIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.io.Reader object.
      Specified by:
      getCharacterStream in interface ResultSet
      Parameters:
      columnIndex - the index of the column to read.
      Returns:
      a Reader holding the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
      See Also:
      Reader
    • getCharacterStream

      public Reader getCharacterStream​(String columnName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a java.io.Reader object.
      Specified by:
      getCharacterStream in interface ResultSet
      Parameters:
      columnName - the name of the column to read.
      Returns:
      a Reader holding the value of the column. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getWarnings

      public SQLWarning getWarnings() throws SQLException
      Description copied from interface: ResultSet
      Gets the first warning generated by calls on this ResultSet. Subsequent warnings on this ResultSet are chained to the first one.

      The warnings are cleared when a new Row is read from the ResultSet. The warnings returned by this method are only the warnings generated by ResultSet method calls - warnings generated by Statement methods are held by the Statement.

      An SQLException is generated if this method is called on a closed ResultSet.

      Specified by:
      getWarnings in interface ResultSet
      Returns:
      an SQLWarning which is the first warning for this ResultSet. null if there are no warnings.
      Throws:
      SQLException - if a database error happens.
    • wasNull

      public boolean wasNull() throws SQLException
      Description copied from interface: ResultSet
      Determines whether the last column read from this ResultSet contained SQL NULL.
      Specified by:
      wasNull in interface ResultSet
      Returns:
      {@code {@code true} if the last column contained SQL {@code NULL}, {@code false} otherwise @throws SQLException if a database error happens.
      Throws:
      SQLException
    • clearWarnings

      public void clearWarnings() throws SQLException
      Description copied from interface: ResultSet
      Clears all warnings related to this ResultSet.
      Specified by:
      clearWarnings in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • isFirst

      public boolean isFirst() throws SQLException
      Description copied from interface: ResultSet
      Gets if the cursor is on the first row of the ResultSet.
      Specified by:
      isFirst in interface ResultSet
      Returns:
      true if the cursor is on the first row in the ResultSet, false if the cursor is at any other position in the ResultSet.
      Throws:
      SQLException - if a database error happens.
    • isBeforeFirst

      public boolean isBeforeFirst() throws SQLException
      Description copied from interface: ResultSet
      Gets if the cursor is before the first row of the ResultSet.
      Specified by:
      isBeforeFirst in interface ResultSet
      Returns:
      true if the cursor is before the first row in the ResultSet, false if the cursor is at any other position in the ResultSet.
      Throws:
      SQLException - if a database error happens.
    • beforeFirst

      public void beforeFirst() throws SQLException
      Description copied from interface: ResultSet
      Moves the cursor to the start of the ResultSet, before the first row.
      Specified by:
      beforeFirst in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • first

      public boolean first() throws SQLException
      Description copied from interface: ResultSet
      Shifts the cursor position to the first row in the ResultSet.
      Specified by:
      first in interface ResultSet
      Returns:
      true if the position is in a legitimate row, false if the ResultSet contains no rows.
      Throws:
      SQLException - if a database error happens.
    • isAfterLast

      public boolean isAfterLast() throws SQLException
      Description copied from interface: ResultSet
      Gets if the cursor is after the last row of the ResultSet.
      Specified by:
      isAfterLast in interface ResultSet
      Returns:
      true if the cursor is after the last row in the ResultSet, false if the cursor is at any other position in the ResultSet.
      Throws:
      SQLException - if a database error happens.
    • afterLast

      public void afterLast() throws SQLException
      Description copied from interface: ResultSet
      Moves the cursor to the end of the ResultSet, after the last row.
      Specified by:
      afterLast in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • isLast

      public boolean isLast() throws SQLException
      Description copied from interface: ResultSet
      Gets if the cursor is on the last row of the ResultSet
      Specified by:
      isLast in interface ResultSet
      Returns:
      true if the cursor is on the last row in the ResultSet, false if the cursor is at any other position in the ResultSet.
      Throws:
      SQLException - if a database error happens.
    • last

      public boolean last() throws SQLException
      Description copied from interface: ResultSet
      Shifts the cursor position to the last row of the ResultSet.
      Specified by:
      last in interface ResultSet
      Returns:
      true if the new position is in a legitimate row, false if the ResultSet contains no rows.
      Throws:
      SQLException - if there is a database error.
    • getType

      public int getType() throws SQLException
      Description copied from interface: ResultSet
      Gets the type of the ResultSet.
      Specified by:
      getType in interface ResultSet
      Returns:
      The ResultSet type, one of:
      • ResultSet.TYPE_FORWARD_ONLY
      • ResultSet.TYPE_SCROLL_INSENSITIVE
      • ResultSet.TYPE_SCROLL_SENSITIVE
      Throws:
      SQLException - if there is a database error.
    • getConcurrency

      public int getConcurrency() throws SQLException
      Description copied from interface: ResultSet
      Gets the concurrency mode of this ResultSet.
      Specified by:
      getConcurrency in interface ResultSet
      Returns:
      the concurrency mode - one of: ResultSet.CONCUR_READ_ONLY , ResultSet.CONCUR_UPDATABLE.
      Throws:
      SQLException - if a database error happens.
    • rowUpdated

      public boolean rowUpdated() throws SQLException
      Description copied from interface: ResultSet
      Indicates whether the current row has been updated. This method depends on whether the JDBC driver and database can detect updates.
      Specified by:
      rowUpdated in interface ResultSet
      Returns:
      true if the current row has been updated and if updates can be detected, false otherwise.
      Throws:
      SQLException - if a database error happens.
    • rowInserted

      public boolean rowInserted() throws SQLException
      Description copied from interface: ResultSet
      Indicates whether the current row has had an insertion operation. This method depends on whether the JDBC driver and database can detect insertions.
      Specified by:
      rowInserted in interface ResultSet
      Returns:
      true if a row has been inserted and if insertions are detected, false otherwise.
      Throws:
      SQLException - if a database error happens.
    • rowDeleted

      public boolean rowDeleted() throws SQLException
      Description copied from interface: ResultSet
      Indicates whether a row has been deleted. This method depends on whether the JDBC driver and database can detect deletions.
      Specified by:
      rowDeleted in interface ResultSet
      Returns:
      true if a row has been deleted and if deletions are detected, false otherwise.
      Throws:
      SQLException - if a database error happens.
    • insertRow

      public void insertRow() throws SQLException
      Description copied from interface: ResultSet
      Insert the insert row into the ResultSet and into the underlying database. The cursor must be set to the Insert Row before this method is invoked.
      Specified by:
      insertRow in interface ResultSet
      Throws:
      SQLException - if a database error happens. Particular cases include the cursor not being on the Insert Row or if any columns in the row do not have a value where the column is declared as not-nullable.
    • updateRow

      public void updateRow() throws SQLException
      Description copied from interface: ResultSet
      Updates the database with the new contents of the current row of this ResultSet object.
      Specified by:
      updateRow in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • deleteRow

      public void deleteRow() throws SQLException
      Description copied from interface: ResultSet
      Deletes the current row from the ResultSet and from the underlying database.
      Specified by:
      deleteRow in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • refreshRow

      public void refreshRow() throws SQLException
      Description copied from interface: ResultSet
      Refreshes the current row with its most up to date value in the database. Must not be called when the cursor is on the Insert Row.

      If any columns in the current row have been updated but the updateRow has not been called, then the updates are lost when this method is called.

      Specified by:
      refreshRow in interface ResultSet
      Throws:
      SQLException - if a database error happens., including if the current row is the Insert row.
    • cancelRowUpdates

      public void cancelRowUpdates() throws SQLException
      Description copied from interface: ResultSet
      Cancels any updates made to the current row in the ResultSet.
      Specified by:
      cancelRowUpdates in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • moveToInsertRow

      public void moveToInsertRow() throws SQLException
      Description copied from interface: ResultSet
      Moves the cursor position to the Insert Row. The current position is remembered and the cursor is positioned at the Insert Row. The columns in the Insert Row should be filled in with the appropriate update methods, before calling insertRow to insert the new row into the database.
      Specified by:
      moveToInsertRow in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • moveToCurrentRow

      public void moveToCurrentRow() throws SQLException
      Description copied from interface: ResultSet
      Moves the cursor to the remembered position, namely the row that was the current row before a call to moveToInsertRow. This only applies if the cursor is on the Insert Row.
      Specified by:
      moveToCurrentRow in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • updateNull

      public void updateNull​(int colIndex) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a null value.
      Specified by:
      updateNull in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      Throws:
      SQLException - if a database error happens.
    • updateBoolean

      public void updateBoolean​(int colIndex, boolean b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a boolean value.
      Specified by:
      updateBoolean in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateByte

      public void updateByte​(int colIndex, byte b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a byte value.
      Specified by:
      updateByte in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateShort

      public void updateShort​(int colIndex, short b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a short value.
      Specified by:
      updateShort in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateInt

      public void updateInt​(int colIndex, int b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with an int value.
      Specified by:
      updateInt in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateLong

      public void updateLong​(int colIndex, long b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a long value.
      Specified by:
      updateLong in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      b - the new value for the specified column..
      Throws:
      SQLException - if a database error happens.
    • updateFloat

      public void updateFloat​(int colIndex, float f) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a float value.
      Specified by:
      updateFloat in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      f - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateDouble

      public void updateDouble​(int colIndex, double f) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a double value.
      Specified by:
      updateDouble in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      f - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateBigDecimal

      public void updateBigDecimal​(int colIndex, BigDecimal f) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a java.sql.BigDecimal value.
      Specified by:
      updateBigDecimal in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      f - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateString

      public void updateString​(int colIndex, String s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a String value.
      Specified by:
      updateString in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      s - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateBytes

      public void updateBytes​(int colIndex, byte[] s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a byte array value.
      Specified by:
      updateBytes in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      s - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateDate

      public void updateDate​(int colIndex, Date d) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a java.sql.Date value.
      Specified by:
      updateDate in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      d - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateTime

      public void updateTime​(int colIndex, Time t) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a Time value.
      Specified by:
      updateTime in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      t - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateTimestamp

      public void updateTimestamp​(int colIndex, Timestamp t) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a Timestamp value.
      Specified by:
      updateTimestamp in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      t - the new timestamp value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateAsciiStream

      public void updateAsciiStream​(int colIndex, InputStream in, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with an ASCII stream value.
      Specified by:
      updateAsciiStream in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      in - the new value for the specified column.
      s - the length of the data to write from the stream
      Throws:
      SQLException - if a database error happens.
    • updateBinaryStream

      public void updateBinaryStream​(int colIndex, InputStream in, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a binary stream value.
      Specified by:
      updateBinaryStream in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      in - the new value for the specified column.
      s - the number of bytes to be read from the the stream.
      Throws:
      SQLException - if a database error happens.
    • updateCharacterStream

      public void updateCharacterStream​(int colIndex, Reader in, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a character stream value.
      Specified by:
      updateCharacterStream in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      in - the new value for the specified column.
      s - the length of data to write from the stream
      Throws:
      SQLException - if a database error happens.
    • updateObject

      public void updateObject​(int colIndex, Object obj) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with an Object value.
      Specified by:
      updateObject in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      obj - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateObject

      public void updateObject​(int colIndex, Object obj, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with an Object value.
      Specified by:
      updateObject in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      obj - the new value for the specified column.
      s - for the types java.sql.Types.DECIMAL or java.sql.Types.NUMERIC, this specifies the number of digits after the decimal point.
      Throws:
      SQLException - if a database error happens.
    • updateNull

      public void updateNull​(String colName) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a null value.
      Specified by:
      updateNull in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      Throws:
      SQLException - if a database error happens.
    • updateBoolean

      public void updateBoolean​(String colName, boolean b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a boolean value.
      Specified by:
      updateBoolean in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateByte

      public void updateByte​(String colName, byte b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a byte value.
      Specified by:
      updateByte in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateShort

      public void updateShort​(String colName, short b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a short value.
      Specified by:
      updateShort in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateInt

      public void updateInt​(String colName, int b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with an int value.
      Specified by:
      updateInt in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateLong

      public void updateLong​(String colName, long b) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a long value.
      Specified by:
      updateLong in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      b - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateFloat

      public void updateFloat​(String colName, float f) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a float value.
      Specified by:
      updateFloat in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      f - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateDouble

      public void updateDouble​(String colName, double f) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a double value.
      Specified by:
      updateDouble in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      f - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateBigDecimal

      public void updateBigDecimal​(String colName, BigDecimal f) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a java.sql.BigDecimal value.
      Specified by:
      updateBigDecimal in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      f - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateString

      public void updateString​(String colName, String s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a String value.
      Specified by:
      updateString in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      s - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateBytes

      public void updateBytes​(String colName, byte[] s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a byte array value.
      Specified by:
      updateBytes in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      s - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateDate

      public void updateDate​(String colName, Date d) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a java.sql.Date value.
      Specified by:
      updateDate in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      d - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateTime

      public void updateTime​(String colName, Time t) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a Time value.
      Specified by:
      updateTime in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      t - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateTimestamp

      public void updateTimestamp​(String colName, Timestamp t) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by column name with a Timestamp value.
      Specified by:
      updateTimestamp in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      t - the new timestamp value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateAsciiStream

      public void updateAsciiStream​(String colName, InputStream in, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with an Ascii stream value.
      Specified by:
      updateAsciiStream in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      in - the new value for the specified column.
      s - the length of the data to write from the stream
      Throws:
      SQLException - if a database error happens.
    • updateBinaryStream

      public void updateBinaryStream​(String colName, InputStream in, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a binary stream value.
      Specified by:
      updateBinaryStream in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      in - the new value for the specified column.
      s - he number of bytes to be read from the the stream.
      Throws:
      SQLException - if a database error happens.
    • updateCharacterStream

      public void updateCharacterStream​(String colName, Reader in, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a character stream value.
      Specified by:
      updateCharacterStream in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      in - the new value for the specified column.
      s - the length of data to write from the Reader
      Throws:
      SQLException - if a database error happens.
    • updateObject

      public void updateObject​(String colName, Object obj) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with an Object value.
      Specified by:
      updateObject in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      obj - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateObject

      public void updateObject​(String colName, Object obj, int s) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with an Object value.
      Specified by:
      updateObject in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      obj - the new value for the specified column.
      s - for the types java.sql.Types.DECIMAL or java.sql.Types.NUMERIC, this specifies the number of digits after the decimal point.
      Throws:
      SQLException - if a database error happens.
    • getStatement

      public Statement getStatement() throws SQLException
      Description copied from interface: ResultSet
      Gets the statement that produced this ResultSet. If the ResultSet was not created by a statement (i.e. because it was returned from one of the DatabaseMetaData methods), null is returned.
      Specified by:
      getStatement in interface ResultSet
      Returns:
      the Statement which produced this ResultSet, or null if the ResultSet was not created by a Statement.
      Throws:
      SQLException - if a database error happens.
    • close

      public void close() throws SQLException
      Description copied from interface: ResultSet
      Releases this ResultSet's database and JDBC resources. You are strongly advised to use this method rather than relying on the release being done when the ResultSet's finalize method is called during garbage collection process. Note that the close() method might take some time to complete since it is dependent on the behavior of the connection to the database and the database itself.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ResultSet
      Throws:
      SQLException - if a database error happens.
    • getURL

      public URL getURL​(int colIndex) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column index as a java.net.URL.
      Specified by:
      getURL in interface ResultSet
      Parameters:
      colIndex - the index of the column to read.
      Returns:
      a URL. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • getURL

      public URL getURL​(String colName) throws SQLException
      Description copied from interface: ResultSet
      Gets the value of a column specified by column name as a java.net.URL object.
      Specified by:
      getURL in interface ResultSet
      Parameters:
      colName - the name of the column to read.
      Returns:
      the column vaule as a URL. null if the column value is SQL NULL.
      Throws:
      SQLException - if a database error happens.
    • updateRef

      public void updateRef​(int colIndex, Ref x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a java.sql.Ref value.
      Specified by:
      updateRef in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateRef

      public void updateRef​(String colName, Ref x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a java.sql.Ref value.
      Specified by:
      updateRef in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateBlob

      public void updateBlob​(int colIndex, Blob x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a java.sql.Blob value.
      Specified by:
      updateBlob in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateBlob

      public void updateBlob​(String colName, Blob x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a java.sql.Blob value.
      Specified by:
      updateBlob in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateClob

      public void updateClob​(int colIndex, Clob x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a java.sql.Clob value.
      Specified by:
      updateClob in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateClob

      public void updateClob​(String colName, Clob x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a java.sql.Clob value.
      Specified by:
      updateClob in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateArray

      public void updateArray​(int colIndex, Array x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column index with a java.sql.Array value.
      Specified by:
      updateArray in interface ResultSet
      Parameters:
      colIndex - the index of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • updateArray

      public void updateArray​(String colName, Array x) throws SQLException
      Description copied from interface: ResultSet
      Updates a column specified by a column name with a java.sql.Array value.
      Specified by:
      updateArray in interface ResultSet
      Parameters:
      colName - the name of the column to update.
      x - the new value for the specified column.
      Throws:
      SQLException - if a database error happens.
    • getRowId

      public RowId getRowId​(int colIndex) throws SQLException
      Description copied from interface: ResultSet
      Returns a RowId corresponding to the SQL ROWID at the 1-based columnIndex.
      Specified by:
      getRowId in interface ResultSet
      Throws:
      SQLException
    • getRowId

      public RowId getRowId​(String colName) throws SQLException
      Description copied from interface: ResultSet
      Returns a RowId corresponding to the SQL ROWID at the named column.
      Specified by:
      getRowId in interface ResultSet
      Throws:
      SQLException
    • updateRowId

      public void updateRowId​(int colIndex, RowId x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateRowId in interface ResultSet
      Throws:
      SQLException
    • updateRowId

      public void updateRowId​(String colName, RowId x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateRowId in interface ResultSet
      Throws:
      SQLException
    • getHoldability

      public int getHoldability() throws SQLException
      Description copied from interface: ResultSet
      Returns the holdability of this result set: ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT.
      Specified by:
      getHoldability in interface ResultSet
      Throws:
      SQLException
    • isClosed

      public boolean isClosed() throws SQLException
      Description copied from interface: ResultSet
      Returns true if this result set has been closed, false otherwise.
      Specified by:
      isClosed in interface ResultSet
      Throws:
      SQLException
    • updateNString

      public void updateNString​(int colIndex, String nString) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNString in interface ResultSet
      Throws:
      SQLException
    • updateNString

      public void updateNString​(String colName, String nString) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNString in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(int colIndex, NClob nclob) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(String colName, NClob nclob) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • getNClob

      public NClob getNClob​(int colIndex) throws SQLException
      Description copied from interface: ResultSet
      Returns an NClob corresponding to the value at the 1-based columnIndex.
      Specified by:
      getNClob in interface ResultSet
      Throws:
      SQLException
    • getNClob

      public NClob getNClob​(String colName) throws SQLException
      Description copied from interface: ResultSet
      Returns an NClob corresponding to the value in the named column.
      Specified by:
      getNClob in interface ResultSet
      Throws:
      SQLException
    • getSQLXML

      public SQLXML getSQLXML​(int colIndex) throws SQLException
      Description copied from interface: ResultSet
      Returns an SQLXML corresponding to the value at the 1-based columnIndex.
      Specified by:
      getSQLXML in interface ResultSet
      Throws:
      SQLException
    • getSQLXML

      public SQLXML getSQLXML​(String colName) throws SQLException
      Description copied from interface: ResultSet
      Returns an SQLXML corresponding to the value in the named column.
      Specified by:
      getSQLXML in interface ResultSet
      Throws:
      SQLException
    • updateSQLXML

      public void updateSQLXML​(int colIndex, SQLXML xml) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateSQLXML in interface ResultSet
      Throws:
      SQLException
    • updateSQLXML

      public void updateSQLXML​(String colName, SQLXML xml) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateSQLXML in interface ResultSet
      Throws:
      SQLException
    • getNString

      public String getNString​(int colIndex) throws SQLException
      Description copied from interface: ResultSet
      Returns a String corresponding to the value at the 1-based columnIndex.
      Specified by:
      getNString in interface ResultSet
      Throws:
      SQLException
    • getNString

      public String getNString​(String colName) throws SQLException
      Description copied from interface: ResultSet
      Returns a String corresponding to the value in the named column.
      Specified by:
      getNString in interface ResultSet
      Throws:
      SQLException
    • getNCharacterStream

      public Reader getNCharacterStream​(int colIndex) throws SQLException
      Description copied from interface: ResultSet
      Returns a Reader corresponding to the value at the 1-based columnIndex.
      Specified by:
      getNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • getNCharacterStream

      public Reader getNCharacterStream​(String colName) throws SQLException
      Description copied from interface: ResultSet
      Returns a Reader corresponding to the value in the named column.
      Specified by:
      getNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(int colIndex, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(String colName, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(int colIndex, InputStream x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(String colName, InputStream x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(int colIndex, InputStream x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(String colName, InputStream x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(int colIndex, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(String colName, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(int colIndex, InputStream x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(String colName, InputStream x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(int colIndex, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(String colName, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(int colIndex, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(String colName, Reader x, long len) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(int colIndex, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(String colName, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(int colIndex, InputStream x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(String colName, InputStream x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(int colIndex, InputStream x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(String colName, InputStream x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(int colIndex, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(String colName, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(int colIndex, InputStream x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(String colName, InputStream x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(int colIndex, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(String colName, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(int colIndex, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value at the 1-based columnIndex. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(String colName, Reader x) throws SQLException
      Description copied from interface: ResultSet
      Updates the value in the named column. The underlying database isn't changed until the next row update or insert operation.
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • unwrap

      public <T> T unwrap​(Class<T> iface) throws SQLException
      Description copied from interface: Wrapper
      Returns an object that implements the given interface. If the caller is not a wrapper, a SQLException will be thrown.
      Specified by:
      unwrap in interface Wrapper
      Parameters:
      iface - - the class that defines the interface
      Returns:
      - an object that implements the interface
      Throws:
      SQLException - - if there is no object implementing the specific interface
    • isWrapperFor

      public boolean isWrapperFor​(Class iface) throws SQLException
      Description copied from interface: Wrapper
      If the caller is a wrapper of the class or implements the given interface, the methods return false and vice versa.
      Specified by:
      isWrapperFor in interface Wrapper
      Parameters:
      iface - - the class that defines the interface
      Returns:
      - true if the instance implements the interface
      Throws:
      SQLException - - when an error occurs when judges the object