public class LockScopesHelper extends Object
Constructor and Description |
---|
LockScopesHelper() |
Modifier and Type | Method and Description |
---|---|
static PessimisticLockScope |
fromLockScope(int level)
Translates internal lock level to javax.persistence LockModeType.
|
static int |
toLockScope(PessimisticLockScope scope)
Translates javax.persistence LockModeType to internal lock level.
|
public static int toLockScope(PessimisticLockScope scope)
public static PessimisticLockScope fromLockScope(int level)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.