io.ifar.skidroad.jdbi.CountByStateMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skid-road-jdbi Show documentation
Show all versions of skid-road-jdbi Show documentation
Provides JDBI-based LogFileTracker implementation
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