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

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

Introduction

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

Prototype

public void setExitMessageLength(int exitMessageLength) 

Source Link

Document

Public setter for the exit message length in database.

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(/*ww  w  . j a va 2s  .c  om*/
            incrementerFactory.getIncrementer(databaseType, tablePrefix + "STEP_EXECUTION_SEQ"));
    dao.setTablePrefix(tablePrefix);
    dao.setClobTypeToUse(determineClobTypeToUse(this.databaseType));
    dao.setExitMessageLength(maxVarCharLength);
    dao.afterPropertiesSet();
    return dao;
}