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