About pessimistic

21-30 of 54Refresh
JDO Doc
13

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 ... - if the optimistic version check fails PessimisticLockException - if pessimistic locking fails
JPA Doc
13

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
11

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

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
11

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
9

getResultList()

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

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
9

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
9

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
8

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