ObjectDB Database Search

1-10 of 10 results

jakarta.persistence.TypedQuery.setLockMode(LockModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.TypedQuery TypedQuery 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

jakarta.persistence.Query.setLockMode(LockModeType)

Jakarta Persistence (JPA) Method in jakarta.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

Setting and Tuning of JPA Queries

. Therefore, you should consider this issue when performance is important. Lock mode ( setLockMode ... . JPA adds support for pessimistic locking . The setLockMode method sets a lock mode to apply ... lock on all the result objects: List results = query. setLockMode ( LockModeType . PESSIMISTIC_WRITE

JPA Runtime Tuning & Configuration

exclusive ( WRITE ). Scope Usage Query setLockMode (LockModeType) Operation Implements: FindOption ... setFlushMode N/A LockModeType N/A N/A setLockMode lock find refresh PessimisticLockScope Property

JPA Named Queries

. The optional elements, lockMode and hints , provide a static replacement for the setLockMode and setHint

jakarta.persistence.LockModeType

refresh() ), or to Query. setLockMode or TypedQuery. setLockMode . Optimistic locks are specified using

jakarta.persistence.TypedQuery

argument is not valid for the implementation. Since: Jakarta Persistence (JPA) 1.0 TypedQuery setLockMode ... . setLockMode Parameters: lockMode - lock mode Returns: the same query instance. Throws

jakarta.persistence.Query

setLockMode ( LockModeType lockMode ) Set the lock mode type to be used for the query execution

jakarta.persistence.StoredProcedureQuery

for the implementation. Since: Jakarta Persistence (JPA) 1.0 Query setLockMode ( LockModeType

Duplicate Entity class names causes Exception in Query

.CheckCacheThenDatabase); /* q. setLockMode (LockModeType.OPTIMISTIC); */ try { java.lang.Object r = q.getSingleResult