public class MixedLockLevelsHelper extends Object implements HintValueConverter
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger
Constructor and Description |
---|
MixedLockLevelsHelper() |
Modifier and Type | Method and Description |
---|---|
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 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(Class<?> type)
HintValueConverter
canConvert
in interface HintValueConverter
public Object convert(Object original)
HintValueConverter
convert
in interface HintValueConverter
original
- the user-specified valueCopyright © 2006–2022 Apache Software Foundation. All rights reserved.