Package org.sql2o.converters
Class AbstractDateConverter<E extends Date>
java.lang.Object
org.sql2o.converters.AbstractDateConverter<E>
- All Implemented Interfaces:
Converter<E>
- Direct Known Subclasses:
DateConverter
Used by sql2o to convert a value from the database into a
Date
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConversion from SQL to Java.protected abstract E
fromMilliseconds
(long millisecond) toDatabaseParam
(Date val) Conversion from Java to SQL.
-
Constructor Details
-
AbstractDateConverter
-
-
Method Details
-
fromMilliseconds
-
convert
Description copied from interface:Converter
Conversion from SQL to Java.- Specified by:
convert
in interfaceConverter<E extends Date>
- Throws:
ConverterException
-
toDatabaseParam
Description copied from interface:Converter
Conversion from Java to SQL.- Specified by:
toDatabaseParam
in interfaceConverter<E extends Date>
-