org.simpleflatmapper.jdbi.DefaultSfmResultSetMapper Maven / Gradle / Ivy
package org.simpleflatmapper.jdbi;
import org.simpleflatmapper.map.ContextualSourceMapper;
import org.simpleflatmapper.map.SourceMapper;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSetMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
public class DefaultSfmResultSetMapper implements ResultSetMapper {
private final ContextualSourceMapper mapper;
public DefaultSfmResultSetMapper(ContextualSourceMapper mapper) {
this.mapper = mapper;
}
@Override
public T map(int i, ResultSet resultSet, StatementContext statementContext) throws SQLException {
return mapper.map(resultSet);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy