Package org.sql2o.converters
Class IntegerConverter
Used by sql2o to convert a value from the database into an
Integer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Integer
convertNumberValue
(Number val) protected Integer
convertStringValue
(String val) protected String
toDatabaseParam
(Integer val) Conversion from Java to SQL.Methods inherited from class org.sql2o.converters.NumberConverter
convert
-
Constructor Details
-
IntegerConverter
public IntegerConverter(boolean primitive)
-
-
Method Details
-
convertNumberValue
- Specified by:
convertNumberValue
in classNumberConverter<Integer>
-
convertStringValue
- Specified by:
convertStringValue
in classNumberConverter<Integer>
-
getTypeDescription
- Specified by:
getTypeDescription
in classNumberConverter<Integer>
-
toDatabaseParam
Description copied from interface:Converter
Conversion from Java to SQL.- Specified by:
toDatabaseParam
in interfaceConverter<T>
-