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

Examples of org.springframework.batch.core.repository.dao.MapExecutionContextDao$ContextKey


  @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);
    factory.setCommitInterval(4);
View Full Code Here


  @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);
    factory.setCommitInterval(4);
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);
    repository.add(stepExecution);
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

  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);

    step1 = new StubStep("TestStep1", jobRepository);
View Full Code Here

    return stepExecutionDao;
  }

  @Override
  protected ExecutionContextDao createExecutionContextDao() throws Exception {
    executionContextDao = new MapExecutionContextDao();
    return executionContextDao;
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.repository.dao.MapExecutionContextDao$ContextKey

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.