Summer.Batch.Core.Repository.Dao.DbJobInstanceDao Class Reference

Database implementation of IJobInstanceDao. Uses sequences (via IDataFieldMaxValueIncrementer abstraction) to create all primary keys before inserting a new row. Objects are checked to ensure all mandatory fields to be stored are not null. If any are found to be null, an ArgumentException will be thrown. More...

Inheritance diagram for Summer.Batch.Core.Repository.Dao.DbJobInstanceDao:
Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao Summer.Batch.Core.Repository.Dao.IJobInstanceDao Summer.Batch.Common.Factory.IInitializationPostOperations

Public Member Functions

JobInstance CreateJobInstance (string jobName, JobParameters jobParameters)
 Creates a job instance with given name and parameters. A job instance with the same name and parameters should not already exist. More...
 
JobInstance GetJobInstance (string jobName, JobParameters jobParameters)
 
JobInstance GetJobInstance (long instanceId)
 
JobInstance GetJobInstance (JobExecution jobExecution)
 
IList< JobInstanceGetJobInstances (string jobName, int start, int count)
 Fetches a list of of job instances ordered by descending primary key. More...
 
IList< string > GetJobNames ()
 
Returns
the list of all the job names, sorted ascendingly

 
int GetJobInstanceCount (string jobName)
 

Properties

IDataFieldMaxValueIncrementer JobIncrementer [set]
 The data field incrementer for job instance ids. More...
 

Additional Inherited Members

Detailed Description

Database implementation of IJobInstanceDao. Uses sequences (via IDataFieldMaxValueIncrementer abstraction) to create all primary keys before inserting a new row. Objects are checked to ensure all mandatory fields to be stored are not null. If any are found to be null, an ArgumentException will be thrown.

Member Function Documentation

JobInstance Summer.Batch.Core.Repository.Dao.DbJobInstanceDao.CreateJobInstance ( string  jobName,
JobParameters  jobParameters 
)

Creates a job instance with given name and parameters. A job instance with the same name and parameters should not already exist.

Parameters
jobNamethe job name
jobParametersjob parameters
Returns
a new persisted job instance

summary> Returns the job instance for the given job name and parameters.

Parameters
jobNamea job name
jobParametersjob parameters
Returns
the job instance with the given name and parameters or null if it does not exist

Implements Summer.Batch.Core.Repository.Dao.IJobInstanceDao.

JobInstance Summer.Batch.Core.Repository.Dao.DbJobInstanceDao.GetJobInstance ( string  jobName,
JobParameters  jobParameters 
)
Parameters
jobNamea job name
jobParametersjob parameters
Returns
the job instance with the given name and parameters or null if it does not exist

Implements Summer.Batch.Core.Repository.Dao.IJobInstanceDao.

JobInstance Summer.Batch.Core.Repository.Dao.DbJobInstanceDao.GetJobInstance ( long  instanceId)
Parameters
instanceIdan id
Returns
the job instance with the given id or null if it does not exist

Implements Summer.Batch.Core.Repository.Dao.IJobInstanceDao.

JobInstance Summer.Batch.Core.Repository.Dao.DbJobInstanceDao.GetJobInstance ( JobExecution  jobExecution)
Parameters
jobExecutiona job execution
Returns
the job instance for the given job execution or null if it does not exist

Implements Summer.Batch.Core.Repository.Dao.IJobInstanceDao.

int Summer.Batch.Core.Repository.Dao.DbJobInstanceDao.GetJobInstanceCount ( string  jobName)
Parameters
jobNamea job name
Returns
the number of job instances for the given job name
Exceptions
Summer.Batch.Core.Launch.NoSuchJobExceptionif there are no job instances for this job name.

Implements Summer.Batch.Core.Repository.Dao.IJobInstanceDao.

IList<JobInstance> Summer.Batch.Core.Repository.Dao.DbJobInstanceDao.GetJobInstances ( string  jobName,
int  start,
int  count 
)

Fetches a list of of job instances ordered by descending primary key.

Parameters
jobNamethe name of a job
startthe index of the first instance to return
countthe number of instances to return
Returns
a list containing the requested job instances

Implements Summer.Batch.Core.Repository.Dao.IJobInstanceDao.

Property Documentation

IDataFieldMaxValueIncrementer Summer.Batch.Core.Repository.Dao.DbJobInstanceDao.JobIncrementer
set

The data field incrementer for job instance ids.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Repository/Dao/DbJobInstanceDao.cs