|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
protected DefaultRecordMapperProvider(Configuration configuration)
public final <R extends Record,E> RecordMapper<R,E> provide(RecordType<R> rowType, 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 © 2015. All Rights Reserved.