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