Interface TimestampSettable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void set​(long seconds, int nanos, int offsetSeconds)
      Sets the container to a timestamp value specified as time since Java epoch (January 1, 1970 00:00:00 GMT) with time zone and daylight saving time offset.
      void set​(Timestamp timestamp)
      Sets the container to a timestamp value specified as a java.sql.Timestamp object, relative to the default time zone.
      void set​(Timestamp timestamp, TimeZone timeZone)
      Sets the container to a timestamp value specified as a java.sql.Timestamp object, relative to the given time zone.
      void set​(Date date)
      Sets the container to a timestamp value specified as a java.util.Date object, relative to the default time zone.
      void set​(Date date, TimeZone timeZone)
      Sets the container to a timestamp value specified as a java.util.Date object, relative to the given time zone.
    • Method Detail

      • set

        void set​(Timestamp timestamp)
        Sets the container to a timestamp value specified as a java.sql.Timestamp object, relative to the default time zone. The time zone returned by TimeZone.getDefault() is used.
        Parameters:
        timestamp - timestamp value to which to set the container, expressed as a point in time relative to the default time zone.
      • set

        void set​(Date date)
        Sets the container to a timestamp value specified as a java.util.Date object, relative to the default time zone. The time zone returned by TimeZone.getDefault() is used.
        Parameters:
        date - timestamp value to which to set the container, expressed as a point in time relative to the default time zone.
      • set

        void set​(Timestamp timestamp,
                 TimeZone timeZone)
        Sets the container to a timestamp value specified as a java.sql.Timestamp object, relative to the given time zone.
        Parameters:
        timestamp - timestamp value to which to set the container, expressed as a point in time relative to the default time zone.
        timeZone - the time zone in which the timestamp should be interpreted
      • set

        void set​(Date date,
                 TimeZone timeZone)
        Sets the container to a timestamp value specified as a java.util.Date object, relative to the given time zone.
        Parameters:
        date - timestamp value to which to set the container, expressed as a point in time relative to the default time zone.
        timeZone - the time zone in which the timestamp should be interpreted
      • set

        void set​(long seconds,
                 int nanos,
                 int offsetSeconds)
        Sets the container to a timestamp value specified as time since Java epoch (January 1, 1970 00:00:00 GMT) with time zone and daylight saving time offset.
        Parameters:
        seconds - number of seconds since Java epoch
        nanos - fractional portion of epoch time in nanoseconds
        offsetSeconds - time zone and daylight saving time offset, in seconds