Class DateTimeConverters.SqlDateToTime

    • Constructor Summary

      Constructors 
      Constructor Description
      SqlDateToTime()  
    • 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.Date 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

      • SqlDateToTime

        public SqlDateToTime()
    • 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.Date,​java.sql.Time>
        Overrides:
        canConvert in class AbstractConverter<java.sql.Date,​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.Date 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