Here you can find the source of getLongValue(ResultSet resultSet, int columnIndex)
@SuppressWarnings("UnnecessaryBoxing") public static Long getLongValue(ResultSet resultSet, int columnIndex) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSet; import java.sql.SQLException; public class Main { /**//w w w . j a v a2 s . c om * Return any long value. */ @SuppressWarnings("UnnecessaryBoxing") public static Long getLongValue(ResultSet resultSet, int columnIndex) throws SQLException { long value = resultSet.getLong(columnIndex); if (resultSet.wasNull()) { return null; } return Long.valueOf(value); } /** * Return any long value. */ @SuppressWarnings("UnnecessaryBoxing") public static Long getLongValue(ResultSet resultSet, String columnName) throws SQLException { long value = resultSet.getLong(columnName); if (resultSet.wasNull()) { return null; } return Long.valueOf(value); } }