Package org.sql2o.converters
Class NumberConverter<V extends Number>
java.lang.Object
org.sql2o.converters.NumberConverter<V>
- All Implemented Interfaces:
Converter<V>
- Direct Known Subclasses:
BigDecimalConverter,ByteConverter,DoubleConverter,FloatConverter,IntegerConverter,LongConverter,ShortConverter
Base class for numeric converters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConversion from SQL to Java.protected abstract VconvertNumberValue(Number val) protected abstract VconvertStringValue(String val) protected abstract StringtoDatabaseParam(V val) Conversion from Java to SQL.
-
Constructor Details
-
Method Details
-
convert
Description copied from interface:ConverterConversion from SQL to Java. -
convertNumberValue
-
convertStringValue
-
getTypeDescription
-
toDatabaseParam
Description copied from interface:ConverterConversion from Java to SQL.- Specified by:
toDatabaseParamin interfaceConverter<T>
-