Top Description Fields Constructors Methods
jakarta.persistence.criteria

public Class LocalDateField<N>

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

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

Field Summary

Modifier and TypeField and Description
public static final LocalDateField<Integer>
DAY

The calendar day of the month, numbered from 1.

public static final LocalDateField<Integer>
MONTH

The calendar month of the year, numbered from 1.

private final String
public static final LocalDateField<Integer>
QUARTER

The calendar quarter, numbered from 1 to 4.

public static final LocalDateField<Integer>
WEEK

The ISO-8601 week number.

public static final LocalDateField<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

DAYback to summary
public static final LocalDateField<Integer> DAY

The calendar day of the month, numbered from 1.

MONTHback to summary
public static final LocalDateField<Integer> MONTH

The calendar month of the year, numbered from 1.

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

The calendar quarter, numbered from 1 to 4.

WEEKback to summary
public static final LocalDateField<Integer> WEEK

The ISO-8601 week number.

YEARback to summary
public static final LocalDateField<Integer> YEAR

The calendar year.

Constructor Detail

LocalDateFieldback to summary
private LocalDateField(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