for (OperationMessage op : ops) {
SimpleProxyId<?> id = getId(op);
WriteOperation[] toPropagate = null;
// May be null if the server is returning an unpersisted object
WriteOperation effect = op.getOperation();
if (effect != null) {
switch (effect) {
case DELETE:
toPropagate = DELETE_ONLY;
break;
case PERSIST:
toPropagate = PERSIST_AND_UPDATE;
break;
case UPDATE:
toPropagate = UPDATE_ONLY;
break;
default:
// Should never reach here
throw new RuntimeException(effect.toString());
}
}
processReturnOperation(id, op, toPropagate);
}
}