Module spring.data.mongodb
Interface DateOperators.DateFromParts.DateFromPartsWithYear
- Enclosing class:
- DateOperators.DateFromParts
public static interface DateOperators.DateFromParts.DateFromPartsWithYear
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionSet the year to the given value which must resolve to a calendar year.default DateOperators.DateFromPartsSet the year to the value resolved by following the givenfield reference.default DateOperators.DateFromPartsyearOf(AggregationExpression expression) Set the year to the result of the givenexpression.
-
Method Details
-
year
Set the year to the given value which must resolve to a calendar year. Can be a simple value,field referenceorexpression.- Parameters:
year- must not be null.- Returns:
- new instance of
DateOperators.DateFromParts. - Throws:
IllegalArgumentException- if given year is null
-
yearOf
Set the year to the value resolved by following the givenfield reference.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
DateOperators.DateFromParts. - Throws:
IllegalArgumentException- if given fieldReference is null.
-
yearOf
Set the year to the result of the givenexpression.- Parameters:
expression- must not be null.- Returns:
- new instance of
DateOperators.DateFromParts. - Throws:
IllegalArgumentException- if given expression is null.
-