public class JdbcSearchableStepExecutionDao extends org.springframework.batch.core.repository.dao.JdbcStepExecutionDao implements SearchableStepExecutionDao
Constructor and Description |
---|
JdbcSearchableStepExecutionDao() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
int |
countStepExecutions(String jobName,
String stepName)
Count all the step executions for a given step name pattern.
|
Collection<org.springframework.batch.core.StepExecution> |
findStepExecutions(String jobName,
String stepName,
int start,
int count)
Find all the step executions for a given step name, or step name pattern
(with wildcards specified as '*') sorted in descending order of id.
|
Collection<String> |
findStepNamesForJobExecution(String jobName,
String excludesPattern)
Find all the names of steps that have been executed as part of this job.
|
void |
setDataSource(DataSource dataSource) |
addStepExecutions, getStepExecution, saveStepExecution, saveStepExecutions, setExitMessageLength, setStepExecutionIncrementer, updateStepExecution
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix
public void setDataSource(DataSource dataSource)
dataSource
- the dataSource to setpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.batch.core.repository.dao.JdbcStepExecutionDao
Exception
JdbcJobExecutionDao.afterPropertiesSet()
public Collection<String> findStepNamesForJobExecution(String jobName, String excludesPattern)
SearchableStepExecutionDao
findStepNamesForJobExecution
in interface SearchableStepExecutionDao
jobName
- the name of the job to search forexcludesPattern
- a pattern for step names to excludepublic Collection<org.springframework.batch.core.StepExecution> findStepExecutions(String jobName, String stepName, int start, int count)
SearchableStepExecutionDao
findStepExecutions
in interface SearchableStepExecutionDao
jobName
- the job name or patternstepName
- the step name or patternstart
- the start index of the step executions to returncount
- the maximum number of step executions to returnpublic int countStepExecutions(String jobName, String stepName)
SearchableStepExecutionDao
countStepExecutions
in interface SearchableStepExecutionDao
jobName
- the job name patternstepName
- the step name pattern.Copyright © 2015. All rights reserved.