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