Top Constructors Methods
org.jooq.impl

public final Class TimestampToLocalDateTimeConverter

extends AbstractContextConverter<Timestamp, LocalDateTime>
Class Inheritance
Annotations
@Deprecated
Imports
java.sql.Timestamp, java.time.LocalDateTime, 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(Timestamp.class, LocalDateTime.class, Timestamp::toLocalDateTime, Timestamp::valueOf).

Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final LocalDateTime
from(Timestamp
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 Timestamp
to(LocalDateTime
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

TimestampToLocalDateTimeConverterback to summary
public TimestampToLocalDateTimeConverter()

Method Detail

fromback to summary
public final LocalDateTime from(Timestamp 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:Timestamp

The database object.

scope:ConverterContext

The context of this conversion.

Returns:LocalDateTime

The user object.

Annotations
@Override
toback to summary
public final Timestamp to(LocalDateTime 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:LocalDateTime

The user object.

scope:ConverterContext

The context of this conversion.

Returns:Timestamp

The database object.

Annotations
@Override