Java SQL ResultSet Boolean Read getBoolean(ResultSet resultSet, int columnIndex)

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

Description

get Boolean

License

Open Source License

Declaration

public static Boolean getBoolean(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 Boolean getBoolean(ResultSet resultSet, int columnIndex) throws SQLException {
        boolean value = resultSet.getBoolean(columnIndex);
        return resultSet.wasNull() ? null : value;
    }/*from   w  w w.ja va  2  s  . c o m*/
}

Related

  1. getBoolean(ResultSet res, String name)
  2. getBoolean(ResultSet rs, int index)
  3. getBoolean(ResultSet rs, String colName)
  4. getBoolean(ResultSet rs, String columnLabel)
  5. getBoolean(ResultSet rs, String columnName)