Class SqlTimeTypeConverter

  • All Implemented Interfaces:
    TypeConverter<java.lang.String,​java.sql.Time>

    public class SqlTimeTypeConverter
    extends java.lang.Object
    implements TypeConverter<java.lang.String,​java.sql.Time>
    java.sql.Time type converter. Converts a String Time in the "hh:mm:ss" format to a Time type.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Time convert​(java.lang.String value)
      Convert a source type into a target type.
      • Methods inherited from class java.lang.Object

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

      • SqlTimeTypeConverter

        public SqlTimeTypeConverter()
    • Method Detail

      • convert

        public java.sql.Time convert​(java.lang.String value)
        Convert a source type into a target type.
        Specified by:
        convert in interface TypeConverter<java.lang.String,​java.sql.Time>
        Parameters:
        value - the input value to convert
        Returns:
        The converted value