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