Java SQL ResultSet Read getBigIntegerFromResultSet(ResultSet rs, String db_name)

Here you can find the source of getBigIntegerFromResultSet(ResultSet rs, String db_name)

Description

get Big Integer From Result Set

License

Open Source License

Declaration

public static BigInteger getBigIntegerFromResultSet(ResultSet rs, String db_name) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

import java.math.BigInteger;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    public static BigInteger getBigIntegerFromResultSet(ResultSet rs, String db_name) throws SQLException {
        String n = rs.getString(db_name);
        return rs.wasNull() ? null : new BigInteger(n);
    }//from   www.j  a  v a 2  s .co m
}

Related

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