Class ReadRecordsResponse<P>
java.lang.Object
com.broadleafcommerce.common.dataexport.service.ReadRecordsResponse<P>
- Type Parameters:
P
- the type of the records that will be read
A response returned by
ExportProcessor.readRecordsToProcess(Export)
indicating the
results of attempting to read all of the records to process in an export.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static <P> ReadRecordsResponse<P>
Ifsuccessful
is false, then this should contain a description of the error 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 byExportProcessor.readRecordsToProcess(Export)
.int
hashCode()
boolean
True if the records were read successfully, false otherwise.static <P> ReadRecordsResponse<P>
toString()
-
Method Details
-
success
-
failure
-
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 byExportProcessor.readRecordsToProcess(Export)
. -
getErrorMessage
Ifsuccessful
is false, then this should contain a description of the error encountered when attempting to read the records. This will be used byExportManager
and set on the correspondingExport
. -
equals
-
hashCode
public int hashCode() -
toString
-