Interface ResultSetEvent

  • All Superinterfaces:
    Event
    All Known Implementing Classes:
    ResultSetEventImpl

    public interface ResultSetEvent
    extends Event
    An event that is produced to indicate the presence of specific data in a JDBC-database.
    These events are usually not serialisable.

    To allow for event handling chains for the very same event, some issues need to be respected when handling a ResultSetEvent:

    • The result set is positioned at the first entry before it is offered to an event handler.
    • The result set must not be updated unless the event handler is consuming and indicates this consumption when handling the event. However, check for whether the result set is updatable before via ResultSet.getConcurrency().
    • An event handler must not close the result set.
    • The result set can expected to commit automatically when updated.
    • Non-exclusive handler of a result set event may retrieve a result set having the data cached as copy of the original data.
    Author:
    Ulrich Kreher
    • Method Detail

      • getResultSet

        ResultSet getResultSet()
        Gets the result set that caused this event.
        Important: Only update this result set if you consume this event!
        Returns:
        The result set that caused this event.