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 aRowSet. To receive the notification events, an object must implement theRowSetListenerinterface and then register itself with theRowSetof interest using theRowSet.addRowSetListener(RowSetListener)method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
cursorMoved
void cursorMoved(RowSetEvent theEvent)
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
void rowChanged(RowSetEvent theEvent)
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
void rowSetChanged(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).- 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.
-
-