Uses of Class
org.springframework.batch.core.JobInstance
Packages that use JobInstance
Package
Description
Core domain context for Spring Batch covering jobs, steps, configuration and execution
abstractions.
Interfaces and related classes to support meta data browsing.
Specific implementations of explorer concerns.
Interfaces and generic implementations of repository concerns.
Specific implementations of dao concerns.
Specific implementations of repository concerns.
Utility classes for batch job/step testing.
-
Uses of JobInstance in org.springframework.batch.core
Methods in org.springframework.batch.core that return JobInstanceMethods in org.springframework.batch.core with parameters of type JobInstanceModifier and TypeMethodDescriptionvoid
JobExecution.setJobInstance
(JobInstance jobInstance) Set theJobInstance
used by theJobExecution
.Constructors in org.springframework.batch.core with parameters of type JobInstanceModifierConstructorDescriptionJobExecution
(JobInstance job, Long id, JobParameters jobParameters) Because a JobExecution is not valid unless the job is set, this constructor is the only valid one from a modeling point of view.JobExecution
(JobInstance job, JobParameters jobParameters) Constructor for transient (unsaved) instances. -
Uses of JobInstance in org.springframework.batch.core.explore
Methods in org.springframework.batch.core.explore that return JobInstanceModifier and TypeMethodDescriptionJobExplorer.getJobInstance
(Long instanceId) default JobInstance
JobExplorer.getLastJobInstance
(String jobName) Find the last job instance, by ID, for the given job.Methods in org.springframework.batch.core.explore that return types with arguments of type JobInstanceModifier and TypeMethodDescriptionJobExplorer.findJobInstancesByJobName
(String jobName, int start, int count) FetchJobInstance
values in descending order of creation (and, therefore, usually of first execution) with a 'like' or wildcard criteria.JobExplorer.getJobInstances
(String jobName, int start, int count) FetchJobInstance
values in descending order of creation (and, therefore, usually, of first execution).Methods in org.springframework.batch.core.explore with parameters of type JobInstanceModifier and TypeMethodDescriptionJobExplorer.getJobExecutions
(JobInstance jobInstance) Retrieve job executions by their job instance.default JobExecution
JobExplorer.getLastJobExecution
(JobInstance jobInstance) Find the lastJobExecution
that has been created for a givenJobInstance
. -
Uses of JobInstance in org.springframework.batch.core.explore.support
Methods in org.springframework.batch.core.explore.support that return JobInstanceModifier and TypeMethodDescriptionSimpleJobExplorer.getJobInstance
(Long instanceId) SimpleJobExplorer.getLastJobInstance
(String jobName) Methods in org.springframework.batch.core.explore.support that return types with arguments of type JobInstanceModifier and TypeMethodDescriptionSimpleJobExplorer.findJobInstancesByJobName
(String jobName, int start, int count) SimpleJobExplorer.getJobInstances
(String jobName, int start, int count) Methods in org.springframework.batch.core.explore.support with parameters of type JobInstanceModifier and TypeMethodDescriptionSimpleJobExplorer.getJobExecutions
(JobInstance jobInstance) SimpleJobExplorer.getLastJobExecution
(JobInstance jobInstance) -
Uses of JobInstance in org.springframework.batch.core.repository
Methods in org.springframework.batch.core.repository that return JobInstanceModifier and TypeMethodDescriptionJobRepository.createJobInstance
(String jobName, JobParameters jobParameters) Create a newJobInstance
with the name and job parameters provided.Methods in org.springframework.batch.core.repository that return types with arguments of type JobInstanceModifier and TypeMethodDescriptiondefault List<JobInstance>
JobRepository.findJobInstancesByName
(String jobName, int start, int count) Fetch the last job instances with the provided name, sorted backwards by primary key, using a 'like' criteriaMethods in org.springframework.batch.core.repository with parameters of type JobInstanceModifier and TypeMethodDescriptiondefault void
JobRepository.deleteJobInstance
(JobInstance jobInstance) Delete the job instance.default List<JobExecution>
JobRepository.findJobExecutions
(JobInstance jobInstance) Return allJobExecution
s for givenJobInstance
, sorted backwards by creation order (so the first element is the most recent).JobRepository.getLastStepExecution
(JobInstance jobInstance, String stepName) int
JobRepository.getStepExecutionCount
(JobInstance jobInstance, String stepName) -
Uses of JobInstance in org.springframework.batch.core.repository.dao
Methods in org.springframework.batch.core.repository.dao that return JobInstanceModifier and TypeMethodDescriptionJdbcJobInstanceDao.createJobInstance
(String jobName, JobParameters jobParameters) In this JDBC implementation a job instance id is obtained by asking the jobInstanceIncrementer (which is likely a sequence) for the next long value, and then passing the Id and parameter values into an INSERT statement.JobInstanceDao.createJobInstance
(String jobName, JobParameters jobParameters) Create a JobInstance with given name and parameters.JdbcJobInstanceDao.getJobInstance
(Long instanceId) JdbcJobInstanceDao.getJobInstance
(String jobName, JobParameters jobParameters) The job table is queried for any jobs that match the given identifier, adding them to a list via the RowMapper callback.JdbcJobInstanceDao.getJobInstance
(JobExecution jobExecution) JobInstanceDao.getJobInstance
(Long instanceId) Fetch the job instance with the provided identifier.JobInstanceDao.getJobInstance
(String jobName, JobParameters jobParameters) Find the job instance that matches the given name and parameters.JobInstanceDao.getJobInstance
(JobExecution jobExecution) Fetch the JobInstance for the provided JobExecution.JdbcJobInstanceDao.getLastJobInstance
(String jobName) default JobInstance
JobInstanceDao.getLastJobInstance
(String jobName) Fetch the last job instance by Id for the given job.Methods in org.springframework.batch.core.repository.dao that return types with arguments of type JobInstanceModifier and TypeMethodDescriptionJdbcJobInstanceDao.findJobInstancesByName
(String jobName, int start, int count) JobInstanceDao.findJobInstancesByName
(String jobName, int start, int count) Fetch the last job instances with the provided name, sorted backwards by primary key, using a 'like' criteriaJdbcJobInstanceDao.getJobInstances
(String jobName, int start, int count) JobInstanceDao.getJobInstances
(String jobName, int start, int count) Fetch the last job instances with the provided name, sorted backwards by primary key.Methods in org.springframework.batch.core.repository.dao with parameters of type JobInstanceModifier and TypeMethodDescriptionint
JdbcStepExecutionDao.countStepExecutions
(JobInstance jobInstance, String stepName) default int
StepExecutionDao.countStepExecutions
(JobInstance jobInstance, String stepName) Counts all theStepExecution
for a given step name.void
JdbcJobInstanceDao.deleteJobInstance
(JobInstance jobInstance) Delete the job instance.default void
JobInstanceDao.deleteJobInstance
(JobInstance jobInstance) Delete the job instance.JdbcJobExecutionDao.findJobExecutions
(JobInstance job) JobExecutionDao.findJobExecutions
(JobInstance jobInstance) Return allJobExecution
s for givenJobInstance
, sorted backwards by creation order (so the first element is the most recent).JdbcJobExecutionDao.getLastJobExecution
(JobInstance jobInstance) JobExecutionDao.getLastJobExecution
(JobInstance jobInstance) Find the lastJobExecution
to have been created for a givenJobInstance
.JdbcStepExecutionDao.getLastStepExecution
(JobInstance jobInstance, String stepName) default StepExecution
StepExecutionDao.getLastStepExecution
(JobInstance jobInstance, String stepName) Retrieve the lastStepExecution
for a givenJobInstance
ordered by creation time and then id. -
Uses of JobInstance in org.springframework.batch.core.repository.support
Methods in org.springframework.batch.core.repository.support that return JobInstanceModifier and TypeMethodDescriptionSimpleJobRepository.createJobInstance
(String jobName, JobParameters jobParameters) Methods in org.springframework.batch.core.repository.support with parameters of type JobInstanceModifier and TypeMethodDescriptionvoid
SimpleJobRepository.deleteJobInstance
(JobInstance jobInstance) SimpleJobRepository.getLastStepExecution
(JobInstance jobInstance, String stepName) int
SimpleJobRepository.getStepExecutionCount
(JobInstance jobInstance, String stepName) -
Uses of JobInstance in org.springframework.batch.test
Methods in org.springframework.batch.test that return JobInstanceModifier and TypeMethodDescriptionstatic JobInstance
MetaDataInstanceFactory.createJobInstance()
Create aJobInstance
with default parameters.static JobInstance
MetaDataInstanceFactory.createJobInstance
(String jobName, Long instanceId) Create aJobInstance
with the parameters provided.