private void handleNewRouteUnits(final Collection<BatchRouteUnit> newRouteUnits) { newRouteUnits.removeAll(routeUnits); for (BatchRouteUnit each : newRouteUnits) { each.mapAddBatchCount(batchCount); } routeUnits.addAll(newRouteUnits); }
private void reviseBatchRouteUnit(final BatchRouteUnit oldBatchRouteUnit, final BatchRouteUnit newBatchRouteUnit) { oldBatchRouteUnit.getRouteUnit().getSqlUnit().getParameterSets().add(newBatchRouteUnit.getRouteUnit().getSqlUnit().getParameterSets().get(0)); oldBatchRouteUnit.mapAddBatchCount(batchCount); }