/// <summary> /// Creates the job instance DAO. /// </summary> /// <returns>An instance if <see cref="DbJobInstanceDao"/>.</returns> protected override IJobInstanceDao CreateJobInstanceDao() { var dao = new DbJobInstanceDao { DbOperator = DbOperator, JobIncrementer = _incrementer, TablePrefix = TablePrefix, }; dao.AfterPropertiesSet(); return dao; }
public new void Initialize() { base.Initialize(); _jobInstanceDao = new DbJobInstanceDao { DbOperator = DbOperator, PlaceholderGetter = new PlaceholderGetter(name => "@" + name, true), JobIncrementer = new SqlServerIncrementer { IncrementerName = "BATCH_JOB_SEQ", ConnectionStringSettings = ConnectionStringSettings, ColumnName = "ID" } }; _parameters = new JobParameters(); }
/// <summary> /// Creates an IJobInstanceDao. /// </summary> /// <returns>IJobInstanceDao</returns> protected override IJobInstanceDao CreateJobInstanceDao() { DbJobInstanceDao dao = new DbJobInstanceDao { DbOperator = DbOperator, JobIncrementer = GetIncrementer(TablePrefix + "JOB_SEQ"), TablePrefix = TablePrefix, }; dao.AfterPropertiesSet(); return dao; }