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

org.sfm.map.impl.MapperImpl 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.sfm.map.impl;

import org.sfm.reflect.Instantiator;

public class MapperImpl extends AbstractMapperImpl {
	
	private final FieldMapper[] fieldMappers;
	
	public MapperImpl(final FieldMapper[] mappers, final Instantiator instantiator) {
		super(instantiator);
		this.fieldMappers = mappers;
	}

	protected final void mapFields(final S source, final T target) throws Exception {
		for(int i = 0; i < fieldMappers.length; i++) {
			fieldMappers[i].map(source, target);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy