RecordUnmapper instances.
In order to inject custom POJO to Record mapping
behaviour, users can supply a custom RecordUnmapperProvider to their
Configuration instances. This provider will be used in any of these
methods (non-exhaustive list):
RecordRecord#from(Object)Record#from(Object, Field...) Record#from(Object, int...) Record#from(Object, Name...) Record#from(Object, String...) DSLContext
While not strictly required, it is advisable to implement a
RecordUnmapperProvider whose behaviour is consistent with the
configured RecordMapperProvider.
RecordUnmapper, Configuration
| Modifier and Type | Method and Description |
|---|---|
| public <E, R extends Record> @NotNull RecordUnmapper | Returns: ARecordUnmapper instance.The user type that was passed into
type, RecordType<R> Record#from(Object) or any other method.The recordType)RecordType of records that shall be
mapped by the returned RecordUnmapper.Provide a |
| provide | back to summary |
|---|---|
| public <E, R extends Record> @NotNull RecordUnmapper Provide a Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
| |