|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.common.bulk.BulkOperationResult<T>
public final class BulkOperationResult<T>
This class is used to provide item level information about a bulk operation. This
master entity represents the bulk operation as a whole, while the detail entity
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'
| Nested Class Summary | |
|---|---|
static class |
BulkOperationResult.BulkOperationResultBuilder<T>
|
| Method Summary | ||
|---|---|---|
static
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Serializable getId()
public boolean isSuccessful()
true if
and only if all the child BulkItem entities were also successful
public List<BulkItem<T>> getItems()
BulkItem, one per each item in the original
operation, no matter if the record was successful or not
public Serializable getCustomProperty(String key)
key - the key of the custom property
Serializable valuepublic static <T> BulkOperationResult.BulkOperationResultBuilder<T> builder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||