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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PessimisticLockScopefromLockScope(int level) Translates internal lock level to jakarta.persistence LockModeType.static inttoLockScope(PessimisticLockScope scope) Translates jakarta.persistence LockModeType to internal lock level.
-
Constructor Details
-
LockScopesHelper
public LockScopesHelper()
-
-
Method Details
-
toLockScope
Translates jakarta.persistence LockModeType to internal lock level. -
fromLockScope
Translates internal lock level to jakarta.persistence LockModeType.
-