Experimental API: This class is still under rapid development, and is very likely to be deleted. Use it at your own risk.
189190191192193194195196197
/* * Ensure event receivers aren't accidentally using cached info by making an * unpopulated copy of the record. */ newJsoRecord = RecordJsoImpl.emptyCopy(newJsoRecord); Record javaRecord = newJsoRecord.getSchema().create(newJsoRecord); eventBus.fireEvent(newJsoRecord.getSchema().createChangeEvent(javaRecord, op)); }
117118119120121122123124125126127128129130131132133134
return; } boolean hasViolations = false; for (SyncResult syncResult : response) { Record syncRecord = syncResult.getRecord(); if (creating) { if (futureId == null || !futureId.equals(syncResult.getFutureId())) { continue; } record = cast(syncRecord); } else { if (!syncRecord.getId().equals(record.getId())) { continue; } } if (syncResult.hasViolations()) { hasViolations = true;