Home » Search

About pessimistic

11-20 of 51Refresh
Issue
27

Pessimistic lock timeout - blocks indefinitely

I've attached a simple test which creates an object then kicks off several threads which each try to update the object. I'm using a pessimistic lock with timeout as follows: MapPESSIMISTIC_WRITE, properties
Forum
25

Pessimistic lock

Pessimistic lock
JPA Doc
16

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
13

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
13

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
11

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
11

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
11

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
11

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
JPA Doc
10

javax.persistence.PessimisticLockScope

property for pessimistic locking. This property may be passed as an argument to the methods ... the default behavior for pessimistic locking. This value defines the default behavior for pessimistic