Package com.morpheusdata.core
Class BulkRemoveResult<M extends MorpheusModel>
java.lang.Object
com.morpheusdata.core.BulkRemoveResult<M>
- Type Parameters:
M
- theMorpheusModel
class this object represents
A serializable representation of the results of bulk remove Model objects for persistence
- Since:
- 0.15.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets an i18n Property key representing a String localized error message.Gets a collection of the failedMorpheusModel
objects.getMsg()
Returns an optional message string containing more error details in a humange readable form.A helper method for determining whether the operation was fully successful.A helper method for checking if there were failed items as part of the operation.
-
Field Details
-
errorCode
An i18n Property key representing a String localized error message.
-
-
Constructor Details
-
BulkRemoveResult
-
-
Method Details
-
getSuccess
A helper method for determining whether the operation was fully successful.- Returns:
- the success state of the operation
-
hasFailures
A helper method for checking if there were failed items as part of the operation.- Returns:
- the failure state of the operation
-
getErrorCode
Gets an i18n Property key representing a String localized error message.- Returns:
- An i18n Property key representing a String localized error message.
-
getFailedItems
Gets a collection of the failedMorpheusModel
objects.- Returns:
- A List of
MorpheusModel
objects that failed ot persist.
-
getMsg
Returns an optional message string containing more error details in a humange readable form. Ideally an errorCode would be used for localization.- Returns:
- an optional error message
-