Fast Object Database for Java - with JPA/JDO support

Internal Website Search

11-20 of 56 resultsRefresh
26

Pessimistic lock

Pessimistic lock
26

javax.persistence.EntityManager

. If the entity is found within the persistence context and the lock mode type is pessimistic and the entity ... . If the lock mode type is pessimistic and the entity instance is found but cannot be locked ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled
26

javax.jdo.JDOEntityManager

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
25

javax.persistence.LockModeType

pessimistic locks. Optimistic locks are specified using LockModeType.OPTIMISTIC and LockModeType ... call, it must throw the PersistenceException. The lock modes LockModeType.PESSIMISTIC_READ, LockModeType.PESSIMISTIC_WRITE, and LockModeType.PESSIMISTIC_FORCE_INCREMENT are used to immediately obtain long
17

[ODB1] Chapter 5 - JDO Connections

transaction) or pessimistic locking (datastore transaction) is used. The default in ObjectDB is false
15

javax.persistence.TypedQuery

- if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic ... PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement is rolled back PersistenceException
12

lock(entity, lockMode, properties)

with the specified lock mode type and with specified properties. If a pessimistic lock mode type is specified ... 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 OptimisticLockException
12

lock(entity, lockMode)

. If a pessimistic lock mode type is specified and the entity contains a version attribute, the persistence ... . 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
10

find(entityClass, primaryKey, lockMode, properties)

is pessimistic and the entity has a version attribute, the persistence provider must perform optimistic version ... 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
10

find(entityClass, primaryKey, lockMode, properties)

there. If the entity is found within the persistence context and the lock mode type is pessimistic ... . 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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support