Top Description Methods
org.jooq

public Interface RecordUnmapper<E, R extends org.jooq.Record>

Known Direct Implementers
org.jooq.impl.DefaultRecordUnmapper, org.jooq.impl.DefaultRecordUnmapper.ArrayUnmapper, org.jooq.impl.DefaultRecordUnmapper.IterableUnmapper, org.jooq.impl.DefaultRecordUnmapper.MapUnmapper, org.jooq.impl.DefaultRecordUnmapper.PojoUnmapper
Annotations
@FunctionalInterface
Imports
org.jooq.exception.MappingException, org.jetbrains.annotations.NotNull

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.

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public R
unmap(E
The source object to copy data from. This is never null.
source
)

Unmap a POJO into a record.

Method Detail

unmapback to summary
public R unmap(E source) throws MappingException

Unmap a POJO into a record.

Parameters
source:E

The source object to copy data from. This is never null.

Annotations
@NotNull
Exceptions
MappingException:
wrapping any reflection exception that might have occurred while mapping records.