public class JdbcTaskBatchDao extends Object implements TaskBatchDao
TaskBatchDao. Intended to be used in
conjunction with the JDBC based
TaskRepository| Constructor and Description |
|---|
JdbcTaskBatchDao(DataSource dataSource)
Intializes the JdbcTaskBatchDao and defaults the table prefix to
TaskProperties.DEFAULT_TABLE_PREFIX. |
JdbcTaskBatchDao(DataSource dataSource,
String tablePrefix)
Intializes the JdbcTaskBatchDao.
|
| Modifier and Type | Method and Description |
|---|---|
void |
saveRelationship(TaskExecution taskExecution,
org.springframework.batch.core.JobExecution jobExecution)
Saves the relationship between a task execution and a job execution.
|
public JdbcTaskBatchDao(DataSource dataSource, String tablePrefix)
dataSource - DataSource where the task batch table resides.tablePrefix - the table prefix to use for this dao.public JdbcTaskBatchDao(DataSource dataSource)
TaskProperties.DEFAULT_TABLE_PREFIX.dataSource - DataSource where the task batch table resides.public void saveRelationship(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution)
TaskBatchDaosaveRelationship in interface TaskBatchDaotaskExecution - task executionjobExecution - job executionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.