/** * Close off the connection. * * @throws SQLException */ protected void internalClose() throws SQLException { try { clearStatementCaches(true); if (this.connection != null){ // safety! this.connection.close(); if (!this.connectionTrackingDisabled && this.finalizableRefs != null){ this.finalizableRefs.remove(this.connection); } } this.logicallyClosed.set(true); } catch (SQLException e) { throw markPossiblyBroken(e); } }
connectionHandle.clearStatementCaches(false); connectionHandle.clearStatementCaches(true); return; // don't place back in queue - connection is broken or expired.
connectionHandle.clearStatementCaches(false); connectionHandle.clearStatementCaches(true); return; // don't place back in queue - connection is broken or expired.
con.clearStatementCaches(true); con.getInternalConnection().close(); } catch(Throwable t){