Class LockScopesHelper

java.lang.Object
org.apache.openjpa.persistence.LockScopesHelper

public class LockScopesHelper extends 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
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.