|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.HintValueConverter.StringToInteger
public static class HintValueConverter.StringToInteger
Converts a String to an integer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.openjpa.persistence.HintValueConverter |
---|
HintValueConverter.EnumToInteger, HintValueConverter.OpenJPAEnumToInteger, HintValueConverter.StringToBoolean, HintValueConverter.StringToInteger |
Constructor Summary | |
---|---|
HintValueConverter.StringToInteger()
Construct a converter that will simply translate a numeric string to a integer. |
|
HintValueConverter.StringToInteger(String[] strings,
int[] numbers)
Construct a converter that will translate any of the given strings to corresponding integer. |
Method Summary | |
---|---|
boolean |
canConvert(Class<?> cls)
Affirm if this receiver can convert the value of the given type. |
Object |
convert(Object s)
Convert the user-specified value to a kernel consumable value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HintValueConverter.StringToInteger()
public HintValueConverter.StringToInteger(String[] strings, int[] numbers)
strings
- numbers
- Method Detail |
---|
public Object convert(Object s)
HintValueConverter
convert
in interface HintValueConverter
s
- the user-specified value
public boolean canConvert(Class<?> cls)
HintValueConverter
canConvert
in interface HintValueConverter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |