Top Constructors Methods
org.jooq.impl

public final Class DateToLocalDateConverter

extends AbstractContextConverter<Date, LocalDate>
Class Inheritance
Annotations
@Deprecated
Imports
java.sql.Date, java.time.LocalDate, java.util.function.Function, org.jooq.Converter, .ConverterContext

Deprecated

- 3.15.0 - [#11505] - Use Converter#ofNullable(Class, Class, Function, Function) instead, e.g. Converter.ofNullable(Date.class, LocalDate.class, Date::toLocalDate, Date::valueOf).

Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final LocalDate
from(Date
The database object.
t
,
ConverterContext
The context of this conversion.
scope
)

Implements org.jooq.ContextConverter.from.

Read and convert a database object to a user object.
public final Date
to(LocalDate
The user object.
u
,
ConverterContext
The context of this conversion.
scope
)

Implements org.jooq.ContextConverter.to.

Convert and write a user object to a database object.
Inherited from org.jooq.impl.AbstractContextConverter:
toString

Constructor Detail

DateToLocalDateConverterback to summary
public DateToLocalDateConverter()

Method Detail

fromback to summary
public final LocalDate from(Date t, ConverterContext scope)

Implements org.jooq.ContextConverter.from.

Doc from org.jooq.ContextConverter.from.

Read and convert a database object to a user object.

Parameters
t:Date

The database object.

scope:ConverterContext

The context of this conversion.

Returns:LocalDate

The user object.

Annotations
@Override
toback to summary
public final Date to(LocalDate u, ConverterContext scope)

Implements org.jooq.ContextConverter.to.

Doc from org.jooq.ContextConverter.to.

Convert and write a user object to a database object.

Parameters
u:LocalDate

The user object.

scope:ConverterContext

The context of this conversion.

Returns:Date

The database object.

Annotations
@Override