OSID Logo
OSID Specifications
transaction package
Version 3.1.0
Interfaceosid.transaction.batch.UpdateResponse
Implementsosid.OsidCapsule
Used Byosid.transaction.batch.UpdateResponseList
Description

UpdateResponses are returned from bulk update operations. Batch-oriented methods are executed on a best effort basis unless wrapped in Transaction that supports an atomic commit(). Batch methods may be invoked outside of a Transaction where some of the items supplied may fail.

Bulk update operations accept a list of Ids to be updated with their corresponding OsidForms. There is one UpdateResponse returned for every OsidForm supplied but not necessarily in the same order. The updated Id in the response may be the primary Id of a given Id, and may differ.

MethodgetFormId
Description

Gets the form Id corresponding to this response.

Returnosid.id.Id the form Id
Compliancemandatory This method must be implemented.
MethodgetUpdatedId
Description

Gets the reference Id of the object on which this item within the update operation operated.

Returnosid.id.Id the reference object Id
Compliancemandatory This method must be implemented.
MethodisSuccessful
Description

Tests if this item within the update operation was successful.

Returnboolean true if the update operation was successful, false if it was not successful
Compliancemandatory This method must be implemented.
MethodgetErrorMessage
Description

Gets the error message for an unsuccessful item within the update operation.

Returnosid.locale.DisplayText the message
ErrorsILLEGAL_STATE isSuccessful() is true
Compliancemandatory This method must be implemented.