ObjectDB ObjectDB

Internal Website Search

11-20 of 45 resultsRefresh
80

LockModeType.OPTIMISTIC_FORCE_INCREMENT

Enum Constant javax.persistence.LockModeType OPTIMISTIC_FORCE_INCREMENT Optimistic lock, with version update. Since: JPA 2.0
49

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
20

Setting and Tuning of JPA Queries

.setLockMode(LockModeType.PESSIMISTIC_WRITE) .getResultList(); Notice that when a query
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
12

javax.persistence.OptimisticLockException

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

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

javax.persistence.TypedQuery

for the query instance. Returns: query properties and hints Since: JPA 2.0 LockModeType getLockMode ... argument is not valid for the implementation Since: JPA 2.0 Query setLockMode( LockModeType lockMode ... a Criteria API query Since: JPA 2.0 TypedQuery<X> setLockMode( LockModeType lockMode) Set the lock mode
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