Class SqlDateTypeConverter

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

    public class SqlDateTypeConverter
    extends java.lang.Object
    implements TypeConverter<java.lang.String,​java.sql.Date>
    java.sql.Date type converter. Converts a String date in the "yyyy-mm-dd" format to a Date type.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Date 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

      • SqlDateTypeConverter

        public SqlDateTypeConverter()
    • Method Detail

      • convert

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