Code example for Connection

Methods: close

0
            } catch (SQLException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            } 
        } 
        if (conn != null) try {
            conn.close();
        } catch (SQLException e) {
            log.error("Error closing sql connection", e);
        } 
 
    } 
} 
Experience pair programming with AI  Get Codota for Java