Class 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
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LockScopesHelper

        public LockScopesHelper()
    • 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.