public void closeAllNavigators() { if (resultMap == null) { return; } Iterator it = resultMap.values().iterator(); while (it.hasNext()) { Result result = (Result) it.next(); result.getNavigator().close(); } resultMap.clear(); }
public void closeAllTransactionNavigators() { if (resultMap == null) { return; } Iterator it = resultMap.values().iterator(); while (it.hasNext()) { Result result = (Result) it.next(); if (result.rsHoldability == ResultConstants.CLOSE_CURSORS_AT_COMMIT) { result.getNavigator().close(); it.remove(); } } resultMap.clear(); }