RecordMapper instances.
In order to inject custom Record to POJO mapping
behaviour, users can supply a custom RecordMapperProvider to their
Configuration instances. This provider will be used in any of these
methods (non-exhaustive list):
CursorRecordResultResult#intoMap(Field, Class)Result#intoMap(Field[], Class)Result#intoGroups(Field, Class)Result#intoGroups(Field[], Class)Result#into(Class)ResultQueryResultQuery#fetchMap(Field, Class)ResultQuery#fetchMap(Field[], Class)ResultQuery#fetchGroups(Field, Class)ResultQuery#fetchGroups(Field[], Class)ResultQuery#fetchInto(Class)ResultQuery#fetchOneInto(Class)DAODAO methods make use of any of the above methods
While not strictly required, it is advisable to implement a
RecordMapperProvider whose behaviour is consistent with the
configured RecordUnmapperProvider.
RecordMapper, Configuration
| Modifier and Type | Method and Description |
|---|---|
| public <R extends Record, E> @NotNull RecordMapper | Returns: ARecordMapper instance.The recordType, Class<? extends E> RecordType of records that shall be
mapped by the returned RecordMapper.The user type that was passed into type)Record#into(Class)
or any other method.Provide a |
| provide | back to summary |
|---|---|
| public <R extends Record, E> @NotNull RecordMapper Provide a Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
A
| |