Class DateTimestampConverter

  • All Implemented Interfaces:
    Converter<java.util.Date,​java.sql.Timestamp>

    public class DateTimestampConverter
    extends java.lang.Object
    implements Converter<java.util.Date,​java.sql.Timestamp>
    converts Date to Timestamp
    Author:
    jschwarz
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Timestamp convert​(java.util.Date date)
      Converts the specified object and returns the conversion result.
      • Methods inherited from class java.lang.Object

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

      • DateTimestampConverter

        public DateTimestampConverter()
    • Method Detail

      • convert

        public java.sql.Timestamp convert​(java.util.Date date)
        Description copied from interface: Converter
        Converts the specified object and returns the conversion result.

        Implementations have to accept null-values without throwing exceptions.

        Specified by:
        convert in interface Converter<java.util.Date,​java.sql.Timestamp>
        Parameters:
        date - object to convert
        Returns:
        the converted object