org.sfm.jooq.JooqRecordMapperWrapper 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 JooqRecordMapperWrapper implements RecordMapper {
private final Mapper mapper;
public JooqRecordMapperWrapper(Mapper mapper) {
this.mapper = mapper;
}
@Override
public E map(R record) {
return mapper.map(record);
}
}