Package org.springframework.batch.support

Examples of org.springframework.batch.support.DatabaseType


    this.dataSource = dataSource;
  }

    @Override
  public DataFieldMaxValueIncrementer getIncrementer(String incrementerType, String incrementerName) {
    DatabaseType databaseType = DatabaseType.valueOf(incrementerType.toUpperCase());

    if (databaseType == DB2) {
      return new DB2SequenceMaxValueIncrementer(dataSource, incrementerName);
    }
    else if (databaseType == DB2ZOS) {
View Full Code Here


   * @see FactoryBean#getObject()
   */
    @Override
  public PagingQueryProvider getObject() throws Exception {

    DatabaseType type;
    try {
      type = databaseType != null ? DatabaseType.valueOf(databaseType.toUpperCase()) : DatabaseType
          .fromMetaData(dataSource);
    }
    catch (MetaDataAccessException e) {
View Full Code Here

    }
    else if (StringUtils.hasText(columnNames) || StringUtils.hasText(tableName)) {
      log.warn("You must set either the 'sql' property or 'tableName' and 'columns'.");
    }

    DatabaseType type = DatabaseType.fromMetaData(dataSource);

    switch (type) {
      case MYSQL:
        fetchSize = Integer.MIN_VALUE;
        // MySql doesn't support getRow for a streaming cursor
View Full Code Here

TOP

Related Classes of org.springframework.batch.support.DatabaseType

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.