Codota Logo
Dialect.isConcurrentUpdateException
Code IndexAdd Codota to your IDE (free)

How to use
isConcurrentUpdateException
method
in
org.nuxeo.ecm.core.storage.sql.jdbc.dialect.Dialect

Best Java code snippets using org.nuxeo.ecm.core.storage.sql.jdbc.dialect.Dialect.isConcurrentUpdateException (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

/**
 * 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);
  }
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-directory-sql

/**
 * 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);
  }
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

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);
    }
  });
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

if (!dialect.isConcurrentUpdateException(e)) {
  throw e;
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

  return delta;
} catch (SQLException e) {
  if (!dialect.isConcurrentUpdateException(e)) {
    throw e;
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

  set = true;
} catch (SQLException e) {
  if (!dialect.isConcurrentUpdateException(e)) {
    throw e;
org.nuxeo.ecm.core.storage.sql.jdbc.dialectDialectisConcurrentUpdateException

Javadoc

Checks if an exception received means that a concurrent update was detected.

Popular methods of Dialect

  • closeQuote
  • openQuote
  • addPagingClause
    Returns the SQL query with a paging clause
  • createDialect
    Creates a Dialect by connecting to the datasource to check what database is used.
  • getColumnName
  • getLikeEscaping
    Gets the SQL fragment to add after a LIKE match to specify the escaping character.
  • getTableName
  • supportsIlike
    Does the dialect support ILIKE operator
  • supportsPaging
    Indicates if dialect supports paging
  • castIdToVarchar
    Casts an id column to a VARCHAR type. Used for uuid/varchar joins.
  • checkStoredProcedure
    Checks if a given stored procedure exists and is identical to the passed creation SQL. There are 3 c
  • createArrayOf
    Factory method for creating Array objects, suitable for passing to PreparedStatement#setArray. (An e
  • checkStoredProcedure,
  • createArrayOf,
  • doesUpdateFromRepeatSelf,
  • getAddColumnString,
  • getAddForeignKeyConstraintString,
  • getAddPrimaryKeyConstraintString,
  • getAncestorsIdsSql,
  • getArrayElementString,
  • getArrayIlikeSql

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now