Package org.sql2o.converters.joda
Class JodaDateTimeConverter
java.lang.Object
org.sql2o.converters.joda.JodaDateTimeConverter
- All Implemented Interfaces:
Converter<org.joda.time.DateTime>
Used by sql2o to convert a value from the database into a
DateTime
instance.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTime
Conversion from SQL to Java.toDatabaseParam
(org.joda.time.DateTime val) Conversion from Java to SQL.
-
Constructor Details
-
JodaDateTimeConverter
public JodaDateTimeConverter(org.joda.time.DateTimeZone timeZone) -
JodaDateTimeConverter
public JodaDateTimeConverter()
-
-
Method Details
-
convert
Description copied from interface:Converter
Conversion from SQL to Java.- Specified by:
convert
in interfaceConverter<org.joda.time.DateTime>
- Throws:
ConverterException
-
toDatabaseParam
Description copied from interface:Converter
Conversion from Java to SQL.- Specified by:
toDatabaseParam
in interfaceConverter<org.joda.time.DateTime>
-