org.simpleflatmapper.jdbi3.StaticRowMapper Maven / Gradle / Ivy
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