Interface DateTimeFieldOperation<T>
- Type Parameters:
T
-
- All Superinterfaces:
FieldOperation<T>
Operations to filter DateTime fields
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionMatches DateTime values that are after the given valueisAfterOrEqualTo
(Date value) Matches DateTime values that are after or equal to the given valueMatches DateTime values that are before the given valueisBeforeOrEqualTo
(Date value) Matches DateTime values that are before or equal to the given valueMatches DateTime values that are between the given values (exclusive)Matches DateTime values that are equal to the given valueisInDateRange
(Date fromDateOnlyInclusive, Date toDateOnlyInclusive) Matches DateTime values that are in the range of the given Date values (inclusive).
-
Method Details
-
isEqualTo
Matches DateTime values that are equal to the given value- Parameters:
value
-- Returns:
- filter, orderBy, limit, execute operations
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
isBefore
Matches DateTime values that are before the given value- Parameters:
value
-- Returns:
- filter, orderBy, limit, execute operations
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
isBeforeOrEqualTo
Matches DateTime values that are before or equal to the given value- Parameters:
value
-- Returns:
- filter, orderBy, limit, execute operations
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
isAfter
Matches DateTime values that are after the given value- Parameters:
value
-- Returns:
- filter, orderBy, limit, execute operations
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
isAfterOrEqualTo
Matches DateTime values that are after or equal to the given value- Parameters:
value
-- Returns:
- filter, orderBy, limit, execute operations
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
isBetween
Matches DateTime values that are between the given values (exclusive)- Parameters:
fromExclusive
-toExclusive
-- Returns:
- filter, orderBy, limit, execute operations
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
isInDateRange
Matches DateTime values that are in the range of the given Date values (inclusive).
Example:
Date today = new Date(); // result contains all log entries from today 00:00:00 to 23:59:59 List<LogEntry> result = ivy.repo.search(LogEntry.class).dateField("timestamp").isInDateRange(today, today).execute().getAll();
- Parameters:
fromDateOnlyInclusive
- lower inclusive boundary. Only the date part is considered.toDateOnlyInclusive
- higher inclusive boundary. Only the date part is considered.- Returns:
- filter, orderBy, limit, execute operations
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-