Top Description Fields Constructors Methods
jakarta.persistence.criteria

public Class LocalDateTimeField<N>

extends Object
implements TemporalField<N, LocalDateTime>
Class Inheritance
All Implemented Interfaces
jakarta.persistence.criteria.TemporalField
Type Parameters
<N>
the resulting type of the extracted value
Imports
java.time.LocalDate, .LocalDateTime, .LocalTime

Each instance represents a type of field which can be extracted from a LocalDateTime.
Since
3.2

Field Summary

Modifier and TypeField and Description
public static final LocalDateTimeField<LocalDate>
DATE

The date part of a datetime.

public static final LocalDateTimeField<Integer>
DAY

The calendar day of the month, numbered from 1.

public static final LocalDateTimeField<Integer>
HOUR

The hour of the day in 24-hour time, numbered from 0 to 23.

public static final LocalDateTimeField<Integer>
MINUTE

The minute of the hour, numbered from 0 to 59.

public static final LocalDateTimeField<Integer>
MONTH

The calendar month of the year, numbered from 1.

private final String
public static final LocalDateTimeField<Integer>
QUARTER

The calendar quarter, numbered from 1 to 4.

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

public static final LocalDateTimeField<LocalTime>
TIME

The time part of a datetime.

public static final LocalDateTimeField<Integer>
WEEK

The ISO-8601 week number.

public static final LocalDateTimeField<Integer>
YEAR

The calendar year.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DATEback to summary
public static final LocalDateTimeField<LocalDate> DATE

The date part of a datetime.

DAYback to summary
public static final LocalDateTimeField<Integer> DAY

The calendar day of the month, numbered from 1.

HOURback to summary
public static final LocalDateTimeField<Integer> HOUR

The hour of the day in 24-hour time, numbered from 0 to 23.

MINUTEback to summary
public static final LocalDateTimeField<Integer> MINUTE

The minute of the hour, numbered from 0 to 59.

MONTHback to summary
public static final LocalDateTimeField<Integer> MONTH

The calendar month of the year, numbered from 1.

nameback to summary
private final String name
QUARTERback to summary
public static final LocalDateTimeField<Integer> QUARTER

The calendar quarter, numbered from 1 to 4.

SECONDback to summary
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

TIMEback to summary
public static final LocalDateTimeField<LocalTime> TIME

The time part of a datetime.

WEEKback to summary
public static final LocalDateTimeField<Integer> WEEK

The ISO-8601 week number.

YEARback to summary
public static final LocalDateTimeField<Integer> YEAR

The calendar year.

Constructor Detail

LocalDateTimeFieldback to summary
private LocalDateTimeField(String name)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override