/** * Checks the SQL error we got and determine if a concurrent update happened. Throws if that's the case. * * @param e the exception * @since 5.8 */ protected void checkConcurrentUpdate(Throwable e) throws ConcurrentUpdateException { if (dialect.isConcurrentUpdateException(e)) { throw new ConcurrentUpdateException(e); } }
/** * Checks the SQL error we got and determine if a concurrent update happened. Throws if that's the case. * * @param e the exception * @since 7.10-HF04, 8.2 */ protected void checkConcurrentUpdate(Throwable e) throws ConcurrentUpdateException { if (dialect.isConcurrentUpdateException(e)) { throw new ConcurrentUpdateException(e); } }
protected void expireTTLOnce() { runWithConnection(connection -> { try { try (PreparedStatement ps = connection.prepareStatement(expireSQL)) { Long ttlDeadline = getTTLValue(0); setToPreparedStatement(expireSQL, ps, ttlCol, ttlDeadline); int count = ps.executeUpdate(); logger.logCount(count); } } catch (SQLException e) { if (dialect.isConcurrentUpdateException(e)) { // ignore return; } log.debug("Exception during TTL expiration", e); } }); }
if (!dialect.isConcurrentUpdateException(e)) { throw e;
return delta; } catch (SQLException e) { if (!dialect.isConcurrentUpdateException(e)) { throw e;
set = true; } catch (SQLException e) { if (!dialect.isConcurrentUpdateException(e)) { throw e;