-
- All Known Implementing Classes:
DefaultRecordUnmapper
- 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 RecordUnmapper<E,R extends Record>
ARecordUnmapperis a mapper that can receive user objects and convert them back toRecord.RecordUnmapperis used behind the scenes in methods likeDSLContext.newRecord(Table, Object),Record.from(Object)and other methods calledfrom(Object), where the argument object is an object of typeE.The default
RecordUnmapperbehaviour in the context of aConfigurationcan be overridden through thatconfiguration'sConfiguration.recordUnmapperProvider()SPI.The inverse operation is modelled by
RecordMapper.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Runmap(E source)Unmap a POJO into a record.
-
-
-
Method Detail
-
unmap
R unmap(E source) throws MappingException
Unmap a POJO into a record.- Parameters:
source- The source object to copy data from. This is never null.- Throws:
MappingException- wrapping any reflection exception that might have occurred while mapping records.
-
-