private void returnConnection(String op) throws SQLException { final FinalizeSingleHopResultSet finalizer = this.finalizer; if (finalizer != null) { try { finalizer.doFinalize(); this.finalizer = null; } catch (Exception e) { SQLException sqle = new SQLException(e.getMessage(), SQLState.JAVA_EXCEPTION, ExceptionSeverity.STATEMENT_SEVERITY); sqle.initCause(e); throw sqle; } } }
private void returnConnection(String op) throws SQLException { final FinalizeSingleHopResultSet finalizer = this.finalizer; if (finalizer != null) { try { finalizer.doFinalize(); this.finalizer = null; } catch (Exception e) { SQLException sqle = new SQLException(e.getMessage(), SQLState.JAVA_EXCEPTION, ExceptionSeverity.STATEMENT_SEVERITY); sqle.initCause(e); throw sqle; } } }
public void resetAndDoFinalize() { try { for (int i = 0; i < internalConnections.length; i++) { NetConnection conn = (NetConnection)internalConnections[i]; if (conn != null) { conn.reset(conn.agent_.logWriter_); conn.gotException_ = false; } } doFinalize(); } catch (Exception ex) { if (this.internalConnections != null) { for (int i = 0; i < this.internalConnections.length; i++) { if (this.internalConnections[i] != null) { try { this.connInfo .removeConnection((NetConnection)this.internalConnections[i]); } catch (InterruptedException e) { // ignore. If the cleanup is not proper then the next sql // execution will get // handlable exception } break; } } } } }
public void resetAndDoFinalize() { try { for (int i = 0; i < internalConnections.length; i++) { NetConnection conn = (NetConnection)internalConnections[i]; if (conn != null) { conn.reset(conn.agent_.logWriter_); conn.gotException_ = false; } } doFinalize(); } catch (Exception ex) { if (this.internalConnections != null) { for (int i = 0; i < this.internalConnections.length; i++) { if (this.internalConnections[i] != null) { try { this.connInfo .removeConnection((NetConnection)this.internalConnections[i]); } catch (InterruptedException e) { // ignore. If the cleanup is not proper then the next sql // execution will get // handlable exception } break; } } } } }