-
- All Known Implementing Classes:
DefaultRecordMapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RecordMapper<R extends Record,E>
ARecordMapperis a mapper that can receiveRecordobjects, when fetching data from the database, transforming them into a custom type<E>.RecordMapperis used behind the scenes in methods likeResultQuery.fetchInto(Class),Result.into(Class),Record.into(Class)and other methods calledinto(Class), where the argument class is aClassof typeE.The default
RecordMapperbehaviour in the context of aConfigurationcan be overridden through thatconfiguration'sConfiguration.recordMapperProvider()SPI.The inverse operation is modelled by
RecordUnmapper.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Emap(R record)Map a record into a POJO.
-