Example usage for org.springframework.batch.core.repository.dao JdbcExecutionContextDao setShortContextLength

List of usage examples for org.springframework.batch.core.repository.dao JdbcExecutionContextDao setShortContextLength

Introduction

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

Prototype

public void setShortContextLength(int shortContextLength) 

Source Link

Document

The maximum size that an execution context can have and still be stored completely in short form in the column SHORT_CONTEXT.

Usage

From source file:com.xchanging.support.batch.admin.service.SimpleJobServiceFactoryBean.java

protected ExecutionContextDao createExecutionContextDao() throws Exception {
    JdbcExecutionContextDao dao = new JdbcExecutionContextDao();
    dao.setJdbcTemplate((SimpleJdbcOperations) jdbcTemplate);
    dao.setTablePrefix(tablePrefix);/*  w ww.jav  a  2 s  . com*/
    dao.setClobTypeToUse(determineClobTypeToUse(this.databaseType));
    if (lobHandler != null) {
        dao.setLobHandler(lobHandler);
    }
    dao.afterPropertiesSet();
    // Assume the same length.
    dao.setShortContextLength(maxVarCharLength);
    return dao;
}

From source file:admin.service.SimpleJobServiceFactoryBean.java

protected ExecutionContextDao createExecutionContextDao() throws Exception {
    JdbcExecutionContextDao dao = new JdbcExecutionContextDao();
    dao.setJdbcTemplate(jdbcTemplate);// ww  w.j  a  v a2  s .c  o  m
    dao.setTablePrefix(tablePrefix);
    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;
}

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

@Override
protected ExecutionContextDao createExecutionContextDao() throws Exception {
    JdbcExecutionContextDao dao = new JdbcExecutionContextDao();
    dao.setJdbcTemplate(jdbcOperations);
    dao.setTablePrefix(tablePrefix);/* w w  w  .  j av a 2  s. c  om*/
    dao.setClobTypeToUse(determineClobTypeToUse(this.databaseType));
    dao.setSerializer(serializer);

    if (lobHandler != null) {
        dao.setLobHandler(lobHandler);
    }

    dao.afterPropertiesSet();
    // Assume the same length.
    dao.setShortContextLength(maxVarCharLength);
    return dao;
}