- java.lang.Object
-
- org.jooq.impl.DefaultRecordUnmapper<E,R>
-
- All Implemented Interfaces:
RecordUnmapper<E,R>
public class DefaultRecordUnmapper<E,R extends Record> extends Object implements RecordUnmapper<E,R>
A default implementation for unmapping a custom type to aRecord
.This default implementation currently supports unmapping the following types to a
Record
:Map
: See alsoRecord.fromMap(Map)
Object[]
: See alsoRecord.fromArray(Object...)
- POJOs: See also
Record.from(Object)
- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description DefaultRecordUnmapper(Class<? extends E> type, RecordType<R> rowType, Configuration configuration)
-
-
-
Constructor Detail
-
DefaultRecordUnmapper
public DefaultRecordUnmapper(Class<? extends E> type, RecordType<R> rowType, Configuration configuration)
-
-
Method Detail
-
unmap
public final R unmap(E source)
Description copied from interface:RecordUnmapper
Unmap a POJO into a record.- Specified by:
unmap
in interfaceRecordUnmapper<E,R extends Record>
- Parameters:
source
- The source object to copy data from. This is never null.
-
-