Package jakarta.persistence.criteria
Class LocalDateTimeField<N>
java.lang.Object
jakarta.persistence.criteria.LocalDateTimeField<N>
- Type Parameters:
N
- the resulting type of the extracted value
- All Implemented Interfaces:
TemporalField<N,
LocalDateTime>
Each instance represents a type of field which can be
extracted from a
LocalDateTime
.- Since:
- 3.2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LocalDateTimeField<LocalDate>
The date part of a datetime.static final LocalDateTimeField<Integer>
The calendar day of the month, numbered from 1.static final LocalDateTimeField<Integer>
The hour of the day in 24-hour time, numbered from 0 to 23.static final LocalDateTimeField<Integer>
The minute of the hour, numbered from 0 to 59.static final LocalDateTimeField<Integer>
The calendar month of the year, numbered from 1.static final LocalDateTimeField<Integer>
The calendar quarter, numbered from 1 to 4.static final LocalDateTimeField<Double>
The second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a secondstatic final LocalDateTimeField<LocalTime>
The time part of a datetime.static final LocalDateTimeField<Integer>
The ISO-8601 week number.static final LocalDateTimeField<Integer>
The calendar year. -
Method Summary
-
Field Details
-
YEAR
The calendar year. -
QUARTER
The calendar quarter, numbered from 1 to 4. -
MONTH
The calendar month of the year, numbered from 1. -
WEEK
The ISO-8601 week number. -
DAY
The calendar day of the month, numbered from 1. -
HOUR
The hour of the day in 24-hour time, numbered from 0 to 23. -
MINUTE
The minute of the hour, numbered from 0 to 59. -
SECOND
The second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a second -
DATE
The date part of a datetime. -
TIME
The time part of a datetime.
-
-
Method Details