Class SqlTimestampConverter

    • Constructor Detail

      • SqlTimestampConverter

        public SqlTimestampConverter()
        Construct.
      • SqlTimestampConverter

        public SqlTimestampConverter​(int dateFormat)
        Construct.
        Parameters:
        dateFormat - See java.text.DateFormat for details. Defaults to DateFormat.SHORT
      • SqlTimestampConverter

        public SqlTimestampConverter​(int dateFormat,
                                     int timeFormat)
        Construct.
        Parameters:
        dateFormat - See java.text.DateFormat for details. Defaults to DateFormat.SHORT * @param timeFormat See java.text.DateFormat for details. Defaults to DateFormat.SHORT
        timeFormat -
    • Method Detail

      • getDateFormat

        public java.text.DateFormat getDateFormat​(java.util.Locale locale)
        Overrides:
        getDateFormat in class AbstractDateConverter<java.sql.Timestamp>
        Returns:
        Returns the date format.
      • createDateLike

        protected java.sql.Timestamp createDateLike​(long date)
        Description copied from class: AbstractDateConverter
        Creates a new instance of D out of the passed date(time) as long
        Specified by:
        createDateLike in class AbstractDateConverter<java.sql.Timestamp>
        Parameters:
        date - the date(time) in millis since Epoch
        Returns:
        a new instance of the specific type D
      • getTargetType

        protected java.lang.Class<java.sql.Timestamp> getTargetType()
        Specified by:
        getTargetType in class AbstractConverter<java.sql.Timestamp>
        Returns:
        The target type of this type converter