public class JdbcSearchableJobExecutionDao extends org.springframework.batch.core.repository.dao.JdbcJobExecutionDao implements SearchableJobExecutionDao
| Modifier and Type | Class and Description |
|---|---|
protected class |
JdbcSearchableJobExecutionDao.JobExecutionRowMapper
Re-usable mapper for
JobExecution instances. |
protected class |
JdbcSearchableJobExecutionDao.JobExecutionStepCountRowMapper
Re-usable mapper for
JobExecutionWithStepCount instances. |
| Constructor and Description |
|---|
JdbcSearchableJobExecutionDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
int |
countJobExecutions() |
int |
countJobExecutions(String jobName) |
List<org.springframework.batch.core.JobExecution> |
getJobExecutions(int start,
int count)
Get the
JobExecutions in reverse order of creation
(so normally of execution). |
List<org.springframework.batch.core.JobExecution> |
getJobExecutions(String jobName,
int start,
int count)
Get the
JobExecutions for a specific job name in
reverse order of creation (so normally of execution). |
List<JobExecutionWithStepCount> |
getJobExecutionsWithStepCount(int start,
int count)
Get the
JobExecutions in reverse order of creation
(so normally of execution) without StepExecution. |
List<JobExecutionWithStepCount> |
getJobExecutionsWithStepCount(String jobName,
int start,
int count)
Get the
JobExecutions for a specific job name in
reverse order of creation (so normally of execution). |
Collection<org.springframework.batch.core.JobExecution> |
getRunningJobExecutions()
Find all the running executions (status less than STOPPING).
|
void |
saveJobExecution(org.springframework.batch.core.JobExecution jobExecution) |
void |
setDataSource(DataSource dataSource) |
void |
synchronizeStatus(org.springframework.batch.core.JobExecution jobExecution) |
void |
updateJobExecution(org.springframework.batch.core.JobExecution jobExecution) |
findJobExecutions, findRunningJobExecutions, getJobExecution, getJobParameters, getLastJobExecution, setExitMessageLength, setJobExecutionIncrementergetClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefixpublic void setDataSource(DataSource dataSource)
dataSource - the dataSource to setpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDaoExceptionJdbcJobExecutionDao.afterPropertiesSet()public int countJobExecutions()
countJobExecutions in interface SearchableJobExecutionDaoJobExecution instancesSearchableJobExecutionDao.countJobExecutions()public int countJobExecutions(String jobName)
countJobExecutions in interface SearchableJobExecutionDaojobName - the name of a jobJobExecutions belonging to
this jobSearchableJobExecutionDao.countJobExecutions(String)public Collection<org.springframework.batch.core.JobExecution> getRunningJobExecutions()
SearchableJobExecutionDaogetRunningJobExecutions in interface SearchableJobExecutionDaoJobExecution instances that are currently runningSearchableJobExecutionDao.getRunningJobExecutions()public List<org.springframework.batch.core.JobExecution> getJobExecutions(String jobName, int start, int count)
SearchableJobExecutionDaoJobExecutions for a specific job name in
reverse order of creation (so normally of execution).getJobExecutions in interface SearchableJobExecutionDaojobName - the name of the jobstart - the start index of the instancescount - the maximum number of instances to returnJobExecution instances requestedSearchableJobExecutionDao.getJobExecutions(String, int, int)public List<JobExecutionWithStepCount> getJobExecutionsWithStepCount(String jobName, int start, int count)
SearchableJobExecutionDaoJobExecutions for a specific job name in
reverse order of creation (so normally of execution).getJobExecutionsWithStepCount in interface SearchableJobExecutionDaojobName - the name of the jobstart - the start index of the instancescount - the maximum number of instances to returnJobExecutionWithStepCount instances requestedSearchableJobExecutionDao.getJobExecutionsWithStepCount(String, int, int)public List<org.springframework.batch.core.JobExecution> getJobExecutions(int start, int count)
SearchableJobExecutionDaoJobExecutions in reverse order of creation
(so normally of execution).getJobExecutions in interface SearchableJobExecutionDaostart - the start index of the instancescount - the maximum number of instances to returnJobExecution instances requestedSearchableJobExecutionDao.getJobExecutions(int, int)public List<JobExecutionWithStepCount> getJobExecutionsWithStepCount(int start, int count)
SearchableJobExecutionDaoJobExecutions in reverse order of creation
(so normally of execution) without StepExecution.getJobExecutionsWithStepCount in interface SearchableJobExecutionDaostart - the start index of the instancescount - the maximum number of instances to returnJobExecutionWithStepCount instances requestedpublic void saveJobExecution(org.springframework.batch.core.JobExecution jobExecution)
saveJobExecution in interface org.springframework.batch.core.repository.dao.JobExecutionDaosaveJobExecution in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDaopublic void synchronizeStatus(org.springframework.batch.core.JobExecution jobExecution)
synchronizeStatus in interface org.springframework.batch.core.repository.dao.JobExecutionDaosynchronizeStatus in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDaopublic void updateJobExecution(org.springframework.batch.core.JobExecution jobExecution)
updateJobExecution in interface org.springframework.batch.core.repository.dao.JobExecutionDaoupdateJobExecution in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDaoCopyright © 2019 Pivotal Software, Inc.. All rights reserved.