Package org.springframework.batch.item.database.support

Examples of org.springframework.batch.item.database.support.DefaultDataFieldMaxValueIncrementerFactory


    Assert.notNull(jobLauncher, "JobLauncher must not be null.");

    jdbcTemplate = new JdbcTemplate(dataSource);

    if (incrementerFactory == null) {
      incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
    }

    if (databaseType == null) {
      databaseType = DatabaseType.fromMetaData(dataSource).name();
      logger.info("No database type set, using meta data indicating: " + databaseType);
View Full Code Here


    if (jdbcOperations == null) {
      jdbcOperations = new JdbcTemplate(dataSource)
    }   

    if (incrementerFactory == null) {
      incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
    }

    if (databaseType == null) {
      databaseType = DatabaseType.fromMetaData(dataSource).name();
      logger.info("No database type set, using meta data indicating: " + databaseType);
View Full Code Here

    this.tablePrefix = tablePrefix;
  }

  @Override
  public void afterPropertiesSet() throws Exception {
    DataFieldMaxValueIncrementerFactory factory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);

    this.incremeter = factory.getIncrementer(DatabaseType.fromMetaData(dataSource).name(), tablePrefix + "JOB_SEQ");
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.item.database.support.DefaultDataFieldMaxValueIncrementerFactory

Copyright © 2018 www.massapicom. 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.