public class DefaultRecordUnmapper<E,R extends Record> extends java.lang.Object implements RecordUnmapper<E,R>
Record
.
This default implementation currently supports unmapping the following types
to a Record
:
Map
: See also Record.fromMap(Map)
Object[]
: See also Record.fromArray(Object...)
Record.from(Object)
Constructor and Description |
---|
DefaultRecordUnmapper(java.lang.Class<? extends E> type,
RecordType<R> rowType,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
R |
unmap(E source)
Unmap a POJO into a record.
|
public DefaultRecordUnmapper(java.lang.Class<? extends E> type, RecordType<R> rowType, Configuration configuration)
public final R unmap(E source)
RecordUnmapper
unmap
in interface RecordUnmapper<E,R extends Record>
source
- The source object to copy data from. This is never null.Copyright © 2018. All Rights Reserved.