- java.lang.Object
-
- jakarta.persistence.criteria.LocalDateTimeField<N>
-
- Type Parameters:
N- the resulting type of the extracted value
- All Implemented Interfaces:
TemporalField<N,LocalDateTime>
public class LocalDateTimeField<N> extends Object implements TemporalField<N,LocalDateTime>
Each instance represents a type of field which can be extracted from aLocalDateTime.- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static LocalDateTimeField<LocalDate>DATEThe date part of a datetime.static LocalDateTimeField<Integer>DAYThe calendar day of the month, numbered from 1.static LocalDateTimeField<Integer>HOURThe hour of the day in 24-hour time, numbered from 0 to 23.static LocalDateTimeField<Integer>MINUTEThe minute of the hour, numbered from 0 to 59.static LocalDateTimeField<Integer>MONTHThe calendar month of the year, numbered from 1.static LocalDateTimeField<Integer>QUARTERThe calendar quarter, numbered from 1 to 4.static LocalDateTimeField<Double>SECONDThe second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a secondstatic LocalDateTimeField<LocalTime>TIMEThe time part of a datetime.static LocalDateTimeField<Integer>WEEKThe ISO-8601 week number.static LocalDateTimeField<Integer>YEARThe calendar year.
-
-
-
Field Detail
-
YEAR
public static final LocalDateTimeField<Integer> YEAR
The calendar year.
-
QUARTER
public static final LocalDateTimeField<Integer> QUARTER
The calendar quarter, numbered from 1 to 4.
-
MONTH
public static final LocalDateTimeField<Integer> MONTH
The calendar month of the year, numbered from 1.
-
WEEK
public static final LocalDateTimeField<Integer> WEEK
The ISO-8601 week number.
-
DAY
public static final LocalDateTimeField<Integer> DAY
The calendar day of the month, numbered from 1.
-
HOUR
public static final LocalDateTimeField<Integer> HOUR
The hour of the day in 24-hour time, numbered from 0 to 23.
-
MINUTE
public static final LocalDateTimeField<Integer> MINUTE
The minute of the hour, numbered from 0 to 59.
-
SECOND
public static final LocalDateTimeField<Double> SECOND
The second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second
-
DATE
public static final LocalDateTimeField<LocalDate> DATE
The date part of a datetime.
-
TIME
public static final LocalDateTimeField<LocalTime> TIME
The time part of a datetime.
-
-