/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.springframework.jdbc.core.RowMapper
 */
package com.hst.common.util;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import org.springframework.jdbc.core.RowMapper;

public class JdbcRowMapperUtil
implements RowMapper<Map> {
    public HashMap<String, Object> mapRow(ResultSet resultSet, int i) throws SQLException {
        HashMap<String, Object> hashMap = new HashMap<String, Object>();
        int colCount = resultSet.getMetaData().getColumnCount();
        int j = 1;
        while (j <= colCount) {
            String colName = resultSet.getMetaData().getColumnName(j);
            if (!"NULL".equals(colName.toUpperCase())) {
                String value = resultSet.getString(j);
                hashMap.put(colName.toUpperCase(), value);
            }
            ++j;
        }
        return hashMap;
    }
}
