Here you can find the source of getLongFromResultSet(ResultSet rs, String db_name)
public static Long getLongFromResultSet(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 Long getLongFromResultSet(ResultSet rs, String db_name) throws SQLException { long n = rs.getLong(db_name); return rs.wasNull() ? null : Long.valueOf(n); }//from w w w . j a va2 s.c o m }