Interface DateSettable

All Superinterfaces:
ScalarSettable, ScalarTyped, TokenSettable, TokenTyped
All Known Subinterfaces:
DateOutputField
All Known Implementing Classes:
DateRegister

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

    Modifier and Type
    Method
    Description
    void
    set(long days)
    Sets the container to a date value specified as the number of days since Java epoch (January 1, 1970 GMT).
    void
    Sets the container to the specified calendar date.
    void
    set(Date date)
    Deprecated.
    since 6.1; use set(CalendarDate) instead.
    void
    set(Date date, ZoneId zoneId)
    Deprecated.
    since 6.1; use set(CalendarDate) instead.

    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

      @Deprecated void set(Date date)
      Deprecated.
      since 6.1; use set(CalendarDate) instead.
      Sets the container to a date value specified as a java.util.Date object, relative to the default time zone. The time zone id returned by {@link ZoneId.systemDefault()} is used.
      Parameters:
      date - date value to which to set the container, expressed as a point in time relative to the default time zone id
    • set

      @Deprecated void set(Date date, ZoneId zoneId)
      Deprecated.
      since 6.1; use set(CalendarDate) instead.
      Sets the container to a date value specified as a java.util.Date object, relative to the given time zone id.
      Parameters:
      date - date value to which to set the container, expressed as a point in time relative to the specified time zone
      zoneId - the time zone id in which the date should be interpreted
    • set

      void set(long days)
      Sets the container to a date value specified as the number of days since Java epoch (January 1, 1970 GMT).
      Parameters:
      days - date value to which to set the container, expressed as the number of days since Java epoch
    • set

      void set(CalendarDate date)
      Sets the container to the specified calendar date.
      Parameters:
      date - value to which to set the container