org.sfm.jooq.RecordMapperWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleFlatMapper Show documentation
Show all versions of simpleFlatMapper Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.sfm.jooq;
import org.jooq.Record;
import org.jooq.RecordMapper;
import org.sfm.map.Mapper;
public class RecordMapperWrapper implements RecordMapper {
private final Mapper mapper;
public RecordMapperWrapper(Mapper mapper) {
this.mapper = mapper;
}
@Override
public E map(R record) {
return mapper.map(record);
}
}