/** * Destroys the internal connection handle and creates a new one. * @throws SQLException */ public void refreshConnection() throws SQLException{ this.connection.close(); // if it's still in use, close it. try{ this.connection = this.pool.obtainRawInternalConnection(); } catch(SQLException e){ throw markPossiblyBroken(e); } }
try { result = this.obtainRawInternalConnection(); tryAgain = false;
try { result = this.obtainRawInternalConnection(); tryAgain = false;
Connection sanityConnection = obtainRawInternalConnection(); sanityConnection.close(); } catch (Exception e) {
Connection sanityConnection = obtainRawInternalConnection(); sanityConnection.close(); } catch (Exception e){