Java SQL PreparedStatement closePreparedStatement(Statement ps)

Here you can find the source of closePreparedStatement(Statement ps)

Description

close Prepared Statement

License

Open Source License

Declaration

public static void closePreparedStatement(Statement ps) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.sql.*;

public class Main {
    public static void closePreparedStatement(Statement ps) {
        try {/*from   w  w  w  . ja va 2 s. com*/
            if (ps != null)
                ps.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}

Related

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