ObjectDB Database Search

1-9 of 9 results

Setting and Tuning of JPA Queries

. Therefore, when performance is important, this issue has to be considered. Lock Mode ( setLockMode ) ObjectDB uses ... adds support for pessimistic locking . The setLockMode method sets a lock mode that has to be applied ... a pessimistic WRITE lock on all the result objects:   List results = query. setLockMode

Query.setLockMode(lockMode) - JPA Method

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 Return: the same query instance Throws: IllegalStateException - if the query is found not

TypedQuery.setLockMode(lockMode) - JPA Method

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 Return: the same query instance Throws: IllegalStateException - if the query is found not

JPA Named Queries

for the  setLockMode and  setHint methods. Every  @NamedQuery annotation is attached

EnumRef jakarta.persistence.LockModeType

locks ( lock() , find() , or refresh() ), or to Query. setLockMode or TypedQuery. setLockMode

InterfaceRef jakarta.persistence.Query

- if the second argument is not valid for the implementation Since: JPA 1.0 Query setLockMode ( LockModeType  

InterfaceRef jakarta.persistence.TypedQuery

- if the second argument is not valid for the implementation Since: JPA 2.0 TypedQuery setLockMode

InterfaceRef jakarta.persistence.StoredProcedureQuery

argument is not valid for the implementation Since: JPA 2.1 Query setLockMode ( LockModeType  

Duplicate Entity class names causes Exception in Query

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