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

org.simpleflatmapper.jdbi3.StaticRowMapper Maven / Gradle / Ivy

There is a newer version: 8.2.3
Show newest version
package org.simpleflatmapper.jdbi3;

import org.jdbi.v3.core.mapper.RowMapper;
import org.jdbi.v3.core.statement.StatementContext;
import org.simpleflatmapper.map.ContextualSourceMapper;
import org.simpleflatmapper.map.SourceMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class StaticRowMapper implements RowMapper {

    private final ContextualSourceMapper mapper;

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


    @Override
    public T map(ResultSet resultSet, StatementContext statementContext) throws SQLException {
        return mapper.map(resultSet);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy