Here you can find the source of getBooleanSuppressSQLException(final ResultSet rs, final String columnLabel)
Parameter | Description |
---|---|
rs | a parameter |
columnLabel | a parameter |
public static boolean getBooleanSuppressSQLException(final ResultSet rs, final String columnLabel)
//package com.java2s; /**// w w w . ja v a 2 s . com * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ import java.sql.ResultSet; import java.sql.SQLException; public class Main { /** * Retrieves the value of the designated column in the current row of this ResultSet object * as a boolean in the Java programming language suppressing SQLException * * @param rs * @param columnLabel * @return boolean value */ public static boolean getBooleanSuppressSQLException(final ResultSet rs, final String columnLabel) { boolean columnValue = false; try { columnValue = rs.getBoolean(columnLabel); } catch (SQLException ex) { } return columnValue; } }