Module org.jooq
Package org.jooq

Interface RecordUnmapper<E,R extends Record>

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.

@FunctionalInterface public interface RecordUnmapper<E,R extends Record>
A RecordUnmapper is a mapper that can receive user objects and convert them back to Record.

RecordUnmapper is used behind the scenes in methods like DSLContext.newRecord(Table, Object), Record.from(Object) and other methods called from(Object), where the argument object is an object of type E.

The default RecordUnmapper behaviour in the context of a Configuration can be overridden through that configuration's Configuration.recordUnmapperProvider() SPI.

The inverse operation is modelled by RecordMapper.

Lukas Eder
  • Method Summary

    Modifier and Type
    unmap(E source)
    Unmap a POJO into a record.
  • Method Details

    • unmap

      @NotNull R unmap(E source) throws MappingException
      Unmap a POJO into a record.
      source - The source object to copy data from. This is never null.
      MappingException - wrapping any reflection exception that might have occurred while mapping records.