public final class BulkOperationResult<T> extends Object implements Serializable
BulkItem represents the operation status for each individual data piece.
The items list defines a contract in which the ordering of those items
needs to match the ordering of the original objects. For example, if the bulk
operation consisted of 10 person objects in which number X corresponded to the
person 'John Doe', then the Xth item in the items list must reference to
the result of procesing the same 'John Doe'| Modifier and Type | Class and Description |
|---|---|
static class |
BulkOperationResult.BulkOperationResultBuilder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> BulkOperationResult.BulkOperationResultBuilder<T> |
builder() |
Serializable |
getCustomProperty(String key)
A custom property stored under the given key
|
Serializable |
getId()
The operation id
|
List<BulkItem<T>> |
getItems()
An ordered list of
BulkItem, one per each item in the original
operation, no matter if the record was successful or not |
boolean |
isSuccessful()
Whether or not the operation was successful.
|
public Serializable getId()
public boolean isSuccessful()
true if
and only if all the child BulkItem entities were also successfulpublic List<BulkItem<T>> getItems()
BulkItem, one per each item in the original
operation, no matter if the record was successful or notpublic Serializable getCustomProperty(String key)
key - the key of the custom propertySerializable valuepublic static <T> BulkOperationResult.BulkOperationResultBuilder<T> builder()
Copyright © 2018 MuleSoft, Inc.. All rights reserved.