Example usage for org.springframework.batch.core.repository.dao JdbcJobExecutionDao setClobTypeToUse

List of usage examples for org.springframework.batch.core.repository.dao JdbcJobExecutionDao setClobTypeToUse

Introduction

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

Prototype

public void setClobTypeToUse(int clobTypeToUse) 

Source Link

Usage

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

@Override
protected JobExecutionDao createJobExecutionDao() throws Exception {
    JdbcJobExecutionDao dao = new JdbcJobExecutionDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setJobExecutionIncrementer(//from ww w  .  j a  v  a 2  s.  com
            incrementerFactory.getIncrementer(databaseType, tablePrefix + "JOB_EXECUTION_SEQ"));
    dao.setTablePrefix(tablePrefix);
    dao.setClobTypeToUse(determineClobTypeToUse(this.databaseType));
    dao.setExitMessageLength(maxVarCharLength);
    dao.afterPropertiesSet();
    return dao;
}