Here you can find the source of closePreparedStatement(Map psMap)
public static void closePreparedStatement(Map psMap) throws SQLException
//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*/ } }