getResponses

The getResponses method returns the array of response objects that correspond to the array of commands executed by the executeBatch method.

getResponses()

Return value

The getResponses method returns an array of Response objects.

Example

The following example selects all the responses and prints out any advisory messages if the command was not successful.

for(Response response : batchResponse.getResponses())
{
    if(response.getStatusCode()!=Response.STATUS_SUCCESS)
    {
        printDetailMessageOfWarningOrError("executeBatchCommand",
			response.getAdvisoryMessages());
    }
}