Database implementation of IStepExecutionDao. Allows customization of the tables names used for step meta data via a prefix property. Uses sequences or tables (via IDataFieldMaxValueIncrementer abstraction) to create all primary keys before inserting a new row. All objects are checked to ensure all fields to be stored are not null. If any are found to be null, an ArgumentException will be thrown. More...
Public Member Functions | |
void | SaveStepExecution (StepExecution stepExecution) |
Persists the given step execution. It must not have been persisted yet. More... | |
void | SaveStepExecutions (ICollection< StepExecution > stepExecutions) |
Persists the step executions in a collection. The step executions must not have been persisted yet. More... | |
void | UpdateStepExecution (StepExecution stepExecution) |
Persits the updates of a step execution. It must have already been persisted. More... | |
StepExecution | GetStepExecution (JobExecution jobExecution, long stepExecutionId) |
void | AddStepExecutions (JobExecution jobExecution) |
Adds persisted step executions to a job execution. More... | |
Public Member Functions inherited from Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao | |
virtual void | AfterPropertiesSet () |
Checks that DbOperator has been correctly set. More... | |
Properties | |
int | ExitMessageLength [set] |
The exit message maximum length. More... | |
IDataFieldMaxValueIncrementer | StepIncrementer [set] |
The data field incrementer for job execution ids. More... | |
Properties inherited from Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao | |
string | TablePrefix [get, set] |
The prefix for the batch persistence tables in the database. Default value is "BATCH_". More... | |
DbOperator | DbOperator [get, set] |
The database operator used for persistence. More... | |
IPlaceholderGetter | PlaceholderGetter [get, set] |
The parameter helper used to create parameter placeholders in queries. More... | |
Additional Inherited Members | |
Public Attributes inherited from Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao | |
const string | TablePrefixSetting = "TablePrefix" |
The name of the setting for the table prefix. More... | |
const string | DefaultTablePrefix = "BATCH_" |
Default table prefix constant. More... | |
const int | DefaultExitMessageLength = 2500 |
Default exit message length constant. More... | |
Protected Member Functions inherited from Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao | |
string | InsertTablePrefix (string query) |
Inserts the table prefix in the specified query. It uses the string.Format(string,object) syntax, and expect the prefix to be the parameter 0 ( More... | |
Static Protected Attributes inherited from Summer.Batch.Core.Repository.Dao.AbstractDbBatchMetadataDao | |
static readonly TransactionOptions | TransactionOptions |
The default transaction options for transaction scopes in the DAOs. More... | |
Detailed Description
Database implementation of IStepExecutionDao. Allows customization of the tables names used for step meta data via a prefix property. Uses sequences or tables (via IDataFieldMaxValueIncrementer abstraction) to create all primary keys before inserting a new row. All objects are checked to ensure all fields to be stored are not null. If any are found to be null, an ArgumentException will be thrown.
Member Function Documentation
void Summer.Batch.Core.Repository.Dao.DbStepExecutionDao.AddStepExecutions | ( | JobExecution | jobExecution | ) |
Adds persisted step executions to a job execution.
- Parameters
-
jobExecution a job execution
Implements Summer.Batch.Core.Repository.Dao.IStepExecutionDao.
StepExecution Summer.Batch.Core.Repository.Dao.DbStepExecutionDao.GetStepExecution | ( | JobExecution | jobExecution, |
long | stepExecutionId | ||
) |
- Parameters
-
jobExecution a job execution stepExecutionId a step execution id
- Returns
- the step execution with the given id in the given job execution
Implements Summer.Batch.Core.Repository.Dao.IStepExecutionDao.
void Summer.Batch.Core.Repository.Dao.DbStepExecutionDao.SaveStepExecution | ( | StepExecution | stepExecution | ) |
Persists the given step execution. It must not have been persisted yet.
- Parameters
-
stepExecution the stepExecution to persist
Implements Summer.Batch.Core.Repository.Dao.IStepExecutionDao.
void Summer.Batch.Core.Repository.Dao.DbStepExecutionDao.SaveStepExecutions | ( | ICollection< StepExecution > | stepExecutions | ) |
Persists the step executions in a collection. The step executions must not have been persisted yet.
- Parameters
-
stepExecutions a collection of step executions to persists
Implements Summer.Batch.Core.Repository.Dao.IStepExecutionDao.
void Summer.Batch.Core.Repository.Dao.DbStepExecutionDao.UpdateStepExecution | ( | StepExecution | stepExecution | ) |
Persits the updates of a step execution. It must have already been persisted.
- Parameters
-
stepExecution a persisted step execution
Implements Summer.Batch.Core.Repository.Dao.IStepExecutionDao.
Property Documentation
|
set |
The exit message maximum length.
|
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/DbStepExecutionDao.cs