Package org.jooq.impl

Class DateToLocalDateConverter

  • All Implemented Interfaces:
    java.io.Serializable, Converter<java.sql.Date,​java.time.LocalDate>

    public final class DateToLocalDateConverter
    extends AbstractConverter<java.sql.Date,​java.time.LocalDate>
    Author:
    Lukas Eder
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.LocalDate from​(java.sql.Date t)
      Convert a database object to a user object
      java.sql.Date to​(java.time.LocalDate u)
      Convert a user object to a database object
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DateToLocalDateConverter

        public DateToLocalDateConverter()
    • Method Detail

      • from

        public final java.time.LocalDate from​(java.sql.Date t)
        Description copied from interface: Converter
        Convert a database object to a user object
        Parameters:
        t - The database object
        Returns:
        The user object
      • to

        public final java.sql.Date to​(java.time.LocalDate u)
        Description copied from interface: Converter
        Convert a user object to a database object
        Parameters:
        u - The user object
        Returns:
        The database object