Package org.springframework.jdbc.support.incrementer

Examples of org.springframework.jdbc.support.incrementer.DB2SequenceMaxValueIncrementer


    setIdentifierProperty(entity, id);
    getNamedParameterJdbcTemplate().update(insertSql, new BeanPropertySqlParameterSource(entity));
  }
 
  protected void insertWithDB2Sequence(Object entity,String sequenceName,String insertSql) {
    insertWithSequence(entity, new DB2SequenceMaxValueIncrementer(getDataSource(),sequenceName), insertSql);
  }
View Full Code Here


    @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) {
      return new DB2MainframeSequenceMaxValueIncrementer(dataSource, incrementerName);
    }
    else if (databaseType == DERBY) {
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.support.incrementer.DB2SequenceMaxValueIncrementer

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.