Java SQL PreparedStatement closeStatement(PreparedStatement theStatement)

Here you can find the source of closeStatement(PreparedStatement theStatement)

Description

close Statement

License

Open Source License

Declaration

protected static void closeStatement(PreparedStatement theStatement) throws SQLException 

Method Source Code

//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();
        }
    }
}

Related

  1. closePreparedStatement(Statement ps)
  2. closePS(PreparedStatement argPreparedStatement)
  3. closeSilentlyPreparedStatement(PreparedStatement stmt)
  4. closeStatement(PreparedStatement preparedStatement)
  5. closeStatement(PreparedStatement ps)
  6. createInsertPrepareStatement(Connection conn, String tableName, String[] dataColumnNames)
  7. createPreparedStatement(Connection conn, String sql, String[] args)
  8. createProjectInfo(PreparedStatement ps, long projectId, long projectInfoTypeId, String value, long modUserId)
  9. deleteOldData(Connection connection, PreparedStatement stmt, String funcId)