Java SQL PreparedStatement closePreparedStatement(PreparedStatement pstmt)

Here you can find the source of closePreparedStatement(PreparedStatement pstmt)

Description

close Prepared Statement

License

Apache License

Declaration

public static void closePreparedStatement(PreparedStatement pstmt) 

Method Source Code

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

import java.sql.PreparedStatement;

import java.sql.SQLException;

public class Main {
    public static void closePreparedStatement(PreparedStatement pstmt) {
        if (pstmt != null) {
            try {
                pstmt.close();/*from   w  ww.j av a2  s  .  c  o  m*/
            } catch (SQLException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            pstmt = null;
        }
    }
}

Related

  1. addBatch(PreparedStatement prepStmt)
  2. addValuesToPreparedStatement(PreparedStatement preparedStatement, List values)
  3. close(PreparedStatement preparedStatement)
  4. close(PreparedStatement stat)
  5. closePreparedStatement(Map psMap)
  6. closePreparedStatement(Statement ps)
  7. closePS(PreparedStatement argPreparedStatement)
  8. closeSilentlyPreparedStatement(PreparedStatement stmt)
  9. closeStatement(PreparedStatement preparedStatement)