Here you can find the source of closeStatement(PreparedStatement theStatement)
protected static void closeStatement(PreparedStatement theStatement) throws SQLException
//package com.java2s; /**/*from w w w . j a v a 2 s . c om*/ * ClarescoExperienceAPI * Copyright * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * Please contact Claresco, www.claresco.com, if you have any questions. **/ import java.sql.PreparedStatement; import java.sql.SQLException; public class Main { protected static void closeStatement(PreparedStatement theStatement) throws SQLException { if (theStatement != null) { theStatement.close(); } } }