Module org.jooq
Package org.jooq

Interface ConverterProvider

  • All Known Implementing Classes:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface ConverterProvider
    A ConverterProvider provides Converter implementations for any combination of types <T> and <U>.

    ConverterProvider can be used together with RecordMapper, e.g. when mapping JSON or XML data types onto POJO types using third party libraries like Jackson, Gson, JAXB, or others.

    Lukas Eder
    • Method Detail

      • provide

        <T,​U> @Nullable Converter<T,​U> provide​(Class<T> tType,
                                                           Class<U> uType)
        Provide a converter that can convert between <T> and <U> types.
        The converter for <T, U>, or null if no such converter could be provided, in case of which jOOQ's DefaultConverterProvider applies.