C# Класс 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.
Наследование: Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao, IJobExecutionDao
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

FindJobExecutions() публичный Метод

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
Результат IList

FindRunningJobExecutions() публичный Метод

Returns all running job executions for the given job name.
public FindRunningJobExecutions ( string jobName ) : ISet
jobName string a job name
Результат ISet

GetJobExecution() публичный Метод

Returns the job execution for the given execution id.
public GetJobExecution ( long executionId ) : JobExecution
executionId long an id for an existing job execution
Результат JobExecution

GetLastJobExecution() публичный Метод

Returns the last job execution for a given job instance.
public GetLastJobExecution ( JobInstance jobInstance ) : JobExecution
jobInstance JobInstance a job instance
Результат JobExecution

SaveJobExecution() публичный Метод

Persists a new job execution. The corresponding job instance must have been persisted.
public SaveJobExecution ( JobExecution jobExecution ) : void
jobExecution JobExecution a job execution
Результат void

SynchronizeStatus() публичный Метод

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
Результат void

UpdateJobExecution() публичный Метод

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
Результат void