コード例 #1
0
 /// <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;
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 /// <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;
 }