Package org.springframework.dao

Examples of org.springframework.dao.IncorrectUpdateSemanticsDataAccessException


      .addTimestamp("ver_to_instant", document.getVersionToInstant())
      .addValue("max_instant", DbDateUtils.MAX_SQL_TIMESTAMP);
    final String sql = getElSqlBundle().getSql("UpdateVersionToInstant", args);
    final int rowsUpdated = getJdbcTemplate().update(sql, args);
    if (rowsUpdated != 1) {
      throw new IncorrectUpdateSemanticsDataAccessException("Update end version instant failed, rows updated: " + rowsUpdated);
    }
  }
View Full Code Here


      .addTimestamp("corr_to_instant", document.getCorrectionToInstant())
      .addValue("max_instant", DbDateUtils.MAX_SQL_TIMESTAMP);
    final String sql = getElSqlBundle().getSql("UpdateCorrectionToInstant", args);
    final int rowsUpdated = getJdbcTemplate().update(sql, args);
    if (rowsUpdated != 1) {
      throw new IncorrectUpdateSemanticsDataAccessException("Update end correction instant failed, rows updated: " + rowsUpdated);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.dao.IncorrectUpdateSemanticsDataAccessException

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.