Code example for Connection

Methods: closeisClosed

0
     * @param conn A JDBC Connection. 
     */ 
 
    public final void closeSeparateConnection(final Connection conn) {
        try { 
            if (!conn.isClosed()) {
                conn.close();
            } 
        } catch (SQLException e) {
            LOG.error(e.getMessage(), e);
        } 
    } 
 
    //-----------------------------------------------------------------------------------         
} 
Experience pair programming with AI  Get Codota for Java