Stay organized with collections
Save and categorize content based on your preferences.
RowSetListener
public
interface
RowSetListener
implements
EventListener
An interface that must be implemented by a
component that wants to be notified when a significant
event happens in the life of a RowSet
object.
A component becomes a listener by being registered with a
RowSet
object via the method RowSet.addRowSetListener
.
How a registered component implements this interface determines what it does
when it is notified of an event.
Summary
Public methods |
abstract
void
|
cursorMoved(RowSetEvent event)
Notifies registered listeners that a RowSet object's
cursor has moved.
|
abstract
void
|
rowChanged(RowSetEvent event)
Notifies registered listeners that a RowSet object
has had a change in one of its rows.
|
abstract
void
|
rowSetChanged(RowSetEvent event)
Notifies registered listeners that a RowSet object
in the given RowSetEvent object has changed its entire contents.
|
Public methods
cursorMoved
public abstract void cursorMoved (RowSetEvent event)
Notifies registered listeners that a RowSet
object's
cursor has moved.
The source of the event can be retrieved with the method
event.getSource
.
Parameters |
event |
RowSetEvent : a RowSetEvent object that contains
the RowSet object that is the source of the event |
rowChanged
public abstract void rowChanged (RowSetEvent event)
Notifies registered listeners that a RowSet
object
has had a change in one of its rows.
The source of the event can be retrieved with the method
event.getSource
.
Parameters |
event |
RowSetEvent : a RowSetEvent object that contains
the RowSet object that is the source of the event |
rowSetChanged
public abstract void rowSetChanged (RowSetEvent event)
Notifies registered listeners that a RowSet
object
in the given RowSetEvent
object has changed its entire contents.
The source of the event can be retrieved with the method
event.getSource
.
Parameters |
event |
RowSetEvent : a RowSetEvent object that contains
the RowSet object that is the source of the event |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# RowSetListener\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nRowSetListener\n==============\n\n\n`\npublic\n\n\ninterface\nRowSetListener\n`\n\n\n`\n\n\nimplements\n\n`[EventListener](/reference/java/util/EventListener)`\n\n\n`\n\n|--------------------------|\n| javax.sql.RowSetListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface that must be implemented by a\ncomponent that wants to be notified when a significant\nevent happens in the life of a `RowSet` object.\nA component becomes a listener by being registered with a\n`RowSet` object via the method `RowSet.addRowSetListener`.\nHow a registered component implements this interface determines what it does\nwhen it is notified of an event.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[cursorMoved](/reference/javax/sql/RowSetListener#cursorMoved(javax.sql.RowSetEvent))`(`[RowSetEvent](/reference/javax/sql/RowSetEvent)` event) ` Notifies registered listeners that a `RowSet` object's cursor has moved. |\n| ` abstract void` | ` `[rowChanged](/reference/javax/sql/RowSetListener#rowChanged(javax.sql.RowSetEvent))`(`[RowSetEvent](/reference/javax/sql/RowSetEvent)` event) ` Notifies registered listeners that a `RowSet` object has had a change in one of its rows. |\n| ` abstract void` | ` `[rowSetChanged](/reference/javax/sql/RowSetListener#rowSetChanged(javax.sql.RowSetEvent))`(`[RowSetEvent](/reference/javax/sql/RowSetEvent)` event) ` Notifies registered listeners that a `RowSet` object in the given `RowSetEvent` object has changed its entire contents. |\n\nPublic methods\n--------------\n\n### cursorMoved\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void cursorMoved (RowSetEvent event)\n```\n\nNotifies registered listeners that a `RowSet` object's\ncursor has moved.\n\n\nThe source of the event can be retrieved with the method\n`event.getSource`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------|\n| `event` | `RowSetEvent`: a `RowSetEvent` object that contains the `RowSet` object that is the source of the event \u003cbr /\u003e |\n\n### rowChanged\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void rowChanged (RowSetEvent event)\n```\n\nNotifies registered listeners that a `RowSet` object\nhas had a change in one of its rows.\n\n\nThe source of the event can be retrieved with the method\n`event.getSource`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------|\n| `event` | `RowSetEvent`: a `RowSetEvent` object that contains the `RowSet` object that is the source of the event \u003cbr /\u003e |\n\n### rowSetChanged\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void rowSetChanged (RowSetEvent event)\n```\n\nNotifies registered listeners that a `RowSet` object\nin the given `RowSetEvent` object has changed its entire contents.\n\n\nThe source of the event can be retrieved with the method\n`event.getSource`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------|\n| `event` | `RowSetEvent`: a `RowSetEvent` object that contains the `RowSet` object that is the source of the event \u003cbr /\u003e |"]]