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.
|
int |
countStepExecutionsForJobExecution(long jobExecutionId)
Count all the step executions for a given job execution.
|
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, getLastStepExecution, getStepExecution, saveStepExecution, saveStepExecutions, setExitMessageLength, setStepExecutionIncrementer, updateStepExecutiongetClobTypeToUse, 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.JdbcStepExecutionDaoExceptionJdbcJobExecutionDao.afterPropertiesSet()public Collection<String> findStepNamesForJobExecution(String jobName, String excludesPattern)
SearchableStepExecutionDaofindStepNamesForJobExecution in interface SearchableStepExecutionDaojobName - 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)
SearchableStepExecutionDaofindStepExecutions in interface SearchableStepExecutionDaojobName - 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)
SearchableStepExecutionDaocountStepExecutions in interface SearchableStepExecutionDaojobName - the job name patternstepName - the step name pattern.public int countStepExecutionsForJobExecution(long jobExecutionId)
SearchableStepExecutionDaocountStepExecutionsForJobExecution in interface SearchableStepExecutionDaojobExecutionId - the job execution to retrieve count from.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.