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
 public new void Initialize()
 {
     base.Initialize();
     _jobExecutionDao = new DbJobExecutionDao
     {
         DbOperator = DbOperator,
         PlaceholderGetter = new PlaceholderGetter(name => "@" + name, true),
         JobIncrementer = new SqlServerIncrementer
         {
             IncrementerName = "BATCH_JOB_EXECUTION_SEQ",
             ConnectionStringSettings = ConnectionStringSettings,
             ColumnName = "ID"
         }
     };
     _instance = new JobInstance(1, "TestJob");
     _parameters = new JobParameters();
     _execution = new JobExecution(_instance, _parameters);
 }
 /// <summary>
 /// Creates the job execution DAO.
 /// </summary>
 /// <returns>An instance of <see cref="DbJobExecutionDao"/>.</returns>
 protected override IJobExecutionDao CreateJobExecutionDao()
 {
     var dao = new DbJobExecutionDao
     {
         DbOperator = DbOperator,
         JobIncrementer = _incrementer,
         TablePrefix = TablePrefix,
     };
     dao.AfterPropertiesSet();
     return dao;
 }
 /// <summary>
 /// Creates an IJobExecutionDao. 
 /// </summary>
 /// <returns>IJobExecutionDao</returns>
 protected override IJobExecutionDao CreateJobExecutionDao()
 {
     DbJobExecutionDao dao = new DbJobExecutionDao
     {
         DbOperator = DbOperator,
         JobIncrementer = GetIncrementer(TablePrefix + "JOB_EXECUTION_SEQ"),
         TablePrefix = TablePrefix,
         ExitMessageLength = MaxVarCharLength
     };
     dao.AfterPropertiesSet();
     return dao;
 }