About PessimisticLockException

api-jpa

javax.persistence.PessimisticLockException

Thrown by the persistence provider when an pessimistic locking conflict occurs.(Exception of JPA)

 
manual

Locking in JPA

Explains how to use optimistic locking and pessimistic locking in JPA. JPA 2 supports both optimistic locking and pessimistic locking . Locking is essential to avoid update collisions resulting from simultaneous updates to the same data by two concurrent users. Locking in ObjectDB (and in JPA) is always at the da ...

 
api-jpa

JPA Exceptions

Reference (JavaDoc) of the JPA exception classes, including PersistenceException, EntityExistsException, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException.... javax.persistence.PessimisticLockException ... javax.persistence.PessimisticLockException Exceptions can also be thrown on an ...

 
api-jpa

PessimisticLockException()

Constructs a new PessimisticLockException exception with null as its detail message.(Constructor of javax.persistence.PessimisticLockException)

 
api-jpa

PessimisticLockException(cause)

Constructs a new PessimisticLockException exception with the specified cause.(Constructor of javax.persistence.PessimisticLockException)

 
api-jpa

PessimisticLockException(entity)

Constructs a new PessimisticLockException exception with the specified entity.(Constructor of javax.persistence.PessimisticLockException)

 
api-jpa

PessimisticLockException(message)

Constructs a new PessimisticLockException exception with the specified detail message.(Constructor of javax.persistence.PessimisticLockException)

 
api-jpa

PessimisticLockException(message, cause)

Constructs a new PessimisticLockException exception with the specified detail message and cause.(Constructor of javax.persistence.PessimisticLockException)

 
api-jpa

PessimisticLockException(message, cause, entity)

Constructs a new PessimisticLockException exception with the specified detail message, cause, and entity.(Constructor of javax.persistence.PessimisticLockException)

 
api-jpa

javax.persistence.EntityManager

Interface used to interact with the persistence context.(Interface of JPA)