private void removeConnection(NetConnection conn) throws SqlException { try { dsConnInfo.removeConnection(conn); if (SanityManager.TraceSingleHop) { SanityManager.DEBUG_PRINT(SanityManager.TRACE_SINGLE_HOP, "SingleHopPreparedStatement::removeConnection for connection: "); } if (this.sqlMode_ == isQuery__) { if (this.shopResultSet != null && this.shopResultSet instanceof SingleHopResultSet) { SingleHopResultSet rs = (SingleHopResultSet)this.shopResultSet; FinalizeSingleHopResultSet finalizer = rs.getFinalizer(); if (finalizer != null) { finalizer.nullConnection(conn); } } } } catch (InterruptedException ie) { throw new SqlException(connection_.agent_.logWriter_, new ClientMessageId(SQLState.JAVA_EXCEPTION), ie.getClass().getName(), ie.getMessage(), ie); } }
private void removeConnection(NetConnection conn) throws SqlException { try { dsConnInfo.removeConnection(conn); if (SanityManager.TraceSingleHop) { SanityManager.DEBUG_PRINT(SanityManager.TRACE_SINGLE_HOP, "SingleHopPreparedStatement::removeConnection for connection: "); } if (this.sqlMode_ == isQuery__) { if (this.shopResultSet != null && this.shopResultSet instanceof SingleHopResultSet) { SingleHopResultSet rs = (SingleHopResultSet)this.shopResultSet; FinalizeSingleHopResultSet finalizer = rs.getFinalizer(); if (finalizer != null) { finalizer.nullConnection(conn); } } } } catch (InterruptedException ie) { throw new SqlException(connection_.agent_.logWriter_, new ClientMessageId(SQLState.JAVA_EXCEPTION), ie.getClass().getName(), ie.getMessage(), ie); } }
dsConnInfo.removeConnection(conn); } catch (InterruptedException ie) { throw new SqlException(connection_.agent_.logWriter_,
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; } } } } }
dsConnInfo.removeConnection(conn); } catch (InterruptedException ie) { throw new SqlException(connection_.agent_.logWriter_,
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; } } } } }
private void removeAllConnectionsUsedFromPoolNoThrow() { for (NetConnection conn : poolConns) { try { if (conn.gotException_) { dsConnInfo.removeConnection(conn); } } catch (InterruptedException ie) { // ignore } } }
private void removeAllConnectionsUsedFromPoolNoThrow() { for (NetConnection conn : poolConns) { try { if (conn.gotException_) { dsConnInfo.removeConnection(conn); } } catch (InterruptedException ie) { // ignore } } }