Class ReadOnlyResultSet

All Implemented Interfaces:
AutoCloseable, ResultSet, Wrapper
Direct Known Subclasses:
ResultSetBase

public abstract class ReadOnlyResultSet extends ObjectResultSet
Implements all methods that change the ResultSet in any way as methods that yield an UnsupportedFeatureException.
Author:
Thomas Hallgren
  • Constructor Details

    • ReadOnlyResultSet

      public ReadOnlyResultSet()
  • Method Details

    • getConcurrency

      public int getConcurrency() throws SQLException
      Throws:
      SQLException
    • cancelRowUpdates

      public void cancelRowUpdates() throws SQLException
      This feature is not supported on a ReadOnlyResultSet.
      Throws:
      SQLException - indicating that this feature is not supported.
    • deleteRow

      public void deleteRow() throws SQLException
      This feature is not supported on a ReadOnlyResultSet.
      Throws:
      SQLException - indicating that this feature is not supported.
    • insertRow

      public void insertRow() throws SQLException
      This feature is not supported on a ReadOnlyResultSet.
      Throws:
      SQLException - indicating that this feature is not supported.
    • moveToCurrentRow

      public void moveToCurrentRow() throws SQLException
      This is a no-op since the moveToInsertRow() method is unsupported.
      Throws:
      SQLException
    • moveToInsertRow

      public void moveToInsertRow() throws SQLException
      This feature is not supported on a ReadOnlyResultSet.
      Throws:
      SQLException - indicating that this feature is not supported.
    • updateRow

      public void updateRow() throws SQLException
      This feature is not supported on a ReadOnlyResultSet.
      Throws:
      SQLException - indicating that this feature is not supported.
    • rowDeleted

      public boolean rowDeleted() throws SQLException
      Always returns false.
      Throws:
      SQLException
    • rowInserted

      public boolean rowInserted() throws SQLException
      Always returns false.
      Throws:
      SQLException
    • rowUpdated

      public boolean rowUpdated() throws SQLException
      Always returns false.
      Throws:
      SQLException
    • updateObject

      public void updateObject(int columnIndex, Object x) throws SQLException
      This feature is not supported on a ReadOnlyResultSet.
      Throws:
      SQLException - indicating that this feature is not supported.
    • updateObject

      public void updateObject(int columnIndex, Object x, int scale) throws SQLException
      This feature is not supported on a ReadOnlyResultSet.
      Throws:
      SQLException - indicating that this feature is not supported.