Interface TimestampSettable

All Superinterfaces:
ScalarSettable, ScalarTyped, TokenSettable, TokenTyped
All Known Subinterfaces:
TimestampOutputField
All Known Implementing Classes:
TimestampRegister

public interface TimestampSettable extends ScalarSettable
A TokenSettable object containing a timestamp value.
See Also:
  • Method Summary

    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, ZoneId zoneId)
    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, ZoneId zoneId)
    Sets the container to a timestamp value specified as a java.util.Date object, relative to the given time zone.

    Methods inherited from interface com.pervasive.datarush.types.ScalarTyped

    getType

    Methods inherited from interface com.pervasive.datarush.tokens.TokenSettable

    set, setNull, setZero
  • Method Details

    • 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 id returned by {@link ZoneId.systemDefault()} 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 {@link ZoneId.systemDefault()} 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, ZoneId zoneId)
      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.
      zoneId - the time zone id in which the timestamp should be interpreted
    • set

      void set(Date date, ZoneId zoneId)
      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.
      zoneId - the time zone id 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