@FunctionalInterface
public interface RecordMapper<R extends Record,E>
RecordMapper is a mapper that can receive Record
objects, when fetching data from the database, transforming them into a
custom type <E>.
RecordMapper is used behind the scenes in methods like
ResultQuery.fetchInto(Class), Result.into(Class),
Record.into(Class) and other methods called into(Class),
where the argument class is a Class of type E.
The default RecordMapper behaviour in the context of a
Configuration can be overridden through that
configuration's Configuration.recordMapperProvider()
SPI.
The inverse operation is modelled by RecordUnmapper.
| Modifier and Type | Method and Description |
|---|---|
E |
map(R record)
Map a record into a POJO.
|
Copyright © 2018. All Rights Reserved.