public CloseStatementResponse apply(CloseStatementRequest request) { final Meta.StatementHandle h = new Meta.StatementHandle( request.connectionId, request.statementId, null); meta.closeStatement(h); return new CloseStatementResponse(serverLevelRpcMetadata); }
public CloseStatementResponse apply(CloseStatementRequest request) { final Meta.StatementHandle h = new Meta.StatementHandle( request.connectionId, request.statementId, null); meta.closeStatement(h); return new CloseStatementResponse(serverLevelRpcMetadata); }
public CloseStatementResponse apply(CloseStatementRequest request) { final Meta.StatementHandle h = new Meta.StatementHandle( request.connectionId, request.statementId, null); meta.closeStatement(h); return new CloseStatementResponse(serverLevelRpcMetadata); }
protected void close_() { if (!closed) { closed = true; if (openResultSet != null) { AvaticaResultSet c = openResultSet; openResultSet = null; c.close(); } try { // inform the server to close the resource connection.meta.closeStatement(handle); } finally { // make sure we don't leak on our side connection.statementMap.remove(handle.id); connection.flagMap.remove(handle.id); } // If onStatementClose throws, this method will throw an exception (later // converted to SQLException), but this statement still gets closed. connection.driver.handler.onStatementClose(this); } }
protected void close_() { if (!closed) { closed = true; if (openResultSet != null) { AvaticaResultSet c = openResultSet; openResultSet = null; c.close(); } try { // inform the server to close the resource connection.meta.closeStatement(handle); } finally { // make sure we don't leak on our side connection.statementMap.remove(handle.id); connection.flagMap.remove(handle.id); } // If onStatementClose throws, this method will throw an exception (later // converted to SQLException), but this statement still gets closed. connection.driver.handler.onStatementClose(this); } }
protected void close_() { if (!closed) { closed = true; if (openResultSet != null) { AvaticaResultSet c = openResultSet; openResultSet = null; c.close(); } try { // inform the server to close the resource connection.meta.closeStatement(handle); } finally { // make sure we don't leak on our side connection.statementMap.remove(handle.id); } // If onStatementClose throws, this method will throw an exception (later // converted to SQLException), but this statement still gets closed. connection.driver.handler.onStatementClose(this); } }