Uses of Class
org.springframework.data.mongodb.core.aggregation.DateOperators.DateToString
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of DateOperators.DateToString in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionDateOperators.DateToString.FormatBuilder.defaultFormat()
Creates newDateOperators.DateToString
using the server default string format (%Y-%m-%dT%H:%M:%S.%LZ
) for dates.DateOperators.DateToString.onNullReturn
(Object value) Optionally specify the value to return when the date is null or missing.DateOperators.DateToString.onNullReturnValueOf
(String fieldReference) Optionally specify the field holding the value to return when the date is null or missing.DateOperators.DateToString.onNullReturnValueOf
(AggregationExpression expression) Optionally specify the expression to evaluate and return when the date is null or missing.Creates newAggregationExpression
that converts a date object to a string according to a user-specified format.Creates newDateOperators.DateToString
with all previously added arguments appending the given one.DateOperators.DateOperatorFactory.toStringWithDefaultFormat()
Creates newAggregationExpression
that converts a date object to a string according to the server default format.DateOperators.DateToString.withTimezone
(DateOperators.Timezone timezone) Optionally set theDateOperators.Timezone
to use.