Class DateTimeConverters.TimestampToSqlTime

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canConvert​(java.lang.Class<?> sourceClass, java.lang.Class<?> targetClass)
      Returns true if this object can convert sourceClass to targetClass.
      java.sql.Time convert​(java.sql.Timestamp obj)
      Converts obj to T.
      • Methods inherited from class java.lang.Object

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

      • TimestampToSqlTime

        public TimestampToSqlTime()
    • Method Detail

      • canConvert

        public boolean canConvert​(java.lang.Class<?> sourceClass,
                                  java.lang.Class<?> targetClass)
        Description copied from interface: Converter
        Returns true if this object can convert sourceClass to targetClass.

        Implementations can accomodate class hierarchy ranges by converting super classes or interfaces.

        Specified by:
        canConvert in interface Converter<java.sql.Timestamp,​java.sql.Time>
        Overrides:
        canConvert in class AbstractConverter<java.sql.Timestamp,​java.sql.Time>
        Parameters:
        sourceClass - The source Class
        targetClass - The target Class
        Returns:
        true if this object can convert sourceClass to targetClass.
      • convert

        public java.sql.Time convert​(java.sql.Timestamp obj)
                              throws ConversionException
        Description copied from interface: Converter
        Converts obj to T.
        Parameters:
        obj - The source Object to convert
        Returns:
        The converted Object
        Throws:
        ConversionException