Class SqlTimestampTypeConverter

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

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

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

      • SqlTimestampTypeConverter

        public SqlTimestampTypeConverter()
    • Method Detail

      • convert

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