|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.MixedLockLevelsHelper
public class MixedLockLevelsHelper
Helper methods translate between JPA-defined lock mode and OpenJPA internal lock levels.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.openjpa.persistence.HintValueConverter |
---|
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger |
Constructor Summary | |
---|---|
MixedLockLevelsHelper()
|
Method Summary | |
---|---|
boolean |
canConvert(Class<?> type)
Affirm if this receiver can convert the value of the given type. |
Object |
convert(Object original)
Convert the user-specified value to a kernel consumable value. |
static LockModeType |
fromLockLevel(int level)
Translates internal lock level to javax.persistence LockModeType. |
static int |
toLockLevel(int mode)
|
static int |
toLockLevel(LockModeType mode)
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 MixedLockLevelsHelper()
Method Detail |
---|
public static int toLockLevel(LockModeType mode)
public static int toLockLevel(int mode)
public static LockModeType fromLockLevel(int level)
public boolean canConvert(Class<?> type)
HintValueConverter
canConvert
in interface HintValueConverter
public Object convert(Object original)
HintValueConverter
convert
in interface HintValueConverter
original
- the user-specified value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |