- java.lang.Object
-
- jakarta.persistence.criteria.LocalDateField<N>
-
- Type Parameters:
N- the resulting type of the extracted value
- All Implemented Interfaces:
TemporalField<N,java.time.LocalDate>
public class LocalDateField<N> extends java.lang.Object implements TemporalField<N,java.time.LocalDate>
Each instance represents a type of field which can be extracted from aLocalDate.- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static LocalDateField<java.lang.Integer>DAYThe calendar day of the month, numbered from 1.static LocalDateField<java.lang.Integer>MONTHThe calendar month of the year, numbered from 1.private java.lang.Stringnamestatic LocalDateField<java.lang.Integer>QUARTERThe calendar quarter, numbered from 1 to 4.static LocalDateField<java.lang.Integer>WEEKThe ISO-8601 week number.static LocalDateField<java.lang.Integer>YEARThe calendar year.
-
Constructor Summary
Constructors Modifier Constructor Description privateLocalDateField(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
YEAR
public static final LocalDateField<java.lang.Integer> YEAR
The calendar year.
-
QUARTER
public static final LocalDateField<java.lang.Integer> QUARTER
The calendar quarter, numbered from 1 to 4.
-
MONTH
public static final LocalDateField<java.lang.Integer> MONTH
The calendar month of the year, numbered from 1.
-
WEEK
public static final LocalDateField<java.lang.Integer> WEEK
The ISO-8601 week number.
-
DAY
public static final LocalDateField<java.lang.Integer> DAY
The calendar day of the month, numbered from 1.
-
-