Java SQL PreparedStatement closeSilentlyPreparedStatement(PreparedStatement stmt)

Here you can find the source of closeSilentlyPreparedStatement(PreparedStatement stmt)

Description

Closes a PreparedStatement silently (no exception raised).

License

Open Source License

Declaration

public static void closeSilentlyPreparedStatement(PreparedStatement stmt) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.PreparedStatement;

import java.sql.SQLException;

public class Main {
    /**/*from w ww  .ja  va2 s .c  om*/
     * Closes a PreparedStatement silently (no exception raised).
     */
    public static void closeSilentlyPreparedStatement(PreparedStatement stmt) {
        try {
            stmt.close();
        } catch (SQLException e) {
            // nothing
        }
    }
}

Related

  1. close(PreparedStatement stat)
  2. closePreparedStatement(Map psMap)
  3. closePreparedStatement(PreparedStatement pstmt)
  4. closePreparedStatement(Statement ps)
  5. closePS(PreparedStatement argPreparedStatement)
  6. closeStatement(PreparedStatement preparedStatement)
  7. closeStatement(PreparedStatement ps)
  8. closeStatement(PreparedStatement theStatement)
  9. createInsertPrepareStatement(Connection conn, String tableName, String[] dataColumnNames)