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