ObjectDB ObjectDB

Internal Website Search

11-20 of 46 resultsRefresh
78

LockModeType.NONE

Enum Constant javax.persistence.LockModeType NONE No lock. Since: JPA 2.0
76

Locking in JPA

explicitly by the lock method: em.lock(employee, LockModeType.PESSIMISTIC_WRITE); The first ... is active, as so:   em.lock(employee, LockModeType.NONE); Other Explicit Lock Modes In addition ... : Employee employee = em.find( Employee.class, 1, LockModeType.PESSIMISTIC_WRITE); Similarly
47

Setting and Tuning of JPA Queries

.setLockMode(LockModeType.PESSIMISTIC_WRITE) .getResultList(); Notice that when a query
28

JPA Miscellaneous

Reference (JavaDoc) of JPA API, including PersistenceUtil, PersistenceUnitUtil, Cache, CacheRetrieveMode, CacheStoreMode, FlushModeType, LockModeType, PessimisticLockScope.
15

javax.persistence.EntityManager

primaryKey, LockModeType lockMode) Find by primary key and lock. Find by primary key and lock ... , LockModeType lockMode, Map<String,Object> properties) Find by primary key and lock, using ... : flushMode Since: JPA 1.0 LockModeType getLockMode(Object entity) Get the current lock mode
11

javax.persistence.EntityNotFoundException

(Class,Object) EntityManager.refresh(Object) EntityManager.refresh(Object, LockModeType) EntityManager.refresh(Object, java.util.Map) EntityManager.refresh(Object, LockModeType, java.util.Map) EntityManager.lock(Object, LockModeType) EntityManager.lock(Object, LockModeType, java.util.Map
11

javax.persistence.OptimisticLockException

, Object, LockModeType) EntityManager.find(Class, Object, LockModeType, java.util.Map) EntityManager.lock(Object, LockModeType) EntityManager.lock(Object, LockModeType, java.util.Map
10

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 ... .LockModeType.NONE Since: JPA 2.0 String name (Required) The name used to refer to the query
10

NamedQuery.lockMode

Annotation Element javax.persistence.NamedQuery LockModeType lockMode (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction. Default value: javax.persistence.LockModeType.NONE Since: JPA 2.0
1

javax.jdo.JDOEntityManager

is null Since: JPA 1.0 T find(Class<T> entityClass, Object primaryKey, LockModeType lockMode) Find by ... should be ignored for queries. Returns: the ignoreCache setting. Since: JDO 1.0 LockModeType getLockMode(Object ... lock(Object entity, LockModeType lockMode) Lock an entity instance that is contained in the persistence

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