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