Package org.apache.openjpa.persistence
Class LockScopesHelper
- java.lang.Object
-
- org.apache.openjpa.persistence.LockScopesHelper
-
public class LockScopesHelper extends java.lang.Object
Helper methods translate between JPA-defined pessimistic lock scope and OpenJPA internal lock scope levels.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description LockScopesHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
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.
-
-