Module org.jooq
Package org.jooq.impl

Class DateToLocalDateConverter

All Implemented Interfaces:
Serializable, ContextConverter<Date,LocalDate>, Converter<Date,LocalDate>

@Deprecated public final class DateToLocalDateConverter extends AbstractContextConverter<Date,LocalDate>
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
See Also:
  • Constructor Details

    • DateToLocalDateConverter

      public DateToLocalDateConverter()
      Deprecated.
  • Method Details

    • from

      public final LocalDate from(Date t, ConverterContext scope)
      Deprecated.
      Description copied from interface: ContextConverter
      Read 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

      public final Date to(LocalDate u, ConverterContext scope)
      Deprecated.
      Description copied from interface: ContextConverter
      Convert 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.