About pessimistic

11-20 of 52Refresh
JPA Doc
25

javax.persistence.EntityManager

. If the entity is found within the persistence context and the lock mode type is pessimistic and the entity ... . If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled
JPA Doc
25

javax.persistence.LockModeType

pessimistic locks. Optimistic locks are specified using LockModeType.OPTIMISTIC and LockModeType ... call, it must throw the PersistenceException. The lock modes LockModeType.PESSIMISTIC_READ, LockModeType.PESSIMISTIC_WRITE, and LockModeType.PESSIMISTIC_FORCE_INCREMENT are used to immediately obtain long
Forum
23

Pessimistic lock

Pessimistic lock
JPA Doc
14

javax.persistence.TypedQuery

- if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException - if the query execution ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled
JPA Doc
11

lock(entity, lockMode)

. If a pessimistic lock mode type is specified and the entity contains a version attribute ... . If these checks fail, the OptimisticLockException will be thrown. If the lock mode type is pessimistic ... - if the entity does not exist in the database when pessimistic locking is performed
JPA Doc
11

lock(entity, lockMode, properties)

with the specified lock mode type and with specified properties. If a pessimistic lock mode type ... , the OptimisticLockException will be thrown. If the lock mode type is pessimistic and the entity instance is found ... - if the entity does not exist in the database when pessimistic locking is performed
JPA Doc
10

find(entityClass, primaryKey, lockMode)

context and the lock mode type is pessimistic and the entity has a version attribute, the persistence ... , 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
10

find(entityClass, primaryKey, lockMode, properties)

there. If the entity is found within the persistence context and the lock mode type is pessimistic ... will be thrown. If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking fails
JPA Doc
10

find(entityClass, primaryKey, lockMode, properties)

is pessimistic and the entity has a version attribute, the persistence provider must perform optimistic ... 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
JPA Doc
10

javax.persistence.Query

- if a lock mode has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking ... mode has been set and there is no transaction PessimisticLockException - if pessimistic locking