Here you can find the source of getIntegerValue(ResultSet resultSet, String columnName)
@SuppressWarnings("UnnecessaryBoxing") public static Integer getIntegerValue(ResultSet resultSet, String columnName) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSet; import java.sql.SQLException; public class Main { /**/*from w ww .j ava2s .c o m*/ * Return any integer value. */ @SuppressWarnings("UnnecessaryBoxing") public static Integer getIntegerValue(ResultSet resultSet, String columnName) throws SQLException { int value = resultSet.getInt(columnName); if (resultSet.wasNull()) { return null; } return Integer.valueOf(value); } }