About PessimisticLockException
javax.persistence.PessimisticLockException
Thrown by the persistence provider when an pessimistic locking conflict occurs.(Exception of JPA)
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 ...
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 ...
PessimisticLockException()
Constructs a new PessimisticLockException exception with null as its detail message.(Constructor of javax.persistence.PessimisticLockException)
PessimisticLockException(cause)
Constructs a new PessimisticLockException exception with the specified cause.(Constructor of javax.persistence.PessimisticLockException)
PessimisticLockException(entity)
Constructs a new PessimisticLockException exception with the specified entity.(Constructor of javax.persistence.PessimisticLockException)
PessimisticLockException(message)
Constructs a new PessimisticLockException exception with the specified detail message.(Constructor of javax.persistence.PessimisticLockException)
PessimisticLockException(message, cause)
Constructs a new PessimisticLockException exception with the specified detail message and cause.(Constructor of javax.persistence.PessimisticLockException)
PessimisticLockException(message, cause, entity)
Constructs a new PessimisticLockException exception with the specified detail message, cause, and entity.(Constructor of javax.persistence.PessimisticLockException)
javax.persistence.EntityManager
Interface used to interact with the persistence context.(Interface of JPA)