org.simpleflatmapper.map.mapper.DefaultTransfromerSetRowMapperBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-map Show documentation
Show all versions of sfm-map Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
The newest version!
package org.simpleflatmapper.map.mapper;
import org.simpleflatmapper.map.FieldKey;
import org.simpleflatmapper.map.FieldMapper;
import org.simpleflatmapper.map.MapperConfig;
import org.simpleflatmapper.map.SetRowMapper;
import org.simpleflatmapper.map.SourceFieldMapper;
import org.simpleflatmapper.map.context.MappingContextFactoryBuilder;
import org.simpleflatmapper.map.property.FieldMapperColumnDefinition;
import org.simpleflatmapper.util.Function;
public class DefaultTransfromerSetRowMapperBuilder, E extends Exception>
extends TransfromerSetRowMapperBuilder, SetRowMapper, ROW, SET, I, O, K, E> {
public DefaultTransfromerSetRowMapperBuilder(
final SetRowMapperBuilder, ROW, SET, I, K, E> delegate,
final Function transformer) {
super(delegate, new Function, SetRowMapper>() {
@Override
public SetRowMapper apply(SetRowMapper setRowMapper) {
return new TransformSetRowMapper(setRowMapper, transformer);
}
});
}
}