Here you can find the source of getBigInteger(ResultSet resultSet, int columnIndex)
public static BigInteger getBigInteger(ResultSet resultSet, int columnIndex) throws SQLException
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; import java.math.BigInteger; import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static BigInteger getBigInteger(ResultSet resultSet, int columnIndex) throws SQLException { BigDecimal value = resultSet.getBigDecimal(columnIndex); return value == null ? null : value.toBigInteger(); }//from w w w . ja v a 2 s .co m }