Class TimestampToLocalDateTimeConverter
java.lang.Object
org.jooq.impl.AbstractConverter<Timestamp, LocalDateTime>
org.jooq.impl.AbstractContextConverter<Timestamp, LocalDateTime>
org.jooq.impl.TimestampToLocalDateTimeConverter
- All Implemented Interfaces:
Serializable, ContextConverter<Timestamp, LocalDateTime>, Converter<Timestamp, LocalDateTime>
@Deprecated
public final class TimestampToLocalDateTimeConverter
extends AbstractContextConverter<Timestamp, LocalDateTime>
Deprecated.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LocalDateTimefrom(Timestamp t, ConverterContext scope) Deprecated.Read and convert a database object to a user object.final Timestampto(LocalDateTime u, ConverterContext scope) Deprecated.Convert and write a user object to a database object.Methods inherited from class AbstractContextConverter
toStringMethods inherited from class AbstractConverter
fromType, toTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Converter
fromSupported, fromType, toSupported, toType
-
Constructor Details
-
TimestampToLocalDateTimeConverter
public TimestampToLocalDateTimeConverter()Deprecated.
-
-
Method Details
-
from
Deprecated.Description copied from interface:ContextConverterRead and convert a database object to a user object.Implementations that don't support this conversion are expected to override
Converter.fromSupported()to indicate lack of support.- Parameters:
t- The database object.scope- The context of this conversion.- Returns:
- The user object.
-
to
Deprecated.Description copied from interface:ContextConverterConvert and write a user object to a database object.Implementations that don't support this conversion are expected to override
Converter.toSupported()to indicate lack of support.- Parameters:
u- The user object.scope- The context of this conversion.- Returns:
- The database object.
-
Converter.ofNullable(Class, Class, Function, Function)instead, e.g.Converter.ofNullable(Timestamp.class, LocalDateTime.class, Timestamp::toLocalDateTime, Timestamp::valueOf).