Class ReadRecordsResponse<P>
java.lang.Object
com.broadleafcommerce.bulk.service.ReadRecordsResponse<P>
- Type Parameters:
P
- the type of the records that will be read
A response returned by
BulkUpdateProcessor.readRecordsToProcess(BulkUpdate)
indicating
the results of attempting to read all of the records to process in an update.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReadRecordsResponse
(boolean successful, Stream<P> records, List<BulkUpdateError> errors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Ifsuccessful
is false, then this should contain all of the errors encountered when attempting to read the records.Ifsuccessful
is true, then this should contain all of the records in the data store that should be processed in the update, as described byBulkUpdateProcessor.readRecordsToProcess(BulkUpdate)
.int
hashCode()
boolean
True if the records were read successfully, false otherwise.toString()
-
Constructor Details
-
ReadRecordsResponse
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()True if the records were read successfully, false otherwise. -
getRecords
Ifsuccessful
is true, then this should contain all of the records in the data store that should be processed in the update, as described byBulkUpdateProcessor.readRecordsToProcess(BulkUpdate)
. -
getErrors
Ifsuccessful
is false, then this should contain all of the errors encountered when attempting to read the records. These will be used byBulkUpdateManager
and set on the correspondingBulkUpdate
. -
equals
-
hashCode
public int hashCode() -
toString
-