org.apache.openjpa.persistence
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockScopesHelper
public LockScopesHelper()
toLockScope
public static int toLockScope(PessimisticLockScope scope)
- Translates javax.persistence LockModeType to internal lock level.
fromLockScope
public static PessimisticLockScope fromLockScope(int level)
- Translates internal lock level to javax.persistence LockModeType.
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.