ObjectDB ObjectDB

Internal Website Search

61-70 of 195 resultsRefresh
30

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal ... : Optimistic lock failed for object dmoshal David Moshal perhaps I should explain the problem, which is that the optimistic lock exception fails repeatedly once the object is modified from another process. ie
5

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
5

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
5

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
5

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
5

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
4

setLockMode(lockMode)

Method javax.persistence.Query Query setLockMode( LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Returns: the same query instance 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
4

javax.persistence.NamedQuery

value: {} Since: JPA 1.0 LockModeType lockMode (Optional) The lock mode type to use in query execution. (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType
4

setLockMode(lockMode)

Method javax.persistence.TypedQuery TypedQuery<X> setLockMode( LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Returns: the same query instance Throws: IllegalStateException - if the query is found not to be a Java Persistence
0

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

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