Home » Search

About lock

51-60 of 168Refresh
JPA Doc
7

javax.persistence.EntityNotFoundException

is called and the object no longer exists in the database. Thrown when EntityManager.lock is used with pessimistic locking is used and the entity no longer exists in the database. The current transaction ... ) EntityManager.lock(Object, LockModeType) EntityManager.lock(Object, LockModeType, java.util.Map
JDO Doc
7

javax.jdo.Transaction

Since: JDO 1.0 boolean getOptimistic() Optimistic transactions do not hold data store locks until commit time. Optimistic transactions do not hold data store locks until commit time. Returns: the value ... do not hold data store locks until commit time. Optimistic transactions do not hold data store locks
Forum
6

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal ... : Optimistic lock failed for object   perhaps I should explain the problem, which is that the optimistic lock ... A get the optimistic lock exception. ie: the version number does not appear to be automatically updated in
JPA Doc
6

getResultList()

back TransactionRequiredException - 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 fails and only the statement is rolled back PersistenceException - if the query execution
JPA Doc
6

getResultList()

back TransactionRequiredException - 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 fails and only the statement is rolled back PersistenceException - if the query
JPA Doc
6

getSingleResult()

the query timeout value set and only the statement is rolled back TransactionRequiredException - 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 fails
JPA Doc
6

getSingleResult()

timeout value set and only the statement is rolled back TransactionRequiredException - 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 fails
JPA Doc
6

javax.persistence.OptimisticLockException

Interfaces: Serializable Thrown by the persistence provider when an optimistic locking conflict occurs ... .lock(Object, LockModeType) EntityManager.lock(Object, LockModeType, java.util.Map
JPA Doc
5

getLockMode()

Method javax.persistence.Query LockModeType getLockMode() Get the current lock mode for the query. Returns: lock mode Throws: IllegalStateException - if the query is found not to be a Java Persistence query language SELECT query or a Criteria API query Since: JPA 2.0
JPA Doc
5

getLockMode(entity)

Method javax.persistence.EntityManager LockModeType getLockMode(   Object entity ) Get the current lock mode for the entity instance. Parameters: entity - entity instance Returns: lock mode Throws: TransactionRequiredException - if there is no transaction IllegalArgumentException - if the instance