PessimisticLockException
java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ javax.persistence.PersistenceException ∟ javax.persistence.PessimisticLockException
Thrown by the persistence provider when an pessimistic locking conflict occurs. This exception may be thrown as part of an API call, a flush or at commit time. The current transaction, if one is active, will be marked for rollback.
- Since:
- JPA 2.0
Public Constructors
- Since:
- JPA 2.0
PessimisticLockException(Object entity)
- Parameters:
entity
- the entity.
- Since:
- JPA 2.0
PessimisticLockException(String message)
- Parameters:
message
- the detail message.
- Since:
- JPA 2.0
PessimisticLockException(String message, Throwable cause)
- Parameters:
message
- the detail message.cause
- the cause.
- Since:
- JPA 2.0
PessimisticLockException(String message, Throwable cause, Object entity)
- Parameters:
message
- the detail message.cause
- the cause.entity
- the entity.
- Since:
- JPA 2.0
PessimisticLockException(Throwable cause)
- Parameters:
cause
- the cause.
- Since:
- JPA 2.0
Public Methods
Object getEntity()
- Return:
- the entity.
- Since:
- JPA 2.0
Method inherited from class java.lang.Throwable
addSuppressed
, fillInStackTrace
, getCause
, getLocalizedMessage
, getMessage
, getStackTrace
, getSuppressed
, initCause
, printStackTrace
, printStackTrace
, printStackTrace
, setStackTrace
, toString