OSID Logo
OSID Specifications
transaction package
Version 3.1.0
Interfaceosid.transaction.batch.CreateResponse
Implementsosid.OsidCapsule
Used Byosid.transaction.batch.CreateResponseList
Description

CreateResponses are returned from bulk create 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 create operations accept a list of OsidForms and to be created. There is one CreateResponse returned for every OsidForm supplied but not necessarily in the same order. The created Id in the response is the newly created Id is the create item was successful.

MethodgetFormId
Description

Gets the form Id corresponding to this response.

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

Tests if this item within the create operation was successful.

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

Gets the Id of the newly created object.

Returnosid.id.Id the reference object Id
ErrorsILLEGAL_STATE isSuccessful() is false
Compliancemandatory This method must be implemented.
MethodgetErrorMessage
Description

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

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