org.apache.openjpa.persistence
public static class HintValueConverter.StringToInteger extends java.lang.Object implements HintValueConverter
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger
Constructor and Description |
---|
HintValueConverter.StringToInteger()
Construct a converter that will simply translate a numeric string to a integer.
|
HintValueConverter.StringToInteger(java.lang.String[] strings,
int[] numbers)
Construct a converter that will translate any of the given strings to corresponding integer.
|
Modifier and Type | Method and 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 s)
Convert the user-specified value to a kernel consumable value.
|
public HintValueConverter.StringToInteger()
public HintValueConverter.StringToInteger(java.lang.String[] strings, int[] numbers)
strings
- numbers
- public java.lang.Object convert(java.lang.Object s)
HintValueConverter
convert
in interface HintValueConverter
s
- the user-specified valuepublic boolean canConvert(java.lang.Class<?> cls)
HintValueConverter
canConvert
in interface HintValueConverter