congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConcurrencyException.setErrorCode
Code IndexAdd Tabnine to your IDE (free)

How to use
setErrorCode
method
in
org.eclipse.persistence.exceptions.ConcurrencyException

Best Java code snippets using org.eclipse.persistence.exceptions.ConcurrencyException.setErrorCode (Showing top 20 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

public static ConcurrencyException waitFailureOnClientSession(InterruptedException exception) {
  Object[] args = {  };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_CLIENT, args), exception);
  concurrencyException.setErrorCode(WAIT_FAILURE_CLIENT);
  return concurrencyException;
}
origin: com.haulmont.thirdparty/eclipselink

public static ConcurrencyException activeLockAlreadyTransitioned(Thread currentThread) {
  Object[] args = { currentThread};
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, ACTIVE_LOCK_ALREADY_TRANSITIONED, args));
  concurrencyException.setErrorCode(ACTIVE_LOCK_ALREADY_TRANSITIONED);
  return concurrencyException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static ConcurrencyException waitFailureOnServerSession(InterruptedException exception) {
  Object[] args = {  };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_SERVER, args), exception);
  concurrencyException.setErrorCode(WAIT_FAILURE_SERVER);
  return concurrencyException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static ConcurrencyException waitFailureOnSequencingForDatabaseSession(InterruptedException exception) {
  Object[] args = {  };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_SEQ_DATABASE_SESSION, args), exception);
  concurrencyException.setErrorCode(WAIT_FAILURE_SEQ_DATABASE_SESSION);
  return concurrencyException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  public static ConcurrencyException sequencingMultithreadThruConnection(String accessor) {
    Object[] args = { accessor };

    ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SEQUENCING_MULTITHREAD_THRU_CONNECTION, args));
    concurrencyException.setErrorCode(SEQUENCING_MULTITHREAD_THRU_CONNECTION);
    return concurrencyException;
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static ConcurrencyException signalAttemptedBeforeWait() {
  Object[] args = { CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SIGNAL_ATTEMPTED_BEFORE_WAIT, args));
  concurrencyException.setErrorCode(SIGNAL_ATTEMPTED_BEFORE_WAIT);
  return concurrencyException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static ConcurrencyException waitFailureOnSequencingForDatabaseSession(InterruptedException exception) {
  Object[] args = {  };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_SEQ_DATABASE_SESSION, args), exception);
  concurrencyException.setErrorCode(WAIT_FAILURE_SEQ_DATABASE_SESSION);
  return concurrencyException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  public static ConcurrencyException sequencingMultithreadThruConnection(String accessor) {
    Object[] args = { accessor };

    ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SEQUENCING_MULTITHREAD_THRU_CONNECTION, args));
    concurrencyException.setErrorCode(SEQUENCING_MULTITHREAD_THRU_CONNECTION);
    return concurrencyException;
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static ConcurrencyException waitWasInterrupted(String message) {
  Object[] args = { CR, message };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_WAS_INTERRUPTED, args));
  concurrencyException.setErrorCode(WAIT_WAS_INTERRUPTED);
  return concurrencyException;
}
origin: com.haulmont.thirdparty/eclipselink

public static ConcurrencyException maxTriesLockOnCloneExceded(Object objectToClone) {
  Object[] args = { objectToClone, CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE, args));
  concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE);
  return concurrencyException;
}
origin: com.haulmont.thirdparty/eclipselink

public static ConcurrencyException waitWasInterrupted(String message) {
  Object[] args = { CR, message };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_WAS_INTERRUPTED, args));
  concurrencyException.setErrorCode(WAIT_WAS_INTERRUPTED);
  return concurrencyException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static ConcurrencyException maxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread) {
  Object[] args = { cacheKeyThread, currentThread, CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT, args));
  concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT);
  return concurrencyException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static ConcurrencyException waitWasInterrupted(String message) {
  Object[] args = { CR, message };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_WAS_INTERRUPTED, args));
  concurrencyException.setErrorCode(WAIT_WAS_INTERRUPTED);
  return concurrencyException;
}
origin: com.haulmont.thirdparty/eclipselink

public static ConcurrencyException maxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread) {
  Object[] args = { cacheKeyThread, currentThread, CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT, args));
  concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT);
  return concurrencyException;
}
origin: com.haulmont.thirdparty/eclipselink

public static ConcurrencyException waitFailureOnClientSession(InterruptedException exception) {
  Object[] args = {  };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_CLIENT, args), exception);
  concurrencyException.setErrorCode(WAIT_FAILURE_CLIENT);
  return concurrencyException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static ConcurrencyException activeLockAlreadyTransitioned(Thread currentThread) {
  Object[] args = { currentThread};
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, ACTIVE_LOCK_ALREADY_TRANSITIONED, args));
  concurrencyException.setErrorCode(ACTIVE_LOCK_ALREADY_TRANSITIONED);
  return concurrencyException;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static ConcurrencyException signalAttemptedBeforeWait() {
  Object[] args = { CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SIGNAL_ATTEMPTED_BEFORE_WAIT, args));
  concurrencyException.setErrorCode(SIGNAL_ATTEMPTED_BEFORE_WAIT);
  return concurrencyException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static ConcurrencyException maxTriesLockOnMergeExceded(Object objectToClone) {
  Object[] args = { objectToClone, CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE, args));
  concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE);
  return concurrencyException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static ConcurrencyException maxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread) {
  Object[] args = { cacheKeyThread, currentThread, CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT, args));
  concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT);
  return concurrencyException;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static ConcurrencyException maxTriesLockOnCloneExceded(Object objectToClone) {
  Object[] args = { objectToClone, CR };
  ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE, args));
  concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE);
  return concurrencyException;
}
org.eclipse.persistence.exceptionsConcurrencyExceptionsetErrorCode

Popular methods of ConcurrencyException

  • <init>
    INTERNAL: TopLink exceptions should only be thrown by TopLink.
  • maxTriesLockOnBuildObjectExceded
  • maxTriesLockOnCloneExceded
  • signalAttemptedBeforeWait
  • waitFailureOnClientSession
  • waitFailureOnSequencingForDatabaseSession
  • waitFailureOnServerSession
  • waitWasInterrupted

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JTextField (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Option (scala)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now