public interface RecordMapperProvider
In order to inject custom
behaviour, users can supply a custom
RecordMapperProvider to their
Configuration instances. This provider will be used in any of these
methods (non-exhaustive list):
DAOmethods make use of any of the above methods
|Modifier and Type||Method and Description|
<R extends Record,E> RecordMapper<R,E> provide(RecordType<R> recordType, java.lang.Class<? extends E> type)
Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
RecordMapper instance should be able to map any number of
records with the same
RecordType. For example, for
RecordMapper.map(Record) are called only once. For
provide() is called only once,
RecordMapper.map(Record) is called several times, once for
Record in the
RecordTypeof records that shall be mapped by the returned
type- The user type that was passed into
Record.into(Class)or any other method.
Copyright © 2014. All Rights Reserved.