- java.lang.Object
-
- jakarta.persistence.criteria.LocalDateTimeField<N>
-
- Type Parameters:
N
- the resulting type of the extracted value
- All Implemented Interfaces:
TemporalField<N,java.time.LocalDateTime>
public class LocalDateTimeField<N> extends java.lang.Object implements TemporalField<N,java.time.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<java.time.LocalDate>
DATE
The date part of a datetime.static LocalDateTimeField<java.lang.Integer>
DAY
The calendar day of the month, numbered from 1.static LocalDateTimeField<java.lang.Integer>
HOUR
The hour of the day in 24-hour time, numbered from 0 to 23.static LocalDateTimeField<java.lang.Integer>
MINUTE
The minute of the hour, numbered from 0 to 59.static LocalDateTimeField<java.lang.Integer>
MONTH
The calendar month of the year, numbered from 1.private java.lang.String
name
static LocalDateTimeField<java.lang.Integer>
QUARTER
The calendar quarter, numbered from 1 to 4.static LocalDateTimeField<java.lang.Double>
SECOND
The second of the minute, numbered from 0 to 59, including a fractional part representing fractions of a secondstatic LocalDateTimeField<java.time.LocalTime>
TIME
The time part of a datetime.static LocalDateTimeField<java.lang.Integer>
WEEK
The ISO-8601 week number.static LocalDateTimeField<java.lang.Integer>
YEAR
The calendar year.
-
Constructor Summary
Constructors Modifier Constructor Description private
LocalDateTimeField(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
YEAR
public static final LocalDateTimeField<java.lang.Integer> YEAR
The calendar year.
-
QUARTER
public static final LocalDateTimeField<java.lang.Integer> QUARTER
The calendar quarter, numbered from 1 to 4.
-
MONTH
public static final LocalDateTimeField<java.lang.Integer> MONTH
The calendar month of the year, numbered from 1.
-
WEEK
public static final LocalDateTimeField<java.lang.Integer> WEEK
The ISO-8601 week number.
-
DAY
public static final LocalDateTimeField<java.lang.Integer> DAY
The calendar day of the month, numbered from 1.
-
HOUR
public static final LocalDateTimeField<java.lang.Integer> HOUR
The hour of the day in 24-hour time, numbered from 0 to 23.
-
MINUTE
public static final LocalDateTimeField<java.lang.Integer> MINUTE
The minute of the hour, numbered from 0 to 59.
-
SECOND
public static final LocalDateTimeField<java.lang.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<java.time.LocalDate> DATE
The date part of a datetime.
-
TIME
public static final LocalDateTimeField<java.time.LocalTime> TIME
The time part of a datetime.
-
-