Class DateIsoValue

All Implemented Interfaces:
Serializable

public class DateIsoValue extends DateSingleValue

Class to commit a date value to iSearch via QueryFilter.

Date format: YYYYMMddHHmmss
If less than 14 digits are commited, it is converted to a 14 digit numer, e.g.: "2017" -> "20170101000000"

If roundTo is null, a search for an exact date is executed.

If roundTo is != null, DateIsoValue is converted to a Range query. From is dateIso rounded down, To is dateIso rounded up.

Example dateIso=2017, roundTo=DateRoundC.YEAR results in From=01.01.2017 00:00:00, To=31.12.2017 23:59:59

The delivered date is converted to the time zone submitted in ClientInfo

Since:
11.00.000.019
See Also:
  • Field Details

    • dateIso

      protected long dateIso

      ISO-Date.

      Number of digits defines kind of timeunit:
      • 4 digits for year.
      • 6 digits for year with month.
      • 8 digits for date with days.
      • 10 digits for date with hours.
      • 12 digits for date with minutes.
      • 14 digits for date with seconds
    • roundTo

      protected DateRoundE roundTo
      Define to which time unit this date should be rounded.
      If it is != null, a range query is performed.
  • Constructor Details

    • DateIsoValue

      public DateIsoValue()
    • DateIsoValue

      public DateIsoValue(long dateIso)
    • DateIsoValue

      public DateIsoValue(long dateIso, DateRoundE roundTo)
  • Method Details

    • getDateIso

      public long getDateIso()
    • getRoundTo

      public DateRoundE getRoundTo()
    • setDateIso

      public void setDateIso(long dateIso)
    • setRoundTo

      public void setRoundTo(DateRoundE roundTo)
    • toString

      public String toString()
      Overrides:
      toString in class FilterValue