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
ConstructorsConstructorDescriptionJdbcDataflowJobExecutionDao(DataSource dataSource, String tablePrefix) Initializes the JdbcDataflowJobExecutionDao. -
Method Summary
Modifier and TypeMethodDescriptionintdeleteBatchJobExecutionByJobExecutionIds(Set<Long> jobExecutionIds) Delete the batch job execution records from the persistence store for the provided job execution ids.intdeleteBatchJobExecutionContextByJobExecutionIds(Set<Long> jobExecutionIds) Delete the batch job execution context records from the persistence store for the provided job execution ids.intdeleteBatchJobExecutionParamsByJobExecutionIds(Set<Long> jobExecutionIds) Delete the batch job execution parameter records from the persistence store for the provided job execution ids.intdeleteBatchStepExecutionContextByStepExecutionIds(Set<Long> stepExecutionIds) Delete the batch step execution context records from the persistence store for the provided step execution ids.intdeleteBatchStepExecutionsByJobExecutionIds(Set<Long> jobExecutionIds) intWill 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:DataflowJobExecutionDaoDelete the batch step execution context records from the persistence store for the provided step execution ids.- Specified by:
deleteBatchStepExecutionContextByStepExecutionIdsin interfaceDataflowJobExecutionDao- Parameters:
stepExecutionIds- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchStepExecutionsByJobExecutionIds
- Specified by:
deleteBatchStepExecutionsByJobExecutionIdsin interfaceDataflowJobExecutionDao- Parameters:
jobExecutionIds- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchJobExecutionContextByJobExecutionIds
Description copied from interface:DataflowJobExecutionDaoDelete the batch job execution context records from the persistence store for the provided job execution ids.- Specified by:
deleteBatchJobExecutionContextByJobExecutionIdsin interfaceDataflowJobExecutionDao- Parameters:
jobExecutionIds- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchJobExecutionParamsByJobExecutionIds
Description copied from interface:DataflowJobExecutionDaoDelete the batch job execution parameter records from the persistence store for the provided job execution ids.- Specified by:
deleteBatchJobExecutionParamsByJobExecutionIdsin interfaceDataflowJobExecutionDao- Parameters:
jobExecutionIds- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteBatchJobExecutionByJobExecutionIds
Description copied from interface:DataflowJobExecutionDaoDelete the batch job execution records from the persistence store for the provided job execution ids.- Specified by:
deleteBatchJobExecutionByJobExecutionIdsin interfaceDataflowJobExecutionDao- Parameters:
jobExecutionIds- Must contain at least 1 value- Returns:
- The number of affected records
-
deleteUnusedBatchJobInstances
public int deleteUnusedBatchJobInstances()Description copied from interface:DataflowJobExecutionDaoWill delete any unused job instance records from the persistence store.- Specified by:
deleteUnusedBatchJobInstancesin interfaceDataflowJobExecutionDao- Returns:
- The number of affected records
-
findStepExecutionIds
Description copied from interface:DataflowJobExecutionDaoRetrieve the step execution ids for 1 or more job execution ids.- Specified by:
findStepExecutionIdsin interfaceDataflowJobExecutionDao- Parameters:
jobExecutionIds- Must contain at least 1 value- Returns:
- If no step execution ids are found, an empty collection is returned
-