Java SQL ResultSet Double Read getDouble(ResultSet rs, int index)

Here you can find the source of getDouble(ResultSet rs, int index)

Description

get Double

License

Open Source License

Declaration

public static double getDouble(ResultSet rs, int index) throws java.sql.SQLException 

Method Source Code


//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

import java.sql.ResultSet;

public class Main {
    public static double getDouble(ResultSet rs, int index) throws java.sql.SQLException {
        if (rs.getObject(index) != null) {
            return rs.getDouble(index);
        }/*  w w  w.  j  a v  a2 s.co m*/

        throw new RuntimeException("Null value in non-Nullable column");
    }
}

Related

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