All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleflatmapper.map.mapper.DefaultTransfromerSetRowMapperBuilder Maven / Gradle / Ivy

Go to download

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);
            }
        });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy