@Repository public class ScenarioExecutionDAOImpl extends Object implements ScenarioExecutionDAO
Constructor and Description |
---|
ScenarioExecutionDAOImpl(ScenarioExecutionsMapper scenarioExecutionsMapper)
Instantiates a new Scenario execution dao.
|
Modifier and Type | Method and Description |
---|---|
Long |
delete(String scenarioExecutionId)
Delete a scenario execution
|
Optional<ScenarioExecution> |
find(String scenarioExecutionId)
Finds execution by given execution ID.
|
List<ScenarioExecution> |
getAllFor(String workflowExecutionId)
Lists all scenario executions for a given workflow execution ID.
|
Long |
save(ScenarioExecution scenarioExecution)
Persists a new scenario execution
|
@Autowired public ScenarioExecutionDAOImpl(ScenarioExecutionsMapper scenarioExecutionsMapper)
scenarioExecutionsMapper
- the scenario executions mapperpublic Optional<ScenarioExecution> find(String scenarioExecutionId)
ScenarioExecutionDAO
find
in interface ScenarioExecutionDAO
scenarioExecutionId
- execution ID of the queried executionpublic Long save(ScenarioExecution scenarioExecution)
ScenarioExecutionDAO
save
in interface ScenarioExecutionDAO
scenarioExecution
- scenario execution that should be persistedpublic List<ScenarioExecution> getAllFor(String workflowExecutionId)
ScenarioExecutionDAO
getAllFor
in interface ScenarioExecutionDAO
workflowExecutionId
- ID of the workflow executionpublic Long delete(String scenarioExecutionId)
ScenarioExecutionDAO
delete
in interface ScenarioExecutionDAO
scenarioExecutionId
- id of the scenario executionCopyright © 2020. All rights reserved.