Home » Search

About LockModeType

11-20 of 42Refresh
JPA Doc
72

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
72

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
61

Setting and Tuning of JPA Queries

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

JPA Miscellaneous

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

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