Sorry for spamming this thread -- this is more of a question out of 
curiosity then anything else.

It appears that despite the GData protocol docs saying nothing about Batch 
Update operations running in a transaction they do; in the Java client 
library at least.

If I do something like this to force it to fail on one of the entries in the 
middle of the update list (say, the 2nd out of 3 items):

entry.getTimes().get(0).setEndTime(new DateTime(0L));

I would expect that the other two items get written successfully, while the 
entry which had the above operation applied would fail.

However, it appears from my testing that the other operations get rolled 
back. I don't see any mention of this in the docs, and the non-Java 
libraries seem to recommend checking the status of the returned results to 
verify that they were committed.

So how is it that in Java I get a "java.lang.IllegalStateException: 
g:when/@startTime must be less than or equal to g:when/@endTime." and the 
entire operation is rolled-back, while other clients seem to need to process 
the batch operation result?

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to