Java SQL ResultSet Read getBigInteger(ResultSet resultSet, int columnIndex)

Here you can find the source of getBigInteger(ResultSet resultSet, int columnIndex)

Description

get Big Integer

License

Open Source License

Declaration

public static BigInteger getBigInteger(ResultSet resultSet, int columnIndex) throws SQLException 

Method Source Code


//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
}

Related

  1. getArray(ResultSet rs, String columnName, Class cls)
  2. getArrayAsSet(ResultSet rs, String columnLabel)
  3. getArrayFromResultSet(ResultSet rs, String field)
  4. getAsString(ResultSet res, String field)
  5. getBestRowId(String schema, String tableName, int scope, String nullable, ResultSet[] rs)
  6. getBigIntegerFromResultSet(ResultSet rs, String db_name)
  7. getBigObject(ResultSet set, int columnIndex)
  8. getCalendar(ResultSet resultSet, String columnName)
  9. getCharacterStream(ResultSet resultSet, String columnName)