Java SQL ResultSet Double Read getDouble(ResultSet resultSet, int columnIndex)

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

Description

get Double

License

Open Source License

Declaration

public static Double getDouble(ResultSet resultSet, int columnIndex) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    public static Double getDouble(ResultSet resultSet, int columnIndex) throws SQLException {
        double value = resultSet.getDouble(columnIndex);
        return resultSet.wasNull() ? null : value;
    }/*from   ww  w.  j a  va 2 s  . c  o  m*/
}

Related

  1. getDouble(ResultSet res, String name)
  2. getDouble(ResultSet resultSet, String columnName)
  3. getDouble(ResultSet rs, int index)
  4. getDouble(ResultSet rs, String colName)
  5. getDouble(ResultSet rs, String column)