Package com.morpheusdata.core
Class BulkCreateResult<M extends MorpheusModel>
java.lang.Object
com.morpheusdata.core.BulkCreateResult<M>
- Type Parameters:
M- theMorpheusModelclass 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an i18n Property key representing a String localized error message.Gets a collection of the failedMorpheusModelobjects.getMsg()Returns an optional message string containing more error details in a humange readable form.Gets a collection of the persistedMorpheusModelobjects.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 persistedMorpheusModelobjects.- Returns:
- A List of
MorpheusModelobjects that were successfully persisted. Also including their result identifier.
-
getFailedItems
Gets a collection of the failedMorpheusModelobjects.- Returns:
- A List of
MorpheusModelobjects 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
-