Here you can find the source of getIntegerFromResultSet(ResultSet rs, String db_name)
public static Integer getIntegerFromResultSet(ResultSet rs, String db_name) throws SQLException
//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 }