Package org.apache.openjpa.persistence
Class HintValueConverter.StringToBoolean
- java.lang.Object
-
- org.apache.openjpa.persistence.HintValueConverter.StringToBoolean
-
- All Implemented Interfaces:
HintValueConverter
- Enclosing interface:
- HintValueConverter
public static class HintValueConverter.StringToBoolean extends java.lang.Object implements HintValueConverter
-
-
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 StringToBoolean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(java.lang.Class<?> cls)
Affirm if this receiver can convert the value of the given type.java.lang.Object
convert(java.lang.Object v)
Convert the user-specified value to a kernel consumable value.
-
-
-
Method Detail
-
convert
public java.lang.Object convert(java.lang.Object v)
Description copied from interface:HintValueConverter
Convert the user-specified value to a kernel consumable value.- Specified by:
convert
in interfaceHintValueConverter
- Parameters:
v
- the user-specified value- Returns:
- an equivalent value consumable by a kernel construct.
-
canConvert
public boolean canConvert(java.lang.Class<?> cls)
Description copied from interface:HintValueConverter
Affirm if this receiver can convert the value of the given type.- Specified by:
canConvert
in interfaceHintValueConverter
-
-