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

org.simpleflatmapper.map.MappingContext 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;

import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.map.context.MappingContextFactory;

public class MappingContext implements Context {

    public static final MappingContext EMPTY_CONTEXT = new MappingContext();

    public static final MappingContextFactory EMPTY_FACTORY = new MappingContextFactory() {
        @Override
        public MappingContext newContext() {
            return EMPTY_CONTEXT;
        }
    };

    public boolean broke(S source) {
        return true;
    }

    public void handleSource(S source) {
    }
    
    public void markAsBroken() {
    }

    @Override
    public  T context(int i) {
        return null;
    }

    public void setCurrentValue(int i, Object value) {

    }

    public Object getCurrentValue(int i) {
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy