Class JDBC4UpdatableResultSet

All Implemented Interfaces:
ResultSetInternalMethods, AutoCloseable, ResultSet, Wrapper
Direct Known Subclasses:
JDBC42UpdatableResultSet

public class JDBC4UpdatableResultSet extends UpdatableResultSet
  • Constructor Details

  • Method Details

    • updateAsciiStream

      public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException
      Throws:
      SQLException
    • updateBlob

      public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException
      Throws:
      SQLException
    • updateBlob

      public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream(int columnIndex, Reader x) throws SQLException
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException
      Throws:
      SQLException
    • updateClob

      public void updateClob(int columnIndex, Reader reader) throws SQLException
      Throws:
      SQLException
    • updateClob

      public void updateClob(int columnIndex, Reader reader, long length) throws SQLException
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException
      Throws:
      SQLException
    • updateNClob

      public void updateNClob(int columnIndex, Reader reader) throws SQLException
      Throws:
      SQLException
    • updateNClob

      public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException
      Throws:
      SQLException
    • updateSQLXML

      public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException
      Throws:
      SQLException
    • updateRowId

      public void updateRowId(int columnIndex, RowId x) throws SQLException
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException
      Throws:
      SQLException
    • updateAsciiStream

      public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException
      Throws:
      SQLException
    • updateBinaryStream

      public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException
      Throws:
      SQLException
    • updateBlob

      public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException
      Throws:
      SQLException
    • updateBlob

      public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException
      Throws:
      SQLException
    • updateCharacterStream

      public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException
      Throws:
      SQLException
    • updateClob

      public void updateClob(String columnLabel, Reader reader) throws SQLException
      Throws:
      SQLException
    • updateClob

      public void updateClob(String columnLabel, Reader reader, long length) throws SQLException
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException
      Throws:
      SQLException
    • updateNClob

      public void updateNClob(String columnLabel, Reader reader) throws SQLException
      Throws:
      SQLException
    • updateNClob

      public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException
      Throws:
      SQLException
    • updateSQLXML

      public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException
      Throws:
      SQLException
    • updateNCharacterStream

      public void updateNCharacterStream(int columnIndex, Reader x, int length) throws SQLException
      JDBC 4.0 Update a column with a character stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      x - the new column value
      length - the length of the stream
      Throws:
      SQLException - if a database-access error occurs
    • updateNCharacterStream

      public void updateNCharacterStream(String columnName, Reader reader, int length) throws SQLException
      JDBC 4.0 Update a column with a character stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.
      Parameters:
      columnName - the name of the column
      reader - the new column value
      length - of the stream
      Throws:
      SQLException - if a database-access error occurs
    • updateNClob

      public void updateNClob(int columnIndex, NClob nClob) throws SQLException
      Throws:
      SQLException
      See Also:
      • invalid reference
        ResultSet#updateNClob(int, NClob)
    • updateNClob

      public void updateNClob(String columnName, NClob nClob) throws SQLException
      Throws:
      SQLException
      See Also:
      • invalid reference
        ResultSet#updateClob(int, Clob)
    • updateNString

      public void updateNString(int columnIndex, String x) throws SQLException
      JDBC 4.0 Update a column with NATIONAL CHARACTER. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      x - the new column value
      Throws:
      SQLException - if a database-access error occurs
    • updateNString

      public void updateNString(String columnName, String x) throws SQLException
      JDBC 4.0 Update a column with NATIONAL CHARACTER. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.
      Parameters:
      columnName - the name of the column
      x - the new column value
      Throws:
      SQLException - if a database-access error occurs
    • getHoldability

      public int getHoldability() throws SQLException
      Throws:
      SQLException
    • getNativeNClob

      protected NClob getNativeNClob(int columnIndex) throws SQLException
      JDBC 4.0 Get a NCLOB column.
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      Returns:
      an object representing a NCLOB
      Throws:
      SQLException - if an error occurs
    • getNCharacterStream

      public Reader getNCharacterStream(int columnIndex) throws SQLException
      JDBC 4.0

      Get the value of a column in the current row as a java.io.Reader.

      Parameters:
      columnIndex - the column to get the value from
      Returns:
      the value in the column as a java.io.Reader.
      Throws:
      SQLException - if an error occurs
    • getNCharacterStream

      public Reader getNCharacterStream(String columnName) throws SQLException
      JDBC 4.0

      Get the value of a column in the current row as a java.io.Reader.

      Parameters:
      columnName - the column name to retrieve the value from
      Returns:
      the value as a java.io.Reader
      Throws:
      SQLException - if an error occurs
    • getNClob

      public NClob getNClob(int columnIndex) throws SQLException
      JDBC 4.0 Get a NCLOB column.
      Parameters:
      i - the first column is 1, the second is 2, ...
      Returns:
      an object representing a NCLOB
      Throws:
      SQLException - if an error occurs
    • getNClob

      public NClob getNClob(String columnName) throws SQLException
      JDBC 4.0 Get a NCLOB column.
      Parameters:
      colName - the column name
      Returns:
      an object representing a NCLOB
      Throws:
      SQLException - if an error occurs
    • getNString

      public String getNString(int columnIndex) throws SQLException
      JDBC 4.0 Get the value of a column in the current row as a Java String
      Parameters:
      columnIndex - the first column is 1, the second is 2...
      Returns:
      the column value, null for SQL NULL
      Throws:
      SQLException - if a database access error occurs
    • getNString

      public String getNString(String columnName) throws SQLException
      JDBC 4.0 The following routines simply convert the columnName into a columnIndex and then call the appropriate routine above.
      Parameters:
      columnName - is the SQL name of the column
      Returns:
      the column value
      Throws:
      SQLException - if a database access error occurs
    • getRowId

      public RowId getRowId(int columnIndex) throws SQLException
      Throws:
      SQLException
    • getRowId

      public RowId getRowId(String columnLabel) throws SQLException
      Throws:
      SQLException
    • getSQLXML

      public SQLXML getSQLXML(int columnIndex) throws SQLException
      Throws:
      SQLException
    • getSQLXML

      public SQLXML getSQLXML(String columnLabel) throws SQLException
      Throws:
      SQLException
    • isClosed

      public boolean isClosed() throws SQLException
      Description copied from class: ResultSetImpl
      Returns true if this ResultSet is closed.
      Specified by:
      isClosed in interface ResultSet
      Specified by:
      isClosed in interface ResultSetInternalMethods
      Overrides:
      isClosed in class ResultSetImpl
      Throws:
      SQLException
    • isWrapperFor

      public boolean isWrapperFor(Class<?> iface) throws SQLException
      Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. Returns false otherwise. If this implements the interface then return true, else if this is a wrapper then return the result of recursively calling isWrapperFor on the wrapped object. If this does not implement the interface and is not a wrapper, return false. This method should be implemented as a low-cost operation compared to unwrap so that callers can use this method to avoid expensive unwrap calls that may fail. If this method returns true then calling unwrap with the same argument should succeed.
      Parameters:
      interfaces - a Class defining an interface.
      Returns:
      true if this implements the interface or directly or indirectly wraps an object that does.
      Throws:
      SQLException - if an error occurs while determining whether this is a wrapper for an object with the given interface.
      Since:
      1.6
    • unwrap

      public <T> T unwrap(Class<T> iface) throws SQLException
      Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. The result may be either the object found to implement the interface or a proxy for that object. If the receiver implements the interface then that is the object. If the receiver is a wrapper and the wrapped object implements the interface then that is the object. Otherwise the object is the result of calling unwrap recursively on the wrapped object. If the receiver is not a wrapper and does not implement the interface, then an SQLException is thrown.
      Parameters:
      iface - A Class defining an interface that the result must implement.
      Returns:
      an object that implements the interface. May be a proxy for the actual implementing object.
      Throws:
      SQLException - If no object found that implements the interface
      Since:
      1.6