Package javax.sql

Interface RowSetListener

All Superinterfaces:
EventListener

public interface RowSetListener
extends EventListener
An interface used to send notification of events occurring in the context of a RowSet. To receive the notification events, an object must implement the RowSetListener interface and then register itself with the RowSet of interest using the RowSet.addRowSetListener(RowSetListener) method.
  • Method Summary

    Modifier and Type Method Description
    void cursorMoved​(RowSetEvent theEvent)
    Notifies the listener that the RowSet's cursor in theEvent.getSource has moved.
    void rowChanged​(RowSetEvent theEvent)
    Notifies the listener that one of the RowSet's rows in theEvent.getSource has changed.
    void rowSetChanged​(RowSetEvent theEvent)
    Notifies the listener that the RowSet's entire contents in theEvent.getSource have been updated (an example is the execution of a command which retrieves new data from the database).
  • Method Details

    • cursorMoved

      void cursorMoved​(RowSetEvent theEvent)
      Notifies the listener that the RowSet's cursor in theEvent.getSource has moved.
      Parameters:
      theEvent - a RowSetEvent that contains information about the RowSet involved. This information can be used to retrieve information about the change, such as the updated data values.
    • rowChanged

      void rowChanged​(RowSetEvent theEvent)
      Notifies the listener that one of the RowSet's rows in theEvent.getSource has changed.
      Parameters:
      theEvent - a RowSetEvent that contains information about the RowSet involved. This information can be used to retrieve information about the change, such as the new cursor position.
    • rowSetChanged

      void rowSetChanged​(RowSetEvent theEvent)
      Notifies the listener that the RowSet's entire contents in theEvent.getSource have been updated (an example is the execution of a command which retrieves new data from the database).
      Parameters:
      theEvent - a RowSetEvent that contains information about the RowSet involved. This information can be used to retrieve information about the change, such as the updated rows of data.