About LockModeType

11-20 of 45Refresh
JPA Doc
99

LockModeType.READ

Enum Constant javax.persistence.LockModeType READ Synonymous with OPTIMISTIC. OPTIMISTIC is to be preferred for new applications. Since: JPA 1.0
JPA Doc
99

LockModeType.WRITE

Enum Constant javax.persistence.LockModeType WRITE Synonymous with OPTIMISTIC_FORCE_INCREMENT. OPTIMISTIC_FORCE_IMCREMENT is to be preferred for new applications. Since: JPA 1.0
Manual
78

Setting and Tuning of JPA Queries

.setLockMode(LockModeType.PESSIMISTIC_WRITE) .getResultList(); Notice that when a query
JPA Doc
55

JPA Miscellaneous

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

javax.jdo.JDOEntityManager

is null Since: JPA 1.0 T find(Class 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
JPA Doc
17

javax.persistence.EntityManager

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

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
JPA Doc
13

javax.persistence.OptimisticLockException

, Object, LockModeType) EntityManager.find(Class, Object, LockModeType, java.util.Map) EntityManager.lock(Object, LockModeType) EntityManager.lock(Object, LockModeType, java.util.Map
JPA Doc
11

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
JPA Doc
11

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 setLockMode( LockModeType lockMode) Set the lock