}
}
/* add necessary equivalent batch operation for the above defined operation */
if (dataService.isBatchRequestsEnabled()) {
List<Operation> tmpOpList = new ArrayList<Operation>();
Operation operation;
for (String opName : dataService.getOperationNames()) {
if (isBoxcarringOps(opName)) {
/* skip boxcarring operations */
continue;
}
operation = dataService.getOperation(opName);
if (isBatchCompatible(operation)) {
/* this is a batch operation and the parent operation is also given */
Operation batchOp = new Operation(
operation.getDataService(),
operation.getName() + DBConstants.BATCH_OPERATON_NAME_SUFFIX,
"batch operation for '" + operation.getName() + "'",
operation.getCallQueryGroup(), true,
operation, operation.isDisableStreamingRequest(),
operation.isDisableStreamingEffective());
batchOp.setReturnRequestStatus(operation.isReturnRequestStatus());
tmpOpList.add(batchOp);
}
}
/* the operations are added outside the loop that iterates the operation list,
* if we add it inside the loop while iterating, we will get a concurrent modification exception */