Class DateTimeMapper

  • All Implemented Interfaces:
    ColumnMapper<org.joda.time.DateTime>

    public class DateTimeMapper
    extends java.lang.Object
    implements ColumnMapper<org.joda.time.DateTime>
    Map a Timestamp to a DateTime.
    • Constructor Summary

      Constructors 
      Constructor Description
      DateTimeMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.joda.time.DateTime map​(java.sql.ResultSet r, int columnNumber, StatementContext ctx)
      Map the given column of the current row of the result set to an Object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateTimeMapper

        public DateTimeMapper()
    • Method Detail

      • map

        public org.joda.time.DateTime map​(java.sql.ResultSet r,
                                          int columnNumber,
                                          StatementContext ctx)
                                   throws java.sql.SQLException
        Description copied from interface: ColumnMapper
        Map the given column of the current row of the result set to an Object. This method should not cause the result set to advance; allow Jdbi to do that, please.
        Specified by:
        map in interface ColumnMapper<org.joda.time.DateTime>
        Parameters:
        r - the result set being iterated
        columnNumber - the column number to map (starts at 1)
        ctx - the statement context
        Returns:
        the value to return for this column
        Throws:
        java.sql.SQLException - if anything goes wrong go ahead and let this percolate; Jdbi will handle it