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 voidcursorMoved(RowSetEvent theEvent)Notifies the listener that theRowSet's cursor intheEvent.getSourcehas moved.voidrowChanged(RowSetEvent theEvent)Notifies the listener that one of theRowSet's rows intheEvent.getSourcehas changed.voidrowSetChanged(RowSetEvent theEvent)Notifies the listener that theRowSet's entire contents intheEvent.getSourcehave been updated (an example is the execution of a command which retrieves new data from the database).
-
Method Details
-
cursorMoved
Notifies the listener that theRowSet's cursor intheEvent.getSourcehas moved.- Parameters:
theEvent- aRowSetEventthat contains information about theRowSetinvolved. This information can be used to retrieve information about the change, such as the updated data values.
-
rowChanged
Notifies the listener that one of theRowSet's rows intheEvent.getSourcehas changed.- Parameters:
theEvent- aRowSetEventthat contains information about theRowSetinvolved. This information can be used to retrieve information about the change, such as the new cursor position.
-
rowSetChanged
Notifies the listener that theRowSet's entire contents intheEvent.getSourcehave been updated (an example is the execution of a command which retrieves new data from the database).- Parameters:
theEvent- aRowSetEventthat contains information about theRowSetinvolved. This information can be used to retrieve information about the change, such as the updated rows of data.
-