Java SQL ResultSet Int Read getInteger(ResultSet rs, String column)

Here you can find the source of getInteger(ResultSet rs, String column)

Description

get Integer

License

Apache License

Declaration

public static Integer getInteger(ResultSet rs, String column) throws SQLException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.*;

public class Main {
    public static Integer getInteger(ResultSet rs, String column) throws SQLException {
        int i = rs.getInt(column);
        return rs.wasNull() ? null : i;
    }//ww  w . jav  a2 s.  c o  m
}

Related

  1. getInt(ResultSet rs, String column)
  2. getInt(ResultSet rs, String columnName)
  3. getInteger(final ResultSet rs, final String field)
  4. getInteger(ResultSet resultSet, String columnName)
  5. getInteger(ResultSet rs, String colName)
  6. getInteger(ResultSet rs, String columnName)
  7. getInteger(ResultSet rs, String strColName)
  8. getInteger(ResultSet s, int idx)
  9. getIntegerFromResultSet(ResultSet rs, String db_name)