FileDocCategorySizeDatePackage
ConcurrencyException.javaAPI DocGlassfish v2 API7186Tue May 22 16:54:18 BST 2007oracle.toplink.essentials.exceptions

ConcurrencyException

public class ConcurrencyException extends TopLinkException

Purpose: Concurrency deadlock or interupts will raise this exception.

Fields Summary
public static final int
WAIT_WAS_INTERRUPTED
public static final int
WAIT_FAILURE_SERVER
public static final int
WAIT_FAILURE_CLIENT
public static final int
SIGNAL_ATTEMPTED_BEFORE_WAIT
public static final int
WAIT_FAILURE_SEQ_DATABASE_SESSION
public static final int
SEQUENCING_MULTITHREAD_THRU_CONNECTION
public static final int
MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE
public static final int
MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE
public static final int
MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT
Constructors Summary
protected ConcurrencyException(String theMessage)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

                  
       
        super(theMessage);
    
protected ConcurrencyException(String theMessage, Exception exception)
INTERNAL: TopLink exceptions should only be thrown by TopLink.

        super(theMessage, exception);
    
Methods Summary
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionmaxTriesLockOnBuildObjectExceded(java.lang.Thread cacheKeyThread, java.lang.Thread currentThread)

        Object[] args = { cacheKeyThread, currentThread, 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_BUILD_OBJECT);
        return concurrencyException;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionmaxTriesLockOnCloneExceded(java.lang.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;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionmaxTriesLockOnMergeExceded(java.lang.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;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionsequencingMultithreadThruConnection(java.lang.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;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionsignalAttemptedBeforeWait()

        Object[] args = { CR };

        ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SIGNAL_ATTEMPTED_BEFORE_WAIT, args));
        concurrencyException.setErrorCode(SIGNAL_ATTEMPTED_BEFORE_WAIT);
        return concurrencyException;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionwaitFailureOnClientSession(java.lang.InterruptedException exception)

        Object[] args = {  };

        ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_CLIENT, args), exception);
        concurrencyException.setErrorCode(WAIT_FAILURE_CLIENT);
        return concurrencyException;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionwaitFailureOnSequencingForDatabaseSession(java.lang.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;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionwaitFailureOnServerSession(java.lang.InterruptedException exception)

        Object[] args = {  };

        ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_SERVER, args), exception);
        concurrencyException.setErrorCode(WAIT_FAILURE_SERVER);
        return concurrencyException;
    
public static oracle.toplink.essentials.exceptions.ConcurrencyExceptionwaitWasInterrupted(java.lang.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;