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

io.ifar.skidroad.jdbi.CountByStateMapper Maven / Gradle / Ivy

There is a newer version: 9
Show newest version
package io.ifar.skidroad.jdbi;

import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSetMapper;

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

/**
 *
 */
public class CountByStateMapper implements ResultSetMapper {

    @Override
    public CountByState map(int index, ResultSet r, StatementContext ctx) throws SQLException {
        int col = 1;
        return new CountByState(r.getString(col++),r.getInt(col));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy