K - unique keys for the logs.V - type of the stored informationspublic class BulkOperationResults<K,V> extends Object
| Constructor and Description |
|---|
BulkOperationResults() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllErrors(BulkOperationResults<K,V> log)
Add all errors from another BulkOperationResult to this.
|
boolean |
addError(K objectId,
V error)
Adding an appearing error to the map and list them by a unique ID as key.
|
void |
clearErrors()
Clearing the map - all entries will be removed.
|
boolean |
containsErrors()
Returning the status of a bulk-error-log.
|
V |
getErrorForId(K idKey)
Returns the stored error for a unique ID or NULL if there is no error stored or ID invalid.
|
Map<K,V> |
getErrorMap()
Returning a list of current errors as map.
|
List<K> |
getFailedIds()
Returns the IDs of the Object with failed requests.
|
public Map<K,V> getErrorMap()
public boolean addError(K objectId, V error)
objectId - unique key of a entity.error - occurred error of a interaction with the entitypublic boolean containsErrors()
public V getErrorForId(K idKey)
idKey - which is mapped with an errorpublic List<K> getFailedIds()
public void clearErrors()
public void addAllErrors(BulkOperationResults<K,V> log)
log - the other logCopyright © 2018. All rights reserved.