Class MonetResultSet

java.lang.Object
nl.cwi.monetdb.jdbc.MonetWrapper
nl.cwi.monetdb.jdbc.MonetResultSet
All Implemented Interfaces:
AutoCloseable, ResultSet, Wrapper

public class MonetResultSet
extends MonetWrapper
implements ResultSet, AutoCloseable
A ResultSet suitable for the MonetDB database. A table of data representing a database result set, which is usually generated by executing a statement that queries the database. A ResultSet object maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. The next method moves the cursor to the next row, and because it returns false when there are no more rows in the ResultSet object, it can be used in a while loop to iterate through the result set. The current state of this ResultSet is that it supports positioning in the result set, absolute and relative. A slight performance difference between FORWARD_ONLY or result sets scrollable in both directions can be noticed as for FORWARD_ONLY result sets the memory usage will be likely lower for large result sets.
Version:
0.8
Author:
Fabian Groffen, Martin van Dinther, Pedro Ferreira
  • Field Summary

  • Method Summary

    Modifier and Type Method Description
    boolean absolute​(int row)
    Moves the cursor to the given row number in this ResultSet object.
    void addWarning​(String reason, String sqlstate)
    Adds a warning to the pile of warnings this ResultSet object has.
    void afterLast()
    Moves the cursor to the end of this ResultSet object, just after the last row.
    void beforeFirst()
    Moves the cursor to the front of this ResultSet object, just before the first row.
    void cancelRowUpdates()  
    void clearWarnings()
    Clears all warnings reported for this ResultSet object.
    void close()
    Releases this ResultSet object's database (and JDBC) resources immediately instead of waiting for this to happen when it is automatically closed.
    void deleteRow()  
    int findColumn​(String columnLabel)
    Maps the given ResultSet column name to its ResultSet column index.
    boolean first()
    Moves the cursor to the first row in this ResultSet object.
    Array getArray​(int columnIndex)  
    Array getArray​(String columnLabel)  
    InputStream getAsciiStream​(int columnIndex)  
    InputStream getAsciiStream​(String columnLabel)  
    BigDecimal getBigDecimal​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
    BigDecimal getBigDecimal​(int columnIndex, int scale)
    Deprecated.
    BigDecimal getBigDecimal​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
    BigDecimal getBigDecimal​(String columnLabel, int scale)
    Deprecated.
    InputStream getBinaryStream​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes.
    InputStream getBinaryStream​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes.
    Blob getBlob​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
    Blob getBlob​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
    boolean getBoolean​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
    boolean getBoolean​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
    byte getByte​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
    byte getByte​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
    byte[] getBytes​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language.
    byte[] getBytes​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language.
    Reader getCharacterStream​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
    Reader getCharacterStream​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
    Clob getClob​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language.
    Clob getClob​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language.
    int getConcurrency()
    Retrieves the concurrency mode of this ResultSet object.
    String getCursorName()
    Retrieves the name of the SQL cursor used by this ResultSet object.
    Date getDate​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
    Date getDate​(int columnIndex, Calendar cal)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
    Date getDate​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
    Date getDate​(String columnLabel, Calendar cal)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
    double getDouble​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
    double getDouble​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
    int getFetchDirection()
    Retrieves the fetch direction for this ResultSet object.
    int getFetchSize()
    Retrieves the fetch size for this ResultSet object.
    float getFloat​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
    float getFloat​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
    int getHoldability()
    Retrieves the holdability of this ResultSet object.
    int getInt​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
    int getInt​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
    long getLong​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language.
    long getLong​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language.
    ResultSetMetaData getMetaData()
    Retrieves the number, types and properties of this ResultSet object's columns.
    Reader getNCharacterStream​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
    Reader getNCharacterStream​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
    NClob getNClob​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the Java programming language.
    NClob getNClob​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the Java programming language.
    String getNString​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
    String getNString​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
    Object getObject​(int columnIndex)
    Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
    <T> T getObject​(int columnIndex, Class<T> type)
    Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.
    Object getObject​(int columnIndex, Map<String,​Class<?>> map)
    Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
    Object getObject​(String columnLabel)
    Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
    <T> T getObject​(String columnLabel, Class<T> type)
    Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.
    Object getObject​(String columnLabel, Map<String,​Class<?>> map)
    Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
    Ref getRef​(int columnIndex)  
    Ref getRef​(String columnLabel)  
    int getRow()
    Retrieves the current row number.
    RowId getRowId​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.RowId object in the Java programming language.
    RowId getRowId​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.RowId object in the Java programming language.
    short getShort​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
    short getShort​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
    SQLXML getSQLXML​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object in the Java programming language.
    SQLXML getSQLXML​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object in the Java programming language.
    Statement getStatement()
    Retrieves the Statement object that produced this ResultSet object.
    String getString​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
    String getString​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
    Time getTime​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
    Time getTime​(int columnIndex, Calendar cal)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
    Time getTime​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
    Time getTime​(String columnLabel, Calendar cal)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
    Timestamp getTimestamp​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
    Timestamp getTimestamp​(int columnIndex, Calendar cal)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
    Timestamp getTimestamp​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
    Timestamp getTimestamp​(String columnLabel, Calendar cal)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
    int getType()
    Retrieves the type of this ResultSet object.
    InputStream getUnicodeStream​(int columnIndex)
    Deprecated.
    InputStream getUnicodeStream​(String columnLabel)
    Deprecated.
    URL getURL​(int columnIndex)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
    URL getURL​(String columnLabel)
    Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
    SQLWarning getWarnings()
    Retrieves the first warning reported by calls on this ResultSet object.
    void insertRow()  
    boolean isAfterLast()
    Retrieves whether the cursor is after the last row in this ResultSet object.
    boolean isBeforeFirst()
    Retrieves whether the cursor is before the first row in this ResultSet object.
    boolean isClosed()
    Retrieves whether this ResultSet object has been closed.
    boolean isFirst()
    Retrieves whether the cursor is on the first row of this ResultSet object.
    boolean isLast()
    Retrieves whether the cursor is on the last row of this ResultSet object.
    boolean last()
    Moves the cursor to the last row in this ResultSet object.
    void moveToCurrentRow()  
    void moveToInsertRow()  
    static SQLDataException newSQLInvalidColumnIndexException​(int colIdx)
    Small helper method that formats the "Invalid Column Index number ..." message and creates a new SQLDataException object whose SQLState is set to "22010": invalid indicator parameter value.
    boolean next()
    Moves the cursor down one row from its current position.
    boolean previous()
    Moves the cursor to the previous row in this ResultSet object.
    void refreshRow()  
    boolean relative​(int rows)
    Moves the cursor a relative number of rows, either positive or negative.
    boolean rowDeleted()
    Retrieves whether a row has been deleted.
    boolean rowInserted()
    Retrieves whether the current row has had an insertion.
    boolean rowUpdated()
    Retrieves whether the current row has been updated.
    void setFetchDirection​(int direction)
    Gives a hint as to the direction in which the rows in this ResultSet object will be processed.
    void setFetchSize​(int rows)
    Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed.
    void updateArray​(int columnIndex, Array x)  
    void updateArray​(String columnLabel, Array x)  
    void updateAsciiStream​(int columnIndex, InputStream x)  
    void updateAsciiStream​(int columnIndex, InputStream x, int length)  
    void updateAsciiStream​(int columnIndex, InputStream x, long length)  
    void updateAsciiStream​(String columnLabel, InputStream x)  
    void updateAsciiStream​(String columnLabel, InputStream x, int length)  
    void updateAsciiStream​(String columnLabel, InputStream x, long length)  
    void updateBigDecimal​(int columnIndex, BigDecimal x)  
    void updateBigDecimal​(String columnLabel, BigDecimal x)  
    void updateBinaryStream​(int columnIndex, InputStream x)  
    void updateBinaryStream​(int columnIndex, InputStream x, int length)  
    void updateBinaryStream​(int columnIndex, InputStream x, long length)  
    void updateBinaryStream​(String columnLabel, InputStream x)  
    void updateBinaryStream​(String columnLabel, InputStream x, int length)  
    void updateBinaryStream​(String columnLabel, InputStream x, long length)  
    void updateBlob​(int columnIndex, InputStream s)  
    void updateBlob​(int columnIndex, InputStream s, long length)  
    void updateBlob​(int columnIndex, Blob x)  
    void updateBlob​(String columnLabel, InputStream s)  
    void updateBlob​(String columnLabel, InputStream s, long length)  
    void updateBlob​(String columnLabel, Blob x)  
    void updateBoolean​(int columnIndex, boolean x)  
    void updateBoolean​(String columnLabel, boolean x)  
    void updateByte​(int columnIndex, byte x)  
    void updateByte​(String columnLabel, byte x)  
    void updateBytes​(int columnIndex, byte[] x)  
    void updateBytes​(String columnLabel, byte[] x)  
    void updateCharacterStream​(int columnIndex, Reader x)  
    void updateCharacterStream​(int columnIndex, Reader x, int length)  
    void updateCharacterStream​(int columnIndex, Reader x, long length)  
    void updateCharacterStream​(String columnLabel, Reader reader)  
    void updateCharacterStream​(String columnLabel, Reader reader, int length)  
    void updateCharacterStream​(String columnLabel, Reader reader, long length)  
    void updateClob​(int columnIndex, Reader r)  
    void updateClob​(int columnIndex, Reader r, long length)  
    void updateClob​(int columnIndex, Clob x)  
    void updateClob​(String columnLabel, Reader r)  
    void updateClob​(String columnLabel, Reader r, long length)  
    void updateClob​(String columnLabel, Clob x)  
    void updateDate​(int columnIndex, Date x)  
    void updateDate​(String columnLabel, Date x)  
    void updateDouble​(int columnIndex, double x)  
    void updateDouble​(String columnLabel, double x)  
    void updateFloat​(int columnIndex, float x)  
    void updateFloat​(String columnLabel, float x)  
    void updateInt​(int columnIndex, int x)  
    void updateInt​(String columnLabel, int x)  
    void updateLong​(int columnIndex, long x)  
    void updateLong​(String columnLabel, long x)  
    void updateNCharacterStream​(int columnIndex, Reader x)  
    void updateNCharacterStream​(int columnIndex, Reader x, long length)  
    void updateNCharacterStream​(String columnLabel, Reader reader)  
    void updateNCharacterStream​(String columnLabel, Reader reader, long length)  
    void updateNClob​(int columnIndex, Reader r)  
    void updateNClob​(int columnIndex, Reader r, long length)  
    void updateNClob​(int columnIndex, NClob x)  
    void updateNClob​(String columnLabel, Reader r)  
    void updateNClob​(String columnLabel, Reader r, long length)  
    void updateNClob​(String columnLabel, NClob x)  
    void updateNString​(int columnIndex, String x)  
    void updateNString​(String columnLabel, String x)  
    void updateNull​(int columnIndex)  
    void updateNull​(String columnLabel)  
    void updateObject​(int columnIndex, Object x)  
    void updateObject​(int columnIndex, Object x, int scale)  
    void updateObject​(String columnLabel, Object x)  
    void updateObject​(String columnLabel, Object x, int scale)  
    void updateRef​(int columnIndex, Ref x)  
    void updateRef​(String columnLabel, Ref x)  
    void updateRow()  
    void updateRowId​(int columnIndex, RowId x)  
    void updateRowId​(String columnLabel, RowId x)  
    void updateShort​(int columnIndex, short x)  
    void updateShort​(String columnLabel, short x)  
    void updateSQLXML​(int columnIndex, SQLXML x)  
    void updateSQLXML​(String columnLabel, SQLXML x)  
    void updateString​(int columnIndex, String x)  
    void updateString​(String columnLabel, String x)  
    void updateTime​(int columnIndex, Time x)  
    void updateTime​(String columnLabel, Time x)  
    void updateTimestamp​(int columnIndex, Timestamp x)  
    void updateTimestamp​(String columnLabel, Timestamp x)  
    boolean wasNull()
    Reports whether the last column read had a value of SQL NULL.

    Methods inherited from class nl.cwi.monetdb.jdbc.MonetWrapper

    isWrapperFor, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.sql.ResultSet

    updateObject, updateObject, updateObject, updateObject

    Methods inherited from interface java.sql.Wrapper

    isWrapperFor, unwrap
  • Method Details

    • absolute

      public boolean absolute​(int row) throws SQLException
      Moves the cursor to the given row number in this ResultSet object. If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set. The first row is row 1, the second is row 2, and so on. If the given row number is negative, the cursor moves to an absolute row position with respect to the end of the result set. For example, calling the method absolute(-1) positions the cursor on the last row; calling the method absolute(-2) moves the cursor to the next-to-last row, and so on. An attempt to position the cursor beyond the first/last row in the result set leaves the cursor before the first row or after the last row. Note: calling absolute(1) is the same as calling first(). Calling absolute(-1) is the same as calling last().
      Specified by:
      absolute in interface ResultSet
      Parameters:
      row - the number of the row to which the cursor should move. A positive number indicates the row number counting from the beginning of the result set; a negative number indicates the row number counting from the end of the result set
      Returns:
      true if the cursor is on the result set; false otherwise
      Throws:
      SQLException - if a database access error occurs, or the result set type is TYPE_FORWARD_ONLY
    • afterLast

      public void afterLast() throws SQLException
      Moves the cursor to the end of this ResultSet object, just after the last row. This method has no effect if the result set contains no rows.
      Specified by:
      afterLast in interface ResultSet
      Throws:
      SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY
    • beforeFirst

      public void beforeFirst() throws SQLException
      Moves the cursor to the front of this ResultSet object, just before the first row. This method has no effect if the result set contains no rows.
      Specified by:
      beforeFirst in interface ResultSet
      Throws:
      SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY
    • clearWarnings

      public void clearWarnings()
      Clears all warnings reported for this ResultSet object. After a call to this method, the method getWarnings returns null until a new warning is reported for this ResultSet object.
      Specified by:
      clearWarnings in interface ResultSet
    • close

      public void close()
      Releases this ResultSet object's database (and JDBC) resources immediately instead of waiting for this to happen when it is automatically closed.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface ResultSet
    • findColumn

      public int findColumn​(String columnLabel) throws SQLException
      Maps the given ResultSet column name to its ResultSet column index. Column names supplied to getter methods are case insensitive. If a select list contains the same column more than once, the first instance of the column will be returned.
      Specified by:
      findColumn in interface ResultSet
      Parameters:
      columnLabel - the name of the column
      Returns:
      the column index of the given column name
      Throws:
      SQLException - if the ResultSet object does not contain a column labeled columnLabel, a database access error occurs or this method is called on a closed result set
    • first

      public boolean first() throws SQLException
      Moves the cursor to the first row in this ResultSet object.
      Specified by:
      first in interface ResultSet
      Returns:
      true if the cursor is on a valid row; false if there are no rows in the result set
      Throws:
      SQLException - - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY
    • getArray

      public Array getArray​(int columnIndex) throws SQLException
      Specified by:
      getArray in interface ResultSet
      Throws:
      SQLException
    • getArray

      public Array getArray​(String columnLabel) throws SQLException
      Specified by:
      getArray in interface ResultSet
      Throws:
      SQLException
    • getAsciiStream

      public InputStream getAsciiStream​(int columnIndex) throws SQLException
      Specified by:
      getAsciiStream in interface ResultSet
      Throws:
      SQLException
    • getAsciiStream

      public InputStream getAsciiStream​(String columnLabel) throws SQLException
      Specified by:
      getAsciiStream in interface ResultSet
      Throws:
      SQLException
    • getUnicodeStream

      @Deprecated public InputStream getUnicodeStream​(int columnIndex) throws SQLException
      Deprecated.
      Specified by:
      getUnicodeStream in interface ResultSet
      Throws:
      SQLException
    • getUnicodeStream

      @Deprecated public InputStream getUnicodeStream​(String columnLabel) throws SQLException
      Deprecated.
      Specified by:
      getUnicodeStream in interface ResultSet
      Throws:
      SQLException
    • getBinaryStream

      public InputStream getBinaryStream​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARBINARY values. Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getter method implicitly closes the stream. Also, a stream may return 0 when the method InputStream.available is called whether there is data available or not.
      Specified by:
      getBinaryStream in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a Java input stream that delivers the database column value as a stream of uninterpreted bytes; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set
    • getBinaryStream

      public InputStream getBinaryStream​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARBINARY values. Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getter method implicitly closes the stream. Also, a stream may return 0 when the method available is called whether there is data available or not.
      Specified by:
      getBinaryStream in interface ResultSet
      Parameters:
      columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
      Returns:
      a Java input stream that delivers the database column value as a stream of uninterpreted bytes; if the value is SQL NULL, the result is null
      Throws:
      SQLException - if the columnLabel is not valid; if a database access error occurs or this method is called on a closed result set
    • getCharacterStream

      public Reader getCharacterStream​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
      Specified by:
      getCharacterStream in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a java.io.Reader object that contains the column value; if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getCharacterStream

      public Reader getCharacterStream​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
      Specified by:
      getCharacterStream in interface ResultSet
      Parameters:
      columnLabel - the name of the column
      Returns:
      a java.io.Reader object that contains the column value; if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs
    • getNCharacterStream

      public Reader getNCharacterStream​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object. It is intended for use when accessing NCHAR,NVARCHAR and LONGNVARCHAR columns.
      Specified by:
      getNCharacterStream in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a java.io.Reader object that contains the column value; if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs
    • getNCharacterStream

      public Reader getNCharacterStream​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object. It is intended for use when accessing NCHAR,NVARCHAR and LONGNVARCHAR columns.
      Specified by:
      getNCharacterStream in interface ResultSet
      Parameters:
      columnLabel - the name of the column
      Returns:
      a java.io.Reader object that contains the column value; if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs
    • getBlob

      public Blob getBlob​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
      Specified by:
      getBlob in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a Blob object representing the SQL BLOB value in the specified column
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getBlob

      public Blob getBlob​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
      Specified by:
      getBlob in interface ResultSet
      Parameters:
      columnLabel - the name of the column from which to retrieve the value
      Returns:
      a Blob object representing the SQL BLOB value in the specified column
      Throws:
      SQLException - if a database access error occurs
    • getClob

      public Clob getClob​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language.
      Specified by:
      getClob in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a Clob object representing the SQL CLOB value in the specified column
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getClob

      public Clob getClob​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language.
      Specified by:
      getClob in interface ResultSet
      Parameters:
      columnLabel - the name of the column from which to retrieve the value
      Returns:
      a Clob object representing the SQL CLOB value in the specified column
      Throws:
      SQLException - if a database access error occurs
    • getNClob

      public NClob getNClob​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the Java programming language.
      Specified by:
      getNClob in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a NClob object representing the SQL NCLOB value in the specified column
      Throws:
      SQLException - if a database access error occurs
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getNClob

      public NClob getNClob​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the Java programming language.
      Specified by:
      getNClob in interface ResultSet
      Parameters:
      columnLabel - the name of the column from which to retrieve the value
      Returns:
      a NClob object representing the SQL NCLOB value in the specified column
      Throws:
      SQLException - if a database access error occurs
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getBigDecimal

      public BigDecimal getBigDecimal​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value (full precision); if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getBigDecimal

      @Deprecated public BigDecimal getBigDecimal​(int columnIndex, int scale) throws SQLException
      Deprecated.
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      scale - the number of digits to the right of the decimal point
      Returns:
      the column value (full precision); if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getBigDecimal

      public BigDecimal getBigDecimal​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value (full precision); if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs
    • getBigDecimal

      @Deprecated public BigDecimal getBigDecimal​(String columnLabel, int scale) throws SQLException
      Deprecated.
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
      Specified by:
      getBigDecimal in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      scale - the number of digits to the right of the decimal point
      Returns:
      the column value (full precision); if the value is SQL NULL, the value returned is null in the Java programming language.
      Throws:
      SQLException - if a database access error occurs
    • getBoolean

      public boolean getBoolean​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
      Specified by:
      getBoolean in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is false
      Throws:
      SQLException - if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set
    • getBoolean

      public boolean getBoolean​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
      Specified by:
      getBoolean in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is false
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getByte

      public byte getByte​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
      Specified by:
      getByte in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getByte

      public byte getByte​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
      Specified by:
      getByte in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if a database access error occurs
    • getBytes

      public byte[] getBytes​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. The bytes represent the raw values returned by the driver.
      Specified by:
      getBytes in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getBytes

      public byte[] getBytes​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. The bytes represent the raw values returned by the driver. NOTE: Since the mapi protocol is ASCII-based, this method only returns Java byte representations of Strings, which is nothing more than an encoding into a sequence of bytes using the platform's default charset.
      Specified by:
      getBytes in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getConcurrency

      public int getConcurrency()
      Retrieves the concurrency mode of this ResultSet object. The concurrency used is determined by the Statement object that created the result set. NOTE: MonetDB only supports read-only result sets, and will always return ResultSet.CONCUR_READ_ONLY
      Specified by:
      getConcurrency in interface ResultSet
      Returns:
      the concurrency type, either ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE
    • getCursorName

      public String getCursorName() throws SQLException
      Retrieves the name of the SQL cursor used by this ResultSet object. In SQL, a result table is retrieved through a cursor that is named. For MonetDB this is the header.id returned in a resultset header. The current row of a result set can be updated or deleted using a positioned update/delete statement that references the cursor name. To insure that the cursor has the proper isolation level to support update, the cursor's SELECT statement should be of the form SELECT FOR UPDATE. If FOR UPDATE is omitted, the positioned updates may fail. The JDBC API supports this SQL feature by providing the name of the SQL cursor used by a ResultSet object. The current row of a ResultSet object is also the current row of this SQL cursor. Note: If positioned update is not supported, a SQLException is thrown. MonetDB currently doesn't support updates, so the SQLException is thrown for now.
      Specified by:
      getCursorName in interface ResultSet
      Returns:
      the SQL name for this ResultSet object's cursor
      Throws:
      SQLException - if a database access error occurs
    • getDouble

      public double getDouble​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
      Specified by:
      getDouble in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if there is no such column or this method is called on a closed result set
    • getDouble

      public double getDouble​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
      Specified by:
      getDouble in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getHoldability

      public int getHoldability() throws SQLException
      Retrieves the holdability of this ResultSet object.
      Specified by:
      getHoldability in interface ResultSet
      Returns:
      either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT
      Throws:
      SQLException - if a database access error occurs
    • getFetchDirection

      public int getFetchDirection()
      Retrieves the fetch direction for this ResultSet object.
      Specified by:
      getFetchDirection in interface ResultSet
      Returns:
      the current fetch direction for this ResultSet object
    • setFetchDirection

      public void setFetchDirection​(int direction) throws SQLException
      Gives a hint as to the direction in which the rows in this ResultSet object will be processed. The initial value is determined by the Statement object that produced this ResultSet object. The fetch direction may be changed at any time.
      Specified by:
      setFetchDirection in interface ResultSet
      Parameters:
      direction - - an int specifying the suggested fetch direction; one of ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, or ResultSet.FETCH_UNKNOWN
      Throws:
      SQLException
    • getFetchSize

      public int getFetchSize() throws SQLException
      Retrieves the fetch size for this ResultSet object.
      Specified by:
      getFetchSize in interface ResultSet
      Returns:
      the current fetch size for this ResultSet object
      Throws:
      SQLException - if a database access error occurs
    • setFetchSize

      public void setFetchSize​(int rows) throws SQLException
      Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed. In MonetDB, this is actually a no-op, because even before a MonetResultSet object is created, the fetch size is already determined in the MonetConnection.ResultSetResponse passed to its constructor. Since all data blocks for this whole result set are already allocated in MonetConnection.ResultSetResponse, it is too complicated and error-prone to still change the fetchSize here. If one really needs to overwrite the default fetchSize, please use MonetStatement.setFetchSize() instead.
      Specified by:
      setFetchSize in interface ResultSet
      Parameters:
      rows - the number of rows to fetch
      Throws:
      SQLException - if the condition 0 <= rows is not satisfied
    • getFloat

      public float getFloat​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
      Specified by:
      getFloat in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if there is no such column or this method is called on a closed result set
    • getFloat

      public float getFloat​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
      Specified by:
      getFloat in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getInt

      public int getInt​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
      Specified by:
      getInt in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if there is no such column or this method is called on a closed result set
    • getInt

      public int getInt​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
      Specified by:
      getInt in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getLong

      public long getLong​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language.
      Specified by:
      getLong in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if there is no such column or this method is called on a closed result set
    • getLong

      public long getLong​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language.
      Specified by:
      getLong in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getMetaData

      public ResultSetMetaData getMetaData() throws SQLException
      Retrieves the number, types and properties of this ResultSet object's columns.
      Specified by:
      getMetaData in interface ResultSet
      Returns:
      the description of this ResultSet object's columns
      Throws:
      SQLException
    • getObject

      public Object getObject​(int columnIndex) throws SQLException
      Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. This method will return the value of the given column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification. If the value is an SQL NULL, the driver returns a Java null. This method may also be used to read database-specific abstract data types. In the JDBC 2.0 API, the behavior of method getObject is extended to materialize data of SQL user-defined types. When a column contains a structured or distinct value, the behavior of this method is as if it were a call to: getObject(columnIndex, this.getStatement().getConnection().getTypeMap()).
      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a java.lang.Object holding the column value or null
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getObject

      public Object getObject​(int columnIndex, Map<String,​Class<?>> map) throws SQLException
      Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. This method will return the value of the given column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification. If the value is an SQL NULL, the driver returns a Java null. This method may also be used to read database-specific abstract data types. In the JDBC 2.0 API, the behavior of method getObject is extended to materialize data of SQL user-defined types. If Connection.getTypeMap does not throw a SQLFeatureNotSupportedException, then when a column contains a structured or distinct value, the behavior of this method is as if it were a call to: getObject(columnIndex, this.getStatement().getInternalConnection().getTypeMap()). If Connection.getTypeMap does throw a SQLFeatureNotSupportedException, then structured values are not supported, and distinct values are mapped to the default Java class as determined by the underlying SQL type of the DISTINCT type.
      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      map - a java.util.Map object that contains the mapping from SQL type names to classes in the Java programming language
      Returns:
      an Object in the Java programming language representing the SQL value
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getObject

      public <T> T getObject​(int columnIndex, Class<T> type) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported. If the conversion is not supported or null is specified for the type, a SQLException is thrown. At a minimum, an implementation must support the conversions defined in Appendix B, Table B-3 and conversion of appropriate user defined SQL types to a Java type which implements SQLData, or Struct. Additional conversions may be supported and are vendor defined.
      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      type - Class representing the Java data type to convert the designated column to
      Returns:
      an instance of type holding the column value
      Throws:
      SQLException - if conversion is not supported, type is null or another error occurs. The getCause() method of the exception may provide a more detailed exception, for example, if a conversion error occurs
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getObject

      public <T> T getObject​(String columnLabel, Class<T> type) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported. If the conversion is not supported or null is specified for the type, a SQLException is thrown.
      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
      type - Class representing the Java data type to convert the designated column to
      Returns:
      an instance of type holding the column value
      Throws:
      SQLException - if conversion is not supported, type is null or another error occurs. The getCause() method of the exception may provide a more detailed exception, for example, if a conversion error occurs
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getObject

      public Object getObject​(String columnLabel) throws SQLException
      Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. This method will return the value of the given column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification. If the value is an SQL NULL, the driver returns a Java null. This method may also be used to read database-specific abstract data types.
      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      a java.lang.Object holding the column value
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getObject

      public Object getObject​(String columnLabel, Map<String,​Class<?>> map) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. If the value is an SQL NULL, the driver returns a Java null. This method uses the specified Map object for custom mapping if appropriate.
      Specified by:
      getObject in interface ResultSet
      Parameters:
      columnLabel - the name of the column from which to retrieve the value
      map - a java.util.Map object that contains the mapping from SQL type names to classes in the Java programming language
      Returns:
      an Object representing the SQL value in the specified column
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • getRef

      public Ref getRef​(int columnIndex) throws SQLException
      Specified by:
      getRef in interface ResultSet
      Throws:
      SQLException
    • getRef

      public Ref getRef​(String columnLabel) throws SQLException
      Specified by:
      getRef in interface ResultSet
      Throws:
      SQLException
    • getRow

      public int getRow()
      Retrieves the current row number. The first row is number 1, the second number 2, and so on.
      Specified by:
      getRow in interface ResultSet
      Returns:
      the current row number; 0 if there is no current row
    • getRowId

      public RowId getRowId​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.RowId object in the Java programming language.
      Specified by:
      getRowId in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if there is no such column
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getRowId

      public RowId getRowId​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.RowId object in the Java programming language.
      Specified by:
      getRowId in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getShort

      public short getShort​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
      Specified by:
      getShort in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if there is no such column or this method is called on a closed result set
    • getShort

      public short getShort​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
      Specified by:
      getShort in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is 0
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getStatement

      public Statement getStatement()
      Retrieves the Statement object that produced this ResultSet object. If the result set was generated some other way, such as by a DatabaseMetaData method, this method may return null.
      Specified by:
      getStatement in interface ResultSet
      Returns:
      the Statement object that produced this ResultSet object or null if the result set was produced some other way
    • getString

      public String getString​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
      Specified by:
      getString in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if there is no such column or this method is called on a closed result set
    • getString

      public String getString​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
      Specified by:
      getString in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getNString

      public String getNString​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language. It is intended for use when accessing NCHAR,NVARCHAR and LONGNVARCHAR columns.
      Specified by:
      getNString in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if there is no such column
    • getNString

      public String getNString​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language. It is intended for use when accessing NCHAR,NVARCHAR and LONGNVARCHAR columns.
      Specified by:
      getNString in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if the ResultSet object does not contain columnLabel
    • getSQLXML

      public SQLXML getSQLXML​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object in the Java programming language.
      Specified by:
      getSQLXML in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      a SQLXML object that maps an SQL XML value
      Throws:
      SQLException - if a database access error occurs
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getSQLXML

      public SQLXML getSQLXML​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object in the Java programming language.
      Specified by:
      getSQLXML in interface ResultSet
      Parameters:
      columnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
      Returns:
      a SQLXML object that maps an SQL XML value
      Throws:
      SQLException - if a database access error occurs
      SQLFeatureNotSupportedException - the JDBC driver does not support this method
    • getDate

      public Date getDate​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value as a java.sql.Date object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
      See Also:
      getDate(int col, Calendar cal)
    • getDate

      public Date getDate​(int columnIndex, Calendar cal) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      cal - the java.util.Calendar object to use in constructing the date
      Returns:
      the column value as a java.sql.Date object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getDate

      public Date getDate​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column from which to retrieve the value
      Returns:
      the column value as a java.sql.Date object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getDate

      public Date getDate​(String columnLabel, Calendar cal) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
      Specified by:
      getDate in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column from which to retrieve the value
      cal - the java.util.Calendar object to use in constructing the date
      Returns:
      the column value as a java.sql.Date object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTime

      public Time getTime​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value as a java.sql.Time object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTime

      public Time getTime​(int columnIndex, Calendar cal) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      cal - the java.util.Calendar object to use in constructing the timestamp
      Returns:
      the column value as a java.sql.Time object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTime

      public Time getTime​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value as a java.sql.Time object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTime

      public Time getTime​(String columnLabel, Calendar cal) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.
      Specified by:
      getTime in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      cal - the java.util.Calendar object to use in constructing the timestamp
      Returns:
      the column value as a java.sql.Time object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTimestamp

      public Timestamp getTimestamp​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      the column value as a java.sql.Timestamp object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTimestamp

      public Timestamp getTimestamp​(int columnIndex, Calendar cal) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      cal - the java.util.Calendar object to use in constructing the timestamp
      Returns:
      the column value as a java.sql.Timestamp object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTimestamp

      public Timestamp getTimestamp​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value as a java.sql.Timestamp object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getTimestamp

      public Timestamp getTimestamp​(String columnLabel, Calendar cal) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
      Specified by:
      getTimestamp in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      cal - the java.util.Calendar object to use in constructing the timestamp
      Returns:
      the column value as a java.sql.Timestamp object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs
    • getType

      public int getType()
      Retrieves the type of this ResultSet object. The type is determined by the Statement object that created the result set.
      Specified by:
      getType in interface ResultSet
      Returns:
      ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
    • getURL

      public URL getURL​(int columnIndex) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
      Specified by:
      getURL in interface ResultSet
      Parameters:
      columnIndex - the index of the column 1 is the first, 2 is the second,...
      Returns:
      the column value as a java.net.URL object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs, or if a URL is malformed
    • getURL

      public URL getURL​(String columnLabel) throws SQLException
      Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
      Specified by:
      getURL in interface ResultSet
      Parameters:
      columnLabel - the SQL name of the column
      Returns:
      the column value as a java.net.URL object; if the value is SQL NULL, the value returned is null
      Throws:
      SQLException - if a database access error occurs, or if a URL is malformed
    • getWarnings

      public SQLWarning getWarnings() throws SQLException
      Retrieves the first warning reported by calls on this ResultSet object. If there is more than one warning, subsequent warnings will be chained to the first one and can be retrieved by calling the method SQLWarning.getNextWarning on the warning that was retrieved previously. This method may not be called on a closed result set; doing so will cause an SQLException to be thrown. Note: Subsequent warnings will be chained to this SQLWarning.
      Specified by:
      getWarnings in interface ResultSet
      Returns:
      the first SQLWarning object or null if there are none
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • isAfterLast

      public boolean isAfterLast() throws SQLException
      Retrieves whether the cursor is after the last row in this ResultSet object.
      Specified by:
      isAfterLast in interface ResultSet
      Returns:
      true if the cursor is after the last row; false if the cursor is at any other position or the result set contains no rows
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • isBeforeFirst

      public boolean isBeforeFirst() throws SQLException
      Retrieves whether the cursor is before the first row in this ResultSet object.
      Specified by:
      isBeforeFirst in interface ResultSet
      Returns:
      true if the cursor is before the first row; false if the cursor is at any other position or the result set contains no rows
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • isClosed

      public boolean isClosed() throws SQLException
      Retrieves whether this ResultSet object has been closed. A ResultSet is closed if the method close has been called on it, or if it is automatically closed.
      Specified by:
      isClosed in interface ResultSet
      Returns:
      true if this ResultSet object is closed; false if it is still open
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • isFirst

      public boolean isFirst() throws SQLException
      Retrieves whether the cursor is on the first row of this ResultSet object.
      Specified by:
      isFirst in interface ResultSet
      Returns:
      true if the cursor is on the first row; false otherwise
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • isLast

      public boolean isLast() throws SQLException
      Retrieves whether the cursor is on the last row of this ResultSet object.
      Specified by:
      isLast in interface ResultSet
      Returns:
      true if the cursor is on the last row; false otherwise
      Throws:
      SQLException - if a database access error occurs or this method is called on a closed result set
    • last

      public boolean last() throws SQLException
      Moves the cursor to the last row in this ResultSet object.
      Specified by:
      last in interface ResultSet
      Returns:
      true if the cursor is on a valid row; false if there are no rows in the result set
      Throws:
      SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY
      SQLException - if a database access error occurs or this method is called on a closed result set
    • next

      public boolean next() throws SQLException
      Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on. If an input stream is open for the current row, a call to the method next will implicitly close it. A ResultSet object's warning chain is cleared when a new row is read.
      Specified by:
      next in interface ResultSet
      Returns:
      true if the new current row is valid; false if there are no more rows
      Throws:
      SQLException - if a database access error occurs or ResultSet is closed
    • previous

      public boolean previous() throws SQLException
      Moves the cursor to the previous row in this ResultSet object.
      Specified by:
      previous in interface ResultSet
      Returns:
      true if the cursor is on a valid row; false if it is off the result set
      Throws:
      SQLException - if a database access error occurs or ResultSet is closed or the result set type is TYPE_FORWARD_ONLY
    • relative

      public boolean relative​(int rows) throws SQLException
      Moves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Calling relative(0) is valid, but does not change the cursor position. Note: Calling the method relative(1) is identical to calling the method next() and calling the method relative(-1) is identical to calling the method previous().
      Specified by:
      relative in interface ResultSet
      Parameters:
      rows - an int specifying the number of rows to move from the current row; a positive number moves the cursor forward; a negative number moves the cursor backward
      Returns:
      true if the cursor is on a row; false otherwise
      Throws:
      SQLException - if a database access error occurs, there is no current row, or the result set type is TYPE_FORWARD_ONLY
    • rowDeleted

      public boolean rowDeleted() throws SQLException
      Retrieves whether a row has been deleted. A deleted row may leave a visible "hole" in a result set. This method can be used to detect holes in a result set. The value returned depends on whether or not this ResultSet object can detect deletions. Note: Support for the rowDeleted method is optional with a result set concurrency of CONCUR_READ_ONLY Returns: true if the current row is detected to have been deleted by the owner or another; false otherwise Throws: SQLException - if a database access error occurs or this method is called on a closed result set Since: 1.2 See Also: DatabaseMetaData.deletesAreDetected(int)
      Specified by:
      rowDeleted in interface ResultSet
      Throws:
      SQLException
    • rowInserted

      public boolean rowInserted() throws SQLException
      Retrieves whether the current row has had an insertion. The value returned depends on whether or not this ResultSet object can detect visible inserts. Note: Support for the rowInserted method is optional with a result set concurrency of CONCUR_READ_ONLY Returns: true if the current row is detected to have been inserted; false otherwise Throws: SQLException - if a database access error occurs or this method is called on a closed result set Since: 1.2 See Also: DatabaseMetaData.insertsAreDetected(int)
      Specified by:
      rowInserted in interface ResultSet
      Throws:
      SQLException
    • rowUpdated

      public boolean rowUpdated() throws SQLException
      Retrieves whether the current row has been updated. The value returned depends on whether or not the result set can detect updates. Note: Support for the rowUpdated method is optional with a result set concurrency of CONCUR_READ_ONLY Returns: true if the current row is detected to have been visibly updated by the owner or another; false otherwise Throws: SQLException - if a database access error occurs or this method is called on a closed result set Since: 1.2 See Also: DatabaseMetaData.updatesAreDetected(int)
      Specified by:
      rowUpdated in interface ResultSet
      Throws:
      SQLException
    • cancelRowUpdates

      public void cancelRowUpdates() throws SQLException
      Specified by:
      cancelRowUpdates in interface ResultSet
      Throws:
      SQLException
    • deleteRow

      public void deleteRow() throws SQLException
      Specified by:
      deleteRow in interface ResultSet
      Throws:
      SQLException
    • insertRow

      public void insertRow() throws SQLException
      Specified by:
      insertRow in interface ResultSet
      Throws:
      SQLException
    • moveToCurrentRow

      public void moveToCurrentRow() throws SQLException
      Specified by:
      moveToCurrentRow in interface ResultSet
      Throws:
      SQLException
    • moveToInsertRow

      public void moveToInsertRow() throws SQLException
      Specified by:
      moveToInsertRow in interface ResultSet
      Throws:
      SQLException
    • refreshRow

      public void refreshRow() throws SQLException
      Specified by:
      refreshRow in interface ResultSet
      Throws:
      SQLException
    • updateArray

      public void updateArray​(int columnIndex, Array x) throws SQLException
      Specified by:
      updateArray in interface ResultSet
      Throws:
      SQLException
    • updateArray

      public void updateArray​(String columnLabel, Array x) throws SQLException
      Specified by:
      updateArray in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(int columnIndex, InputStream x) throws SQLException
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(int columnIndex, InputStream x, int length) throws SQLException
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(int columnIndex, InputStream x, long length) throws SQLException
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(String columnLabel, InputStream x) throws SQLException
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(String columnLabel, InputStream x, int length) throws SQLException
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream​(String columnLabel, InputStream x, long length) throws SQLException
      Specified by:
      updateAsciiStream in interface ResultSet
      Throws:
      SQLException
    • updateBigDecimal

      public void updateBigDecimal​(int columnIndex, BigDecimal x) throws SQLException
      Specified by:
      updateBigDecimal in interface ResultSet
      Throws:
      SQLException
    • updateBigDecimal

      public void updateBigDecimal​(String columnLabel, BigDecimal x) throws SQLException
      Specified by:
      updateBigDecimal in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(int columnIndex, InputStream x) throws SQLException
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(int columnIndex, InputStream x, int length) throws SQLException
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(int columnIndex, InputStream x, long length) throws SQLException
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(String columnLabel, InputStream x) throws SQLException
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(String columnLabel, InputStream x, int length) throws SQLException
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream​(String columnLabel, InputStream x, long length) throws SQLException
      Specified by:
      updateBinaryStream in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(int columnIndex, Blob x) throws SQLException
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(int columnIndex, InputStream s) throws SQLException
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(int columnIndex, InputStream s, long length) throws SQLException
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(String columnLabel, Blob x) throws SQLException
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(String columnLabel, InputStream s) throws SQLException
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBlob

      public void updateBlob​(String columnLabel, InputStream s, long length) throws SQLException
      Specified by:
      updateBlob in interface ResultSet
      Throws:
      SQLException
    • updateBoolean

      public void updateBoolean​(int columnIndex, boolean x) throws SQLException
      Specified by:
      updateBoolean in interface ResultSet
      Throws:
      SQLException
    • updateBoolean

      public void updateBoolean​(String columnLabel, boolean x) throws SQLException
      Specified by:
      updateBoolean in interface ResultSet
      Throws:
      SQLException
    • updateByte

      public void updateByte​(int columnIndex, byte x) throws SQLException
      Specified by:
      updateByte in interface ResultSet
      Throws:
      SQLException
    • updateByte

      public void updateByte​(String columnLabel, byte x) throws SQLException
      Specified by:
      updateByte in interface ResultSet
      Throws:
      SQLException
    • updateBytes

      public void updateBytes​(int columnIndex, byte[] x) throws SQLException
      Specified by:
      updateBytes in interface ResultSet
      Throws:
      SQLException
    • updateBytes

      public void updateBytes​(String columnLabel, byte[] x) throws SQLException
      Specified by:
      updateBytes in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(int columnIndex, Reader x) throws SQLException
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(int columnIndex, Reader x, int length) throws SQLException
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(int columnIndex, Reader x, long length) throws SQLException
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(String columnLabel, Reader reader) throws SQLException
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(String columnLabel, Reader reader, int length) throws SQLException
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream​(String columnLabel, Reader reader, long length) throws SQLException
      Specified by:
      updateCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(int columnIndex, Reader x) throws SQLException
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(int columnIndex, Reader x, long length) throws SQLException
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(String columnLabel, Reader reader) throws SQLException
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream​(String columnLabel, Reader reader, long length) throws SQLException
      Specified by:
      updateNCharacterStream in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(int columnIndex, Clob x) throws SQLException
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(int columnIndex, Reader r) throws SQLException
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(int columnIndex, Reader r, long length) throws SQLException
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(String columnLabel, Clob x) throws SQLException
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(String columnLabel, Reader r) throws SQLException
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateClob

      public void updateClob​(String columnLabel, Reader r, long length) throws SQLException
      Specified by:
      updateClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(int columnIndex, NClob x) throws SQLException
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(int columnIndex, Reader r) throws SQLException
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(int columnIndex, Reader r, long length) throws SQLException
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(String columnLabel, NClob x) throws SQLException
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(String columnLabel, Reader r) throws SQLException
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateNClob

      public void updateNClob​(String columnLabel, Reader r, long length) throws SQLException
      Specified by:
      updateNClob in interface ResultSet
      Throws:
      SQLException
    • updateDate

      public void updateDate​(int columnIndex, Date x) throws SQLException
      Specified by:
      updateDate in interface ResultSet
      Throws:
      SQLException
    • updateDate

      public void updateDate​(String columnLabel, Date x) throws SQLException
      Specified by:
      updateDate in interface ResultSet
      Throws:
      SQLException
    • updateDouble

      public void updateDouble​(int columnIndex, double x) throws SQLException
      Specified by:
      updateDouble in interface ResultSet
      Throws:
      SQLException
    • updateDouble

      public void updateDouble​(String columnLabel, double x) throws SQLException
      Specified by:
      updateDouble in interface ResultSet
      Throws:
      SQLException
    • updateFloat

      public void updateFloat​(int columnIndex, float x) throws SQLException
      Specified by:
      updateFloat in interface ResultSet
      Throws:
      SQLException
    • updateFloat

      public void updateFloat​(String columnLabel, float x) throws SQLException
      Specified by:
      updateFloat in interface ResultSet
      Throws:
      SQLException
    • updateInt

      public void updateInt​(int columnIndex, int x) throws SQLException
      Specified by:
      updateInt in interface ResultSet
      Throws:
      SQLException
    • updateInt

      public void updateInt​(String columnLabel, int x) throws SQLException
      Specified by:
      updateInt in interface ResultSet
      Throws:
      SQLException
    • updateLong

      public void updateLong​(int columnIndex, long x) throws SQLException
      Specified by:
      updateLong in interface ResultSet
      Throws:
      SQLException
    • updateLong

      public void updateLong​(String columnLabel, long x) throws SQLException
      Specified by:
      updateLong in interface ResultSet
      Throws:
      SQLException
    • updateNull

      public void updateNull​(int columnIndex) throws SQLException
      Specified by:
      updateNull in interface ResultSet
      Throws:
      SQLException
    • updateNull

      public void updateNull​(String columnLabel) throws SQLException
      Specified by:
      updateNull in interface ResultSet
      Throws:
      SQLException
    • updateObject

      public void updateObject​(int columnIndex, Object x) throws SQLException
      Specified by:
      updateObject in interface ResultSet
      Throws:
      SQLException
    • updateObject

      public void updateObject​(int columnIndex, Object x, int scale) throws SQLException
      Specified by:
      updateObject in interface ResultSet
      Throws:
      SQLException
    • updateObject

      public void updateObject​(String columnLabel, Object x) throws SQLException
      Specified by:
      updateObject in interface ResultSet
      Throws:
      SQLException
    • updateObject

      public void updateObject​(String columnLabel, Object x, int scale) throws SQLException
      Specified by:
      updateObject in interface ResultSet
      Throws:
      SQLException
    • updateRef

      public void updateRef​(int columnIndex, Ref x) throws SQLException
      Specified by:
      updateRef in interface ResultSet
      Throws:
      SQLException
    • updateRef

      public void updateRef​(String columnLabel, Ref x) throws SQLException
      Specified by:
      updateRef in interface ResultSet
      Throws:
      SQLException
    • updateRow

      public void updateRow() throws SQLException
      Specified by:
      updateRow in interface ResultSet
      Throws:
      SQLException
    • updateRowId

      public void updateRowId​(int columnIndex, RowId x) throws SQLException
      Specified by:
      updateRowId in interface ResultSet
      Throws:
      SQLException
    • updateRowId

      public void updateRowId​(String columnLabel, RowId x) throws SQLException
      Specified by:
      updateRowId in interface ResultSet
      Throws:
      SQLException
    • updateShort

      public void updateShort​(int columnIndex, short x) throws SQLException
      Specified by:
      updateShort in interface ResultSet
      Throws:
      SQLException
    • updateShort

      public void updateShort​(String columnLabel, short x) throws SQLException
      Specified by:
      updateShort in interface ResultSet
      Throws:
      SQLException
    • updateString

      public void updateString​(int columnIndex, String x) throws SQLException
      Specified by:
      updateString in interface ResultSet
      Throws:
      SQLException
    • updateString

      public void updateString​(String columnLabel, String x) throws SQLException
      Specified by:
      updateString in interface ResultSet
      Throws:
      SQLException
    • updateNString

      public void updateNString​(int columnIndex, String x) throws SQLException
      Specified by:
      updateNString in interface ResultSet
      Throws:
      SQLException
    • updateNString

      public void updateNString​(String columnLabel, String x) throws SQLException
      Specified by:
      updateNString in interface ResultSet
      Throws:
      SQLException
    • updateSQLXML

      public void updateSQLXML​(int columnIndex, SQLXML x) throws SQLException
      Specified by:
      updateSQLXML in interface ResultSet
      Throws:
      SQLException
    • updateSQLXML

      public void updateSQLXML​(String columnLabel, SQLXML x) throws SQLException
      Specified by:
      updateSQLXML in interface ResultSet
      Throws:
      SQLException
    • updateTime

      public void updateTime​(int columnIndex, Time x) throws SQLException
      Specified by:
      updateTime in interface ResultSet
      Throws:
      SQLException
    • updateTime

      public void updateTime​(String columnLabel, Time x) throws SQLException
      Specified by:
      updateTime in interface ResultSet
      Throws:
      SQLException
    • updateTimestamp

      public void updateTimestamp​(int columnIndex, Timestamp x) throws SQLException
      Specified by:
      updateTimestamp in interface ResultSet
      Throws:
      SQLException
    • updateTimestamp

      public void updateTimestamp​(String columnLabel, Timestamp x) throws SQLException
      Specified by:
      updateTimestamp in interface ResultSet
      Throws:
      SQLException
    • wasNull

      public boolean wasNull()
      Reports whether the last column read had a value of SQL NULL. Note that you must first call one of the getter methods on a column to try to read its value and then call the method wasNull to see if the value read was SQL NULL.
      Specified by:
      wasNull in interface ResultSet
      Returns:
      true if the last column value read was SQL NULL and false otherwise
    • addWarning

      public void addWarning​(String reason, String sqlstate)
      Adds a warning to the pile of warnings this ResultSet object has. If there were no warnings (or clearWarnings was called) this warning will be the first, otherwise this warning will get appended to the current warning.
      Parameters:
      reason - the warning message
    • newSQLInvalidColumnIndexException

      public static final SQLDataException newSQLInvalidColumnIndexException​(int colIdx)
      Small helper method that formats the "Invalid Column Index number ..." message and creates a new SQLDataException object whose SQLState is set to "22010": invalid indicator parameter value.
      Parameters:
      colIdx - the column index number
      Returns:
      a new created SQLDataException object with SQLState 22010