| java.lang.Object | |
| ↳ | com.google.gdata.model.batch.BatchUtils |
New data model version of batch utils. These utilities can operate on both the old and the new data model, so should be used during the transition.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the value of the tag
<batch:id>. | |||||||||||
Gets the batch operation type from the tag
<batch:operation>
in a BaseFeed. | |||||||||||
Gets the batch operation type from the tag
<batch:operation>
in a IEntry. | |||||||||||
Gets the value of the tag
<batch:interrupted>. | |||||||||||
Gets the value of the tag
<batch:status>. | |||||||||||
Checks whether a batch entry is an error report.
| |||||||||||
Checks whether a batch entry is a success report.
| |||||||||||
Sets the value of the tag
<batch:id>. | |||||||||||
Sets the batch operation to execute in a
IEntry. | |||||||||||
Sets the batch operation to execute in a
BaseFeed. | |||||||||||
Throws a
BatchInterrupted exception if any entry within the feed
has a batch interrupted child element. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Gets the value of the tag <batch:id>.
| entry | The entry to get the id from |
|---|
Gets the batch operation type from the tag <batch:operation>
in a BaseFeed.
| feed |
|---|
Gets the batch operation type from the tag <batch:operation>
in a IEntry.
| entry | The entry to get the operation type from |
|---|
Gets the value of the tag <batch:interrupted>.
| entry |
|---|
Gets the value of the tag <batch:status>.
| entry |
|---|
Checks whether a batch entry is an error report.
This method is a shortcut for checking the code of
the entry's BatchStatus object.
You'll want to call getStatus(IEntry)
to get the error description and message when this
method returns true.
| entry |
|---|
| IllegalArgumentException | if the entry does not contain a BatchStatus object. |
|---|
Checks whether a batch entry is a success report.
This method is a shortcut for checking the code of
the entry's BatchStatus object.
| entry |
|---|
| IllegalArgumentException | if the entry does not contain a BatchStatus object. |
|---|
Sets the value of the tag <batch:id>.
| entry | Entry to get the id from |
|---|---|
| id | The batch id or null to remove it |
Sets the batch operation to execute in a IEntry.
| entry | The entry to set the operation type on |
|---|---|
| op | Batch operation type or null to remove it |
Sets the batch operation to execute in a BaseFeed.
| feed | |
|---|---|
| op | Batch operation type or null to remove it. |
Throws a BatchInterrupted exception if any entry within the feed
has a batch interrupted child element.
| ifeed | Batch response feed to check |
|---|
| BatchInterruptedException | if batch interrupted entry is found. |
|---|