/** * Empties the map. */ @Override // GemStoneAddition public void clear() { this._map.clear(); }
/** * Close the wrapper clearing the Connection wrapper and cached statement map. */ public void close(final boolean closeEmbedConn, final boolean force) { final EmbedConnection conn = getEmbedConnection(); if (closeEmbedConn && conn != null && !conn.isActive()) { return; } if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "Closing connection: " + conn); } if (clearStatementMap()) { this.sqlMap.clear(); } if (closeEmbedConn && conn != null) { try { conn.close(false /* do not distribute */); } catch (Exception e) { if (force) { // ignore exception and close the connection forcibly conn.forceClose(); } else { throw GemFireXDRuntimeException.newRuntimeException( "GfxdConnectionWrapper#close: unexpected exception", e); } } } }
/** * Close the wrapper clearing the Connection wrapper and cached statement map. */ public void close(final boolean closeEmbedConn, final boolean force) { final EmbedConnection conn = getEmbedConnection(); if (closeEmbedConn && conn != null && !conn.isActive()) { return; } if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "Closing connection: " + conn); } if (clearStatementMap()) { this.sqlMap.clear(); } if (closeEmbedConn && conn != null) { try { conn.close(false /* do not distribute */); } catch (Exception e) { if (force) { // ignore exception and close the connection forcibly conn.forceClose(); } else { throw GemFireXDRuntimeException.newRuntimeException( "GfxdConnectionWrapper#close: unexpected exception", e); } } } }
this.stmntMap.clear();
this.stmntMap.clear();