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 Summary
Fields Modifier and Type Field Description protected ResultSet
resultSet
The result set of this event, that is the result of the executed statement.-
Fields inherited from class de.aristaflow.adept2.core.eventmanager.common.AbstractEvent
creationTime, eventType, id, ID_COUNT, managerURI, sourceID, sourceType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSet
getResultSet()
Gets the result set that caused this event.-
Methods inherited from class de.aristaflow.adept2.core.eventmanager.common.AbstractEvent
getCreationTime, getEventManager, getEventType, getID, getSourceID, getSourceType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.aristaflow.adept2.model.events.Event
getCreationTime, getEventManager, getEventType, getID, getSourceID, getSourceType
-
-
-
-
Field Detail
-
resultSet
protected final ResultSet resultSet
The result set of this event, that is the result of the executed statement.
-
-
Constructor Detail
-
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 Detail
-
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 interfaceResultSetEvent
- Returns:
- The result set that caused this event.
-
-