Package org.apache.openjpa.persistence
Class HintValueConverter.OpenJPAEnumToInteger
java.lang.Object
org.apache.openjpa.persistence.HintValueConverter.OpenJPAEnumToInteger
- All Implemented Interfaces:
HintValueConverter
- Enclosing interface:
- HintValueConverter
public static class HintValueConverter.OpenJPAEnumToInteger
extends Object
implements HintValueConverter
Converts an OpenJPA specific enum to an equivalent kernel constant.
- Author:
- Pinaki Poddar
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.openjpa.persistence.HintValueConverter
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class<?> type) Affirm if this receiver can convert the value of the given type.Convert the user-specified value to a kernel consumable value.
-
Constructor Details
-
OpenJPAEnumToInteger
-
-
Method Details
-
convert
Description copied from interface:HintValueConverter
Convert the user-specified value to a kernel consumable value.- Specified by:
convert
in interfaceHintValueConverter
- Parameters:
e
- the user-specified value- Returns:
- an equivalent value consumable by a kernel construct.
-
canConvert
Description copied from interface:HintValueConverter
Affirm if this receiver can convert the value of the given type.- Specified by:
canConvert
in interfaceHintValueConverter
-