Home » Search

About pessimistic

21-30 of 51Refresh
JPA Doc
9

refresh(entity, lockMode)

, and lock it with respect to given lock mode type. If the lock mode type is pessimistic and the entity ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException - if an unsupported lock call is made Since: JPA 2.0
JPA Doc
9

refresh(entity, lockMode, properties)

properties. If the lock mode type is pessimistic and the entity instance is found ... - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException - if an unsupported lock call is made Since: JPA 2.0
JPA Doc
7

getResultList()

- if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic
JPA Doc
7

getResultList()

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

getSingleResult()

mode has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails
JPA Doc
7

getSingleResult()

has been set and there is no transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails
Forum
7

OptimisticLockException

- since someone can change the object just after the refresh. In that case - use pessimistic locks. I read ... the object just after the refresh. In that case - use pessimistic locks" However, my application runs ... help me. Pessimistic locks might not help either, given #3 above, ie: it seems like last update wins
JPA Doc
5

javax.persistence.EntityNotFoundException

with pessimistic locking is used and the entity no longer exists in the database. The current transaction
JPA Doc
5

javax.persistence.LockTimeoutException

: Serializable Thrown by the persistence provider when an pessimistic locking conflict occurs that does
JPA Doc
5

javax.persistence.PessimisticLockException

Interfaces: Serializable Thrown by the persistence provider when an pessimistic locking conflict occurs