javax.persistence
Class PessimisticLockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.persistence.PersistenceException
                  extended by javax.persistence.PessimisticLockException
All Implemented Interfaces:
java.io.Serializable

public class PessimisticLockException
extends PersistenceException

Thrown by the persistence provider when an pessimistic locking conflict occurs.

See Also:
Serialized Form

Constructor Summary
PessimisticLockException()
           
PessimisticLockException(java.lang.Object entity)
           
PessimisticLockException(java.lang.String message)
           
PessimisticLockException(java.lang.String message, java.lang.Throwable cause)
           
PessimisticLockException(java.lang.String message, java.lang.Throwable cause, java.lang.Object entity)
           
PessimisticLockException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Object getEntity()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PessimisticLockException

public PessimisticLockException()

PessimisticLockException

public PessimisticLockException(java.lang.Object entity)

PessimisticLockException

public PessimisticLockException(java.lang.String message)

PessimisticLockException

public PessimisticLockException(java.lang.String message,
                                java.lang.Throwable cause)

PessimisticLockException

public PessimisticLockException(java.lang.String message,
                                java.lang.Throwable cause,
                                java.lang.Object entity)

PessimisticLockException

public PessimisticLockException(java.lang.Throwable cause)
Method Detail

getEntity

public java.lang.Object getEntity()