org.apache.openjpa.persistence
public class MixedLockLevelsHelper extends java.lang.Object implements HintValueConverter
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger
Constructor and Description |
---|
MixedLockLevelsHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(java.lang.Class<?> type)
Affirm if this receiver can convert the value of the given type.
|
java.lang.Object |
convert(java.lang.Object original)
Convert the user-specified value to a kernel consumable value.
|
static javax.persistence.LockModeType |
fromLockLevel(int level)
Translates internal lock level to javax.persistence LockModeType.
|
static int |
toLockLevel(int mode) |
static int |
toLockLevel(javax.persistence.LockModeType mode)
Translates javax.persistence LockModeType to internal lock level.
|
public static int toLockLevel(javax.persistence.LockModeType mode)
public static int toLockLevel(int mode)
public static javax.persistence.LockModeType fromLockLevel(int level)
public boolean canConvert(java.lang.Class<?> type)
HintValueConverter
canConvert
in interface HintValueConverter
public java.lang.Object convert(java.lang.Object original)
HintValueConverter
convert
in interface HintValueConverter
original
- the user-specified value