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