|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.persistence.LockScopesHelper
public class LockScopesHelper
Helper methods translate between JPA-defined pessimistic lock scope and OpenJPA internal lock scope levels.
Constructor Summary | |
---|---|
LockScopesHelper()
|
Method Summary | |
---|---|
static javax.persistence.PessimisticLockScope |
fromLockScope(int level)
Translates internal lock level to javax.persistence LockModeType. |
static int |
toLockScope(javax.persistence.PessimisticLockScope scope)
Translates javax.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 |
---|
public LockScopesHelper()
Method Detail |
---|
public static int toLockScope(javax.persistence.PessimisticLockScope scope)
public static javax.persistence.PessimisticLockScope fromLockScope(int level)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |