Package org.springframework.batch.core.repository.dao

Examples of org.springframework.batch.core.repository.dao.JdbcJobExecutionDao


    return dao;
  }

  @Override
  protected JobExecutionDao createJobExecutionDao() throws Exception {
    JdbcJobExecutionDao dao = new JdbcJobExecutionDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setJobExecutionIncrementer(incrementer);
    dao.setTablePrefix(tablePrefix);
    dao.afterPropertiesSet();
    return dao;
  }
View Full Code Here


    return dao;
  }

  @Override
  protected JobExecutionDao createJobExecutionDao() throws Exception {
    JdbcJobExecutionDao dao = new JdbcJobExecutionDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setJobExecutionIncrementer(incrementerFactory.getIncrementer(databaseType, tablePrefix
        + "JOB_EXECUTION_SEQ"));
    dao.setTablePrefix(tablePrefix);
    dao.setClobTypeToUse(determineClobTypeToUse(this.databaseType));
    dao.setExitMessageLength(maxVarCharLength);
    dao.afterPropertiesSet();
    return dao;
  }
View Full Code Here

      return jobLauncher.run(job, jobParameters);

    } else {

      JdbcJobExecutionDao dao = new JdbcJobExecutionDao();
      dao.setJdbcTemplate(jdbcTemplate);
      JobExecution execution = dao.getJobExecution(jobExecutionId);

      if (execution != null) {
        return jobLauncher.run(job, execution.getJobParameters());
      }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.repository.dao.JdbcJobExecutionDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.