Package com.morpheusdata.core
Class BulkCreateResult<M extends MorpheusModel>
java.lang.Object
com.morpheusdata.core.BulkCreateResult<M>
- Type Parameters:
M
- theMorpheusModel
class this object represents
- Direct Known Subclasses:
BulkSaveResult
A serializable representation of the results of bulk creating 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.Gets a collection of the persistedMorpheusModel
objects.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.A helper method for checking if there aer persisted items or not
-
Field Details
-
errorCode
An i18n Property key representing a String localized error message.
-
-
Constructor Details
-
BulkCreateResult
-
-
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
-
hasPersistedItems
A helper method for checking if there aer persisted items or not- Returns:
-
getErrorCode
Gets an i18n Property key representing a String localized error message.- Returns:
- An i18n Property key representing a String localized error message.
-
getPersistedItems
Gets a collection of the persistedMorpheusModel
objects.- Returns:
- A List of
MorpheusModel
objects that were successfully persisted. Also including their result identifier.
-
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
-