Java SQL PreparedStatement isClosed(PreparedStatement ps, boolean defaultValue)

Here you can find the source of isClosed(PreparedStatement ps, boolean defaultValue)

Description

is Closed

License

LGPL

Declaration

public static boolean isClosed(PreparedStatement ps, boolean defaultValue) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.sql.PreparedStatement;

public class Main {
    public static boolean isClosed(PreparedStatement ps, boolean defaultValue) {
        try {/*  w  w w .  j ava  2s . c o m*/
            return ps.isClosed();
        } catch (Throwable t) {
            return defaultValue;
        }
    }
}

Related

  1. getPreparedStatement(String sql)
  2. getPriorID(Connection conn, PreparedStatement stmt)
  3. getScalarValue(PreparedStatement ps)
  4. importCsvDataInTable(int offsetIndex, Connection connection, PreparedStatement preparedStatement, String[] columnMapping, List> data, Map> notInsertedData)
  5. intToArray(final int[] arr)
  6. loadColumnTableNameList(PreparedStatement stmt)
  7. LockRow(PreparedStatement pstmt, String tablename, boolean exclusiveMode)
  8. logPreparedStatement(PreparedStatement p)
  9. prepareStatement( Connection conn, String query, List params)