Java SQL PreparedStatement closePreparedStatement(Map psMap)

Here you can find the source of closePreparedStatement(Map psMap)

Description

close Prepared Statement

License

Open Source License

Declaration

public static void closePreparedStatement(Map psMap) throws SQLException 

Method Source Code

//package com.java2s;

import java.sql.PreparedStatement;
import java.sql.SQLException;

import java.util.Iterator;

import java.util.Map;

public class Main {
    public static void closePreparedStatement(Map psMap) throws SQLException {
        for (Iterator itr = psMap.values().iterator(); itr.hasNext();) {
            Object[] obj = (Object[]) itr.next();
            ((PreparedStatement) obj[1]).close();
        }/*from   www  .j  a v  a 2s.  co  m*/
    }
}

Related

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