Class JdbcDataflowJobExecutionDao
java.lang.Object
org.springframework.cloud.dataflow.server.repository.JdbcDataflowJobExecutionDao
- All Implemented Interfaces:
DataflowJobExecutionDao
Stores job execution information to a JDBC DataSource. Mirrors the
JdbcJobExecutionDao
but contains Spring Cloud Data Flow specific operations. This functionality might
be migrated to Spring Batch itself eventually.- Author:
- Gunnar Hillert, Corneil du Plessis
-
Constructor Summary
ConstructorDescriptionJdbcDataflowJobExecutionDao
(DataSource dataSource, String tablePrefix) Initializes the JdbcDataflowJobExecutionDao. -
Method Summary
Modifier and TypeMethodDescriptionint
deleteBatchJobExecutionByJobExecutionIds
(Set<Long> jobExecutionIds) Delete the batch job execution records from the persistence store for the provided job execution ids.int
deleteBatchJobExecutionContextByJobExecutionIds
(Set<Long> jobExecutionIds) Delete the batch job execution context records from the persistence store for the provided job execution ids.int
deleteBatchJobExecutionParamsByJobExecutionIds
(Set<Long> jobExecutionIds) Delete the batch job execution parameter records from the persistence store for the provided job execution ids.int
deleteBatchStepExecutionContextByStepExecutionIds
(Set<Long> stepExecutionIds) Delete the batch step execution context records from the persistence store for the provided step execution ids.int
deleteBatchStepExecutionsByJobExecutionIds
(Set<Long> jobExecutionIds) int
Will delete any unused job instance records from the persistence store.findStepExecutionIds
(Set<Long> jobExecutionIds) Retrieve the step execution ids for 1 or more job execution ids.
-
Constructor Details
-
JdbcDataflowJobExecutionDao
Initializes the JdbcDataflowJobExecutionDao.- Parameters:
dataSource
- used by the dao to execute queries and update the tables. Must not be null.tablePrefix
- Must not be null or empty.
-
-
Method Details
-
deleteBatchStepExecutionContextByStepExecutionIds
Description copied from interface:DataflowJobExecutionDao
Delete the batch step execution context records from the persistence store for the provided step execution ids.- Specified by:
deleteBatchStepExecutionContextByStepExecutionIds
in interfaceDataflowJobExecutionDao
- Parameters:
stepExecutionIds
- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchStepExecutionsByJobExecutionIds
- Specified by:
deleteBatchStepExecutionsByJobExecutionIds
in interfaceDataflowJobExecutionDao
- Parameters:
jobExecutionIds
- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchJobExecutionContextByJobExecutionIds
Description copied from interface:DataflowJobExecutionDao
Delete the batch job execution context records from the persistence store for the provided job execution ids.- Specified by:
deleteBatchJobExecutionContextByJobExecutionIds
in interfaceDataflowJobExecutionDao
- Parameters:
jobExecutionIds
- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchJobExecutionParamsByJobExecutionIds
Description copied from interface:DataflowJobExecutionDao
Delete the batch job execution parameter records from the persistence store for the provided job execution ids.- Specified by:
deleteBatchJobExecutionParamsByJobExecutionIds
in interfaceDataflowJobExecutionDao
- Parameters:
jobExecutionIds
- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchJobExecutionByJobExecutionIds
Description copied from interface:DataflowJobExecutionDao
Delete the batch job execution records from the persistence store for the provided job execution ids.- Specified by:
deleteBatchJobExecutionByJobExecutionIds
in interfaceDataflowJobExecutionDao
- Parameters:
jobExecutionIds
- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteUnusedBatchJobInstances
public int deleteUnusedBatchJobInstances()Description copied from interface:DataflowJobExecutionDao
Will delete any unused job instance records from the persistence store.- Specified by:
deleteUnusedBatchJobInstances
in interfaceDataflowJobExecutionDao
- Returns:
- The number of affected records
-
findStepExecutionIds
Description copied from interface:DataflowJobExecutionDao
Retrieve the step execution ids for 1 or more job execution ids.- Specified by:
findStepExecutionIds
in interfaceDataflowJobExecutionDao
- Parameters:
jobExecutionIds
- Must contain at least 1 value- Returns:
- If no step execution ids are found, an empty collection is returned
-