Class ResultSetEventImpl

java.lang.Object
de.aristaflow.adept2.core.eventmanager.common.AbstractEvent
de.aristaflow.adept2.core.eventmanager.dbevents.ResultSetEventImpl
All Implemented Interfaces:
Event, ResultSetEvent

public class ResultSetEventImpl extends AbstractEvent implements ResultSetEvent
An event for result sets, that is, an event is produced and sent as soon as a specific statement yields a non-empty (or empty if desired) result set.
This event is for process step event handling, that is, the event is bound to a specific activity and terminates it.
Author:
Ulrich Kreher
  • Field Details

    • resultSet

      protected final ResultSet resultSet
      The result set of this event, that is the result of the executed statement.
  • Constructor Details

    • ResultSetEventImpl

      public ResultSetEventImpl(URI[] managerURI, String eventType, String sourceType, String sourceID, ResultSet resultSet)
      Creates a new event for the designated result set.
      Parameters:
      managerURI - The URIs of the service (event manager) creating the event.
      eventType - The type of the event.
      sourceType - The type of the source of this event.
      sourceID - The ID of the source of this event.
      resultSet - The result set of the event, that is the result of the executed statement.
  • Method Details

    • getResultSet

      public ResultSet getResultSet()
      Description copied from interface: ResultSetEvent
      Gets the result set that caused this event.
      Important: Only update this result set if you consume this event!
      Specified by:
      getResultSet in interface ResultSetEvent
      Returns:
      The result set that caused this event.