Package org.apache.openjpa.persistence
Class HintValueConverter.EnumToInteger
- java.lang.Object
 - 
- org.apache.openjpa.persistence.HintValueConverter.EnumToInteger
 
 
- 
- All Implemented Interfaces:
 HintValueConverter
- Enclosing interface:
 - HintValueConverter
 
public static class HintValueConverter.EnumToInteger extends Object implements HintValueConverter
Convert the enum value to an enumerated set of constants.- 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
Constructors Constructor Description EnumToInteger(Class<? extends Enum<?>> enumType, int[] numbers) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(Class<?> type)Affirm if this receiver can convert the value of the given type.Objectconvert(Object e)Convert the user-specified value to a kernel consumable value. 
 - 
 
- 
- 
Method Detail
- 
convert
public Object convert(Object e)
Description copied from interface:HintValueConverterConvert the user-specified value to a kernel consumable value.- Specified by:
 convertin interfaceHintValueConverter- Parameters:
 e- the user-specified value- Returns:
 - an equivalent value consumable by a kernel construct.
 
 
- 
canConvert
public boolean canConvert(Class<?> type)
Description copied from interface:HintValueConverterAffirm if this receiver can convert the value of the given type.- Specified by:
 canConvertin interfaceHintValueConverter
 
 - 
 
 -