MCPcopy Index your code
hub / github.com/OWASP/SecurityShepherd / closeConnection

Method closeConnection

src/main/java/dbProcs/Database.java:36–47  ·  view source on GitHub ↗

This method is used by the application to close an open connection to a database server @param conn The connection to close

(Connection conn)

Source from the content-addressed store, hash-verified

34 * @param conn The connection to close
35 */
36 public static void closeConnection(Connection conn)
37 {
38 try
39 {
40 //log.debug("Closing database connection");
41 conn.close();
42 }
43 catch(Exception e)
44 {
45 log.error("Error closing connection:" + e.toString());
46 }
47 }
48
49 /**
50 * This method is used by the application to get a connection to the secure database sever based on the input path to a specific properties file.

Calls

no outgoing calls