Package org.jooq.impl
Class DateToLocalDateConverter
- java.lang.Object
-
- org.jooq.impl.AbstractConverter<java.sql.Date,java.time.LocalDate>
-
- org.jooq.impl.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
-
-
Constructor Summary
Constructors Constructor Description DateToLocalDateConverter()
-
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 objectjava.sql.Date
to(java.time.LocalDate u)
Convert a user object to a database object-
Methods inherited from class org.jooq.impl.AbstractConverter
fromType, toString, toType
-
-
-
-
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
-
-