About PESSIMISTIC_READ

61-70 of 200Refresh
Manual
4

What's next?

This chapter introduced the basic principles of using JPA with ObjectDB. You can dive into the details by reading the other chapters of this manual. If you prefer to get started using ObjectDB right ... your own ObjectDB/JPA programs simply by modifying this sample program. Reading the Next Chapters
JPA Doc
4

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
4

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
4

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
4

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
JDO Doc
3

javax.jdo.PersistenceManagerFactory

getReadOnly() Gets the value for read-only for this PMF. Gets the value for read-only for this PMF. Indicates whether the datastore is read-only or writable. Returns: the readOnly setting. Since: JDO 2 ... for whether the datastore is to be considered read-only. Sets the value for whether the datastore
JPA Doc
3

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
3

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
3

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
Tutorial
3

Step 7: Run the Spring Web App

Explorer: This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual.