Class DateIsoValue
java.lang.Object
de.elo.ix.client.esearch.query.data.FilterValue
de.elo.ix.client.esearch.query.data.DateValue
de.elo.ix.client.esearch.query.data.DateSingleValue
de.elo.ix.client.esearch.query.data.DateIsoValue
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprotected long
ISO-Date.protected DateRoundE
Define to which time unit this date should be rounded.
If it is != null, a range query is performed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
void
setDateIso
(long dateIso) void
setRoundTo
(DateRoundE roundTo) toString()
-
Field Details
-
dateIso
protected long dateIsoISO-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
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
-
-
Method Details
-
getDateIso
public long getDateIso() -
getRoundTo
-
setDateIso
public void setDateIso(long dateIso) -
setRoundTo
-
toString
- Overrides:
toString
in classFilterValue
-