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

org.simpleflatmapper.jooq.JooqRecordUnmapperWrapper Maven / Gradle / Ivy

package org.simpleflatmapper.jooq;

import org.jooq.Record;
import org.jooq.RecordMapper;
import org.jooq.RecordUnmapper;
import org.jooq.exception.MappingException;
import org.simpleflatmapper.map.ContextualSourceMapper;
import org.simpleflatmapper.map.SourceMapper;
import org.simpleflatmapper.map.context.MappingContextFactory;

public class JooqRecordUnmapperWrapper implements RecordUnmapper {

	private final ContextualSourceMapper mapper;

	public JooqRecordUnmapperWrapper(ContextualSourceMapper mapper) {
		this.mapper = mapper;
	}

	public ContextualSourceMapper getMapper() {
		return mapper;
	}

	@Override
	public R unmap(E e) throws MappingException {
		return mapper.map(e);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy