public class MapJobInstanceDao extends java.lang.Object implements JobInstanceDao
JobInstanceDao.| Constructor and Description |
|---|
MapJobInstanceDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
JobInstance |
createJobInstance(java.lang.String jobName,
JobParameters jobParameters)
Create a JobInstance with given name and parameters.
|
java.util.List<JobInstance> |
findJobInstancesByName(java.lang.String jobName,
int start,
int count)
Fetch the last job instances with the provided name, sorted backwards by
primary key, using a 'like' criteria
|
JobInstance |
getJobInstance(JobExecution jobExecution)
Fetch the JobInstance for the provided JobExecution.
|
JobInstance |
getJobInstance(java.lang.Long instanceId)
Fetch the job instance with the provided identifier.
|
JobInstance |
getJobInstance(java.lang.String jobName,
JobParameters jobParameters)
Find the job instance that matches the given name and parameters.
|
int |
getJobInstanceCount(java.lang.String jobName)
Query the repository for the number of unique
JobInstances
associated with the supplied job name. |
java.util.List<JobInstance> |
getJobInstances(java.lang.String jobName,
int start,
int count)
Fetch the last job instances with the provided name, sorted backwards by
primary key.
|
java.util.List<java.lang.String> |
getJobNames()
Retrieve the names of all job instances sorted alphabetically - i.e.
|
public void clear()
public JobInstance createJobInstance(java.lang.String jobName, JobParameters jobParameters)
JobInstanceDaocreateJobInstance in interface JobInstanceDaopublic JobInstance getJobInstance(java.lang.String jobName, JobParameters jobParameters)
JobInstanceDaogetJobInstance in interface JobInstanceDaojobName - the name of the jobjobParameters - the parameters with which the job was executedJobInstance object matching the job name and
JobParameters or nullpublic JobInstance getJobInstance(java.lang.Long instanceId)
JobInstanceDaogetJobInstance in interface JobInstanceDaoinstanceId - the job identifierpublic java.util.List<java.lang.String> getJobNames()
JobInstanceDaogetJobNames in interface JobInstanceDaopublic java.util.List<JobInstance> getJobInstances(java.lang.String jobName, int start, int count)
JobInstanceDaogetJobInstances in interface JobInstanceDaojobName - the job namestart - the start index of the instances to returncount - the maximum number of objects to returnpublic JobInstance getJobInstance(JobExecution jobExecution)
JobInstanceDaogetJobInstance in interface JobInstanceDaojobExecution - the JobExecutionpublic int getJobInstanceCount(java.lang.String jobName)
throws NoSuchJobException
JobInstanceDaoJobInstances
associated with the supplied job name.getJobInstanceCount in interface JobInstanceDaojobName - the name of the job to query forJobInstances that exist within the
associated job repositoryNoSuchJobExceptionpublic java.util.List<JobInstance> findJobInstancesByName(java.lang.String jobName, int start, int count)
JobInstanceDaofindJobInstancesByName in interface JobInstanceDao