C# Class Summer.Batch.Core.Repository.Dao.DbJobExecutionDao

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.
Inheritance: Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao, IJobExecutionDao
Mostra file Open project: SummerBatch/SummerBatch Class Usage Examples

Public Methods

Method Description
FindJobExecutions ( JobInstance jobInstance ) : IList

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

FindRunningJobExecutions ( string jobName ) : ISet

Returns all running job executions for the given job name.

GetJobExecution ( long executionId ) : JobExecution

Returns the job execution for the given execution id.

GetLastJobExecution ( JobInstance jobInstance ) : JobExecution

Returns the last job execution for a given job instance.

SaveJobExecution ( JobExecution jobExecution ) : void

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

SynchronizeStatus ( JobExecution jobExecution ) : void

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

UpdateJobExecution ( JobExecution jobExecution ) : void

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

Private Methods

Method Description
GetJobExecutionRowMapper ( JobInstance jobInstance = null ) : RowMapper

Creates a row mapper for job executions.

GetJobParameters ( long executionId ) : JobParameters

Retrieves job parameters for an execution.

InsertJobParameters ( long executionId, JobParameters jobParameters ) : void

Inserts job parameters into the job parameters table.

InsertParameter ( long executionId, Summer.Batch.Core.JobParameter.ParameterType type, string key, object value, bool identifying ) : void

Inserts a parameter into the job parameters table.

Method Details

FindJobExecutions() public method

Finds all the job executions for a job instance, sorted by descending creation order (the first element is the most recent).
public FindJobExecutions ( JobInstance jobInstance ) : IList
jobInstance JobInstance a job instance
return IList

FindRunningJobExecutions() public method

Returns all running job executions for the given job name.
public FindRunningJobExecutions ( string jobName ) : ISet
jobName string a job name
return ISet

GetJobExecution() public method

Returns the job execution for the given execution id.
public GetJobExecution ( long executionId ) : JobExecution
executionId long an id for an existing job execution
return JobExecution

GetLastJobExecution() public method

Returns the last job execution for a given job instance.
public GetLastJobExecution ( JobInstance jobInstance ) : JobExecution
jobInstance JobInstance a job instance
return JobExecution

SaveJobExecution() public method

Persists a new job execution. The corresponding job instance must have been persisted.
public SaveJobExecution ( JobExecution jobExecution ) : void
jobExecution JobExecution a job execution
return void

SynchronizeStatus() public method

Persists the status and version fields of a job execution. The job execution must have already been persisted.
public SynchronizeStatus ( JobExecution jobExecution ) : void
jobExecution JobExecution
return void

UpdateJobExecution() public method

Updates the updates of a job execution. The job execution must have already been persisted.
public UpdateJobExecution ( JobExecution jobExecution ) : void
jobExecution JobExecution a job execution
return void