About OptimisticLockException

11-20 of 28Refresh
JPA Doc
21

JPA Exceptions

.OptimisticLockException javax.persistence.PessimisticLockException javax
Manual
21

Locking in JPA

of the in-memory object being updated. The transaction fails and an OptimisticLockException is thrown
Forum
21

OptimisticLockException

OptimisticLockException
JPA Doc
18

javax.persistence.EntityManager

when obtaining the database lock. If these checks fail, the OptimisticLockException will be thrown ... mode other than NONE is specified OptimisticLockException - if the optimistic version check fails ... the database lock. If these checks fail, the OptimisticLockException will be thrown. If the lock mode type
JPA Doc
9

find(entityClass, primaryKey, lockMode)

, the OptimisticLockException will be thrown. If the lock mode type is pessimistic and the entity ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking
JPA Doc
9

find(entityClass, primaryKey, lockMode, properties)

checks when obtaining the database lock. If these checks fail, the OptimisticLockException ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking fails
JPA Doc
9

find(entityClass, primaryKey, lockMode, properties)

version checks when obtaining the database lock. If these checks fail, the OptimisticLockException ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic
JPA Doc
9

lock(entity, lockMode)

. If these checks fail, the OptimisticLockException will be thrown. If the lock mode type is pessimistic ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking
JPA Doc
9

lock(entity, lockMode, properties)

, the OptimisticLockException will be thrown. If the lock mode type is pessimistic and the entity instance is found ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking fails
JPA Doc
6

javax.persistence.PersistenceException

, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException