Examples of afterPropertiesSet()


Examples of org.springframework.batch.core.repository.dao.JdbcExecutionContextDao.afterPropertiesSet()

    dao.setClobTypeToUse(determineClobTypeToUse(this.databaseType));
    if (lobHandler != null) {
      dao.setLobHandler(lobHandler);
    }
    dao.setSerializer(serializer);
    dao.afterPropertiesSet();
    // Assume the same length.
    dao.setShortContextLength(maxVarCharLength);
    return dao;
  }
View Full Code Here

Examples of org.springframework.batch.core.repository.dao.JdbcJobExecutionDao.afterPropertiesSet()

  protected JobExecutionDao createJobExecutionDao() throws Exception {
    JdbcJobExecutionDao dao = new JdbcJobExecutionDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setJobExecutionIncrementer(incrementer);
    dao.setTablePrefix(tablePrefix);
    dao.afterPropertiesSet();
    return dao;
  }

  @Override
  protected StepExecutionDao createStepExecutionDao() throws Exception {
View Full Code Here

Examples of org.springframework.batch.core.repository.dao.JdbcJobInstanceDao.afterPropertiesSet()

  protected JobInstanceDao createJobInstanceDao() throws Exception {
    JdbcJobInstanceDao dao = new JdbcJobInstanceDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setJobIncrementer(incrementer);
    dao.setTablePrefix(tablePrefix);
    dao.afterPropertiesSet();
    return dao;
  }

  @Override
  protected JobExecutionDao createJobExecutionDao() throws Exception {
View Full Code Here

Examples of org.springframework.batch.core.repository.dao.JdbcStepExecutionDao.afterPropertiesSet()

  protected StepExecutionDao createStepExecutionDao() throws Exception {
    JdbcStepExecutionDao dao = new JdbcStepExecutionDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setStepExecutionIncrementer(incrementer);
    dao.setTablePrefix(tablePrefix);
    dao.afterPropertiesSet();
    return dao;
  }

  @Override
  public JobExplorer getObject() throws Exception {
View Full Code Here

Examples of org.springframework.batch.core.repository.dao.XStreamExecutionContextStringSerializer.afterPropertiesSet()

      lobHandler = new DefaultLobHandler();
    }

    if (serializer == null) {
      XStreamExecutionContextStringSerializer defaultSerializer = new XStreamExecutionContextStringSerializer();
      defaultSerializer.afterPropertiesSet();

      serializer = defaultSerializer;
    }

    Assert.isTrue(incrementerFactory.isSupportedIncrementerType(databaseType), "'" + databaseType
View Full Code Here

Examples of org.springframework.batch.core.repository.support.JobRepositoryFactoryBean.afterPropertiesSet()

    factory.setItemReader(reader);

    JobRepositoryFactoryBean repositoryFactory = new JobRepositoryFactoryBean();
    repositoryFactory.setDataSource(dataSource);
    repositoryFactory.setTransactionManager(transactionManager);
    repositoryFactory.afterPropertiesSet();
    JobRepository repository = repositoryFactory.getObject();
    factory.setJobRepository(repository);

    JobExecution jobExecution = repository.createJobExecution("job", new JobParameters());
    StepExecution stepExecution = jobExecution.createStepExecution(factory.getName());
View Full Code Here

Examples of org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean.afterPropertiesSet()

  private JobRepositoryService jobRepositoryService;

  public StubAppmasterScOperations() {
    MapJobRepositoryFactoryBean factory = new MapJobRepositoryFactoryBean();
    try {
      factory.afterPropertiesSet();
      jobRepository = factory.getObject();
      jobRepositoryService = new JobRepositoryService();
      jobRepositoryService.setJobRepository(jobRepository);
    } catch (Exception e) {
    }
View Full Code Here

Examples of org.springframework.batch.core.step.job.JobStep.afterPropertiesSet()

      }
      this.jobLauncher = jobLauncher;
    }
    step.setJobLauncher(jobLauncher);
    try {
      step.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new StepBuilderException(e);
    }
    return step;
View Full Code Here

Examples of org.springframework.batch.core.step.tasklet.TaskletStep.afterPropertiesSet()

    step.setTasklet(createTasklet());

    step.setStreams(streams.toArray(new ItemStream[0]));

    try {
      step.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new StepBuilderException(e);
    }
View Full Code Here

Examples of org.springframework.batch.repeat.exception.SimpleLimitExceptionHandler.afterPropertiesSet()

  @Test
  public void testExceptionHandler() throws Exception {
    SimpleStepFactoryBean<String, String> factory = getStepFactory(new String[] { "foo", "bar", "spam" });
    factory.setBeanName("exceptionStep");
    SimpleLimitExceptionHandler exceptionHandler = new SimpleLimitExceptionHandler(1);
    exceptionHandler.afterPropertiesSet();
    factory.setExceptionHandler(exceptionHandler);
    factory.setItemWriter(new ItemWriter<String>() {
      int count = 0;

      @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.