Java SQL ResultSet Int Read getIntegerFromResultSet(ResultSet rs, String db_name)

Here you can find the source of getIntegerFromResultSet(ResultSet rs, String db_name)

Description

get Integer From Result Set

License

Open Source License

Declaration

public static Integer getIntegerFromResultSet(ResultSet rs, String db_name) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

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

public class Main {
    public static Integer getIntegerFromResultSet(ResultSet rs, String db_name) throws SQLException {
        int n = rs.getInt(db_name);
        return rs.wasNull() ? null : Integer.valueOf(n);
    }//from   www . j  ava  2s .co  m
}

Related

  1. getInteger(ResultSet rs, String colName)
  2. getInteger(ResultSet rs, String column)
  3. getInteger(ResultSet rs, String columnName)
  4. getInteger(ResultSet rs, String strColName)
  5. getInteger(ResultSet s, int idx)
  6. getIntegerList(ResultSet resultSet, String columnName)
  7. getIntegerNotZeroNotMinValue(ResultSet rs, String columnLabel)
  8. getIntegers(ResultSet rs, String column)
  9. getIntegerValue(ResultSet resultSet, String columnName)