Example usage for org.springframework.batch.core.repository.dao JdbcStepExecutionDao afterPropertiesSet

List of usage examples for org.springframework.batch.core.repository.dao JdbcStepExecutionDao afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.batch.core.repository.dao JdbcStepExecutionDao afterPropertiesSet.

Prototype

@Override
    public void afterPropertiesSet() throws Exception 

Source Link

Usage

From source file:org.springframework.batch.core.repository.support.JobRepositoryFactoryBean.java

@Override
protected StepExecutionDao createStepExecutionDao() throws Exception {
    JdbcStepExecutionDao dao = new JdbcStepExecutionDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setStepExecutionIncrementer(/* w w w .  ja v a2  s  .  c  o  m*/
            incrementerFactory.getIncrementer(databaseType, tablePrefix + "STEP_EXECUTION_SEQ"));
    dao.setTablePrefix(tablePrefix);
    dao.setClobTypeToUse(determineClobTypeToUse(this.databaseType));
    dao.setExitMessageLength(maxVarCharLength);
    dao.afterPropertiesSet();
    return dao;
}