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

Database implementation of IJobExecutionDao. 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.DbJobExecutionDao:
Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao Summer.Batch.Core.Repository.Dao.IJobExecutionDao Summer.Batch.Common.Factory.IInitializationPostOperations

Public Member Functions

void SaveJobExecution (JobExecution jobExecution)
 Persists a new job execution. The corresponding job instance must have been persisted. More...
 
void UpdateJobExecution (JobExecution jobExecution)
 Updates the updates of a job execution. The job execution must have already been persisted. More...
 
IList< JobExecutionFindJobExecutions (JobInstance jobInstance)
 Finds all the job executions for a job instance, sorted by descending creation order (the first element is the most recent). More...
 
JobExecution GetLastJobExecution (JobInstance jobInstance)
 Returns the last job execution for a given job instance. More...
 
ISet< JobExecutionFindRunningJobExecutions (string jobName)
 Returns all running job executions for the given job name. More...
 
JobExecution GetJobExecution (long executionId)
 Returns the job execution for the given execution id. More...
 
void SynchronizeStatus (JobExecution jobExecution)
 Persists the status and version fields of a job execution. The job execution must have already been persisted. More...
 

Properties

int ExitMessageLength [set]
 The exit message maximum length. More...
 
IDataFieldMaxValueIncrementer JobIncrementer [set]
 The data field incrementer for job execution ids. More...
 

Additional Inherited Members

Detailed Description

Database implementation of IJobExecutionDao. 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

IList<JobExecution> Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.FindJobExecutions ( JobInstance  jobInstance)

Finds all the job executions for a job instance, sorted by descending creation order (the first element is the most recent).

Parameters
jobInstancea job instance
Returns
a list of job executions

Implements Summer.Batch.Core.Repository.Dao.IJobExecutionDao.

ISet<JobExecution> Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.FindRunningJobExecutions ( string  jobName)

Returns all running job executions for the given job name.

Parameters
jobNamea job name
Returns
a set containing the job executions that are still running for the specified job name

Implements Summer.Batch.Core.Repository.Dao.IJobExecutionDao.

JobExecution Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.GetJobExecution ( long  executionId)

Returns the job execution for the given execution id.

Parameters
executionIdan id for an existing job execution
Returns
the job execution with the given id

Implements Summer.Batch.Core.Repository.Dao.IJobExecutionDao.

JobExecution Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.GetLastJobExecution ( JobInstance  jobInstance)

Returns the last job execution for a given job instance.

Parameters
jobInstancea job instance
Returns
the last created job execution for the job instance

Implements Summer.Batch.Core.Repository.Dao.IJobExecutionDao.

void Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.SaveJobExecution ( JobExecution  jobExecution)

Persists a new job execution. The corresponding job instance must have been persisted.

Parameters
jobExecutiona job execution

Implements Summer.Batch.Core.Repository.Dao.IJobExecutionDao.

void Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.SynchronizeStatus ( JobExecution  jobExecution)

Persists the status and version fields of a job execution. The job execution must have already been persisted.

Parameters
jobExecution

Implements Summer.Batch.Core.Repository.Dao.IJobExecutionDao.

void Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.UpdateJobExecution ( JobExecution  jobExecution)

Updates the updates of a job execution. The job execution must have already been persisted.

Parameters
jobExecutiona job execution

Implements Summer.Batch.Core.Repository.Dao.IJobExecutionDao.

Property Documentation

int Summer.Batch.Core.Repository.Dao.DbJobExecutionDao.ExitMessageLength
set

The exit message maximum length.

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

The data field incrementer for job execution ids.


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