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

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


  private static long jobCounter;

  @Before
  public void setUp() {

    jobRepository = new SimpleJobRepository(new MapJobInstanceDao(), new MapJobExecutionDao(),
        new MapStepExecutionDao(), new MapExecutionContextDao());
    factory.setJobRepository(jobRepository);
    factory.setTransactionManager(new ResourcelessTransactionManager());
    factory.setBeanName("step");
    factory.setItemWriter(writer);
View Full Code Here


  private static long jobCounter;

  @Before
  public void setUp() {

    jobRepository = new SimpleJobRepository(new MapJobInstanceDao(), new MapJobExecutionDao(),
        new MapStepExecutionDao(), new MapExecutionContextDao());
    factory.setJobRepository(jobRepository);
    factory.setTransactionManager(new ResourcelessTransactionManager());
    factory.setBeanName("step");
    factory.setItemWriter(writer);
View Full Code Here

  }

  @Test
  public void testRepository() throws Exception {

    SimpleJobRepository repository = new SimpleJobRepository(new MapJobInstanceDao(), new MapJobExecutionDao(),
        new MapStepExecutionDao(), new MapExecutionContextDao());
    step.setJobRepository(repository);

    JobExecution jobExecution = repository.createJobExecution(job.getName(), jobParameters);
    StepExecution stepExecution = new StepExecution(step.getName(), jobExecution);
View Full Code Here

  private JobRepository jobRepository;

  @Before
  public void setUp() throws Exception {
    jobRepository = new SimpleJobRepository(new MapJobInstanceDao(), new MapJobExecutionDao(),
        new MapStepExecutionDao(), new MapExecutionContextDao());
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {

    jobInstanceDao = new MapJobInstanceDao();
    jobExecutionDao = new MapJobExecutionDao();
    stepExecutionDao = new MapStepExecutionDao();
    ecDao = new MapExecutionContextDao();
    jobRepository = new SimpleJobRepository(jobInstanceDao, jobExecutionDao, stepExecutionDao, ecDao);
    job = new SimpleJob();
    job.setJobRepository(jobRepository);
View Full Code Here

    executionContextDao.clear();
  }

  @Override
  protected JobExecutionDao createJobExecutionDao() throws Exception {
    jobExecutionDao = new MapJobExecutionDao();
    return jobExecutionDao;
  }
View Full Code Here

TOP

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

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.