Class JdbcTaskBatchDao
java.lang.Object
org.springframework.cloud.task.batch.listener.support.JdbcTaskBatchDao
- All Implemented Interfaces:
TaskBatchDao
JDBC based implementation of the
TaskBatchDao
. Intended to be used in
conjunction with the JDBC based
TaskRepository
- Author:
- Michael Minella, Glenn Renfro
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcTaskBatchDao
(DataSource dataSource) Initializes the JdbcTaskBatchDao and defaults the table prefix toTaskProperties.DEFAULT_TABLE_PREFIX
.JdbcTaskBatchDao
(DataSource dataSource, String tablePrefix) Initializes the JdbcTaskBatchDao. -
Method Summary
Modifier and TypeMethodDescriptionvoid
saveRelationship
(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution) Saves the relationship between a task execution and a job execution.
-
Constructor Details
-
JdbcTaskBatchDao
Initializes the JdbcTaskBatchDao.- Parameters:
dataSource
-DataSource
where the task batch table resides.tablePrefix
- the table prefix to use for this dao.
-
JdbcTaskBatchDao
Initializes the JdbcTaskBatchDao and defaults the table prefix toTaskProperties.DEFAULT_TABLE_PREFIX
.- Parameters:
dataSource
-DataSource
where the task batch table resides.
-
-
Method Details
-
saveRelationship
public void saveRelationship(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution) Description copied from interface:TaskBatchDao
Saves the relationship between a task execution and a job execution.- Specified by:
saveRelationship
in interfaceTaskBatchDao
- Parameters:
taskExecution
- task executionjobExecution
- job execution
-