Package org.apache.openjpa.persistence
Class LockScopesHelper
java.lang.Object
org.apache.openjpa.persistence.LockScopesHelper
Helper methods translate between JPA-defined pessimistic lock scope and
OpenJPA internal lock scope levels.
- Since:
- 2.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.persistence.PessimisticLockScope
fromLockScope
(int level) Translates internal lock level to jakarta.persistence LockModeType.static int
toLockScope
(jakarta.persistence.PessimisticLockScope scope) Translates jakarta.persistence LockModeType to internal lock level.
-
Constructor Details
-
LockScopesHelper
public LockScopesHelper()
-
-
Method Details
-
toLockScope
public static int toLockScope(jakarta.persistence.PessimisticLockScope scope) Translates jakarta.persistence LockModeType to internal lock level. -
fromLockScope
public static jakarta.persistence.PessimisticLockScope fromLockScope(int level) Translates internal lock level to jakarta.persistence LockModeType.
-