Package org.jooq.impl
Class DefaultRecordUnmapper<E,R extends Record>
- java.lang.Object
-
- org.jooq.impl.DefaultRecordUnmapper<E,R>
-
- All Implemented Interfaces:
RecordUnmapper<E,R>
public class DefaultRecordUnmapper<E,R extends Record> extends java.lang.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(java.lang.Class<? extends E> type, RecordType<R> rowType, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
unmap(E source)
Unmap a POJO into a record.
-
-
-
Constructor Detail
-
DefaultRecordUnmapper
public DefaultRecordUnmapper(java.lang.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.
-
-