Java SQL ResultSet Float Read getFloat(ResultSet resultSet, int columnIndex)

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

Description

get Float

License

Open Source License

Declaration

public static Float getFloat(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 Float getFloat(ResultSet resultSet, int columnIndex) throws SQLException {
        float value = resultSet.getFloat(columnIndex);
        return resultSet.wasNull() ? null : value;
    }//from  w  w w .j av a  2  s. com
}

Related

  1. getFloat(ResultSet res, String name)
  2. getFloat(ResultSet resultSet, String columnName)
  3. getFloat(ResultSet rs, String colName)
  4. getFloat(ResultSet rs, String column)
  5. getFloatList(ResultSet resultSet, String columnName)