Uses of Class
com.broadleafcommerce.common.dataimport.messaging.BatchRecord
Packages that use BatchRecord
Package
Description
-
Uses of BatchRecord in com.broadleafcommerce.common.dataimport
Methods in com.broadleafcommerce.common.dataimport with parameters of type BatchRecordModifier and TypeMethodDescriptionprotected <T> void
AbstractImportBatchHandler.addFailedConversionCompletions
(BatchRecord failedToConvert, ConversionUtils.ConversionResponse<T> failedConversion, List<BatchCompletionRecord> destination) Creates aBatchCompletionRecord
for the givenfailedToConvert
batch record, and then createsBatchCompletionRecords
for all of its nested dependents.protected void
AbstractImportBatchHandler.failRecordAndDependentsEarly
(BatchRecord recordToFail, String errorMessage, String dependentErrorMessage, List<BatchCompletionRecord> destination) Intended for use in scenarios where a record and its dependents need to be marked as failed in an early (pre-persistence) stage (no resource tier ID is available), such as failed conversions.protected void
AbstractImportBatchHandler.generateAndAddCompletions
(BatchRecord batchRecord, BatchCompletionRecordStatus status, String errorMessage, List<BatchCompletionRecord> destination) protected BatchCompletionRecord
AbstractImportBatchHandler.getCompletionError
(BatchRecord record, String errorMessage) -
Uses of BatchRecord in com.broadleafcommerce.common.dataimport.conversion
Methods in com.broadleafcommerce.common.dataimport.conversion with parameters of type BatchRecordModifier and TypeMethodDescriptionabstract boolean
AbstractRowConverter.canConvert
(BatchRecord record, BatchRequest.BatchContext context) Indicates if this converter can parse the provided record into an entity.abstract P
AbstractRowConverter.convert
(Object parent, BatchRecord record, BatchRequest.BatchContext context) Converts the provided record into the required result(s). -
Uses of BatchRecord in com.broadleafcommerce.common.dataimport.messaging
Methods in com.broadleafcommerce.common.dataimport.messaging that return BatchRecordModifier and TypeMethodDescriptionBatchRecord.addDependent
(BatchRecord dependent) Adds a new dependent to this recordMethods in com.broadleafcommerce.common.dataimport.messaging that return types with arguments of type BatchRecordModifier and TypeMethodDescriptionBatchRecord.getDependents()
Items that should be conceptually linked to the parent record that represents this itemBatchRequest.getRecords()
The records that should be inserted within this batchMethods in com.broadleafcommerce.common.dataimport.messaging with parameters of type BatchRecordModifier and TypeMethodDescriptionBatchRecord.addDependent
(BatchRecord dependent) Adds a new dependent to this recordMethod parameters in com.broadleafcommerce.common.dataimport.messaging with type arguments of type BatchRecordModifier and TypeMethodDescriptionvoid
BatchRequest.setRecords
(List<BatchRecord> records) The records that should be inserted within this batchConstructor parameters in com.broadleafcommerce.common.dataimport.messaging with type arguments of type BatchRecordModifierConstructorDescriptionBatchRecord
(long lineNumber, String correlationId, String recordType, OperationType operation, String resourceTierIdentifier, Map<String, String> row, List<BatchRecord> dependents) BatchRequest
(String id, String importId, String type, String fileType, BatchRequest.BatchContext context, List<BatchRecord> records) -
Uses of BatchRecord in com.broadleafcommerce.common.dataimport.util
Methods in com.broadleafcommerce.common.dataimport.util with parameters of type BatchRecordModifier and TypeMethodDescriptionstatic <T> void
ConversionUtils.addFailedConversionCompletions
(BatchRecord failedToConvert, ConversionUtils.ConversionResponse<T> failedConversion, List<BatchCompletionRecord> destination) Creates aBatchCompletionRecord
for the givenfailedToConvert
batch record, and then createsBatchCompletionRecords
for all of its nested dependents.static <T> ConversionUtils.ConversionResponse<T>
ConversionUtils.convert
(BatchRecord toConvert, org.springframework.core.convert.converter.Converter<BatchRecord, T> converter) Convert the givenBatchRecord
using the givenconverter
.static BatchCompletionRecord
BatchCompletionRecordUtils.error
(BatchRecord original, String errorMessage) Creates a successful completion from the original record.static BatchCompletionRecord
BatchCompletionRecordUtils.success
(BatchRecord original) Creates a successful completion from the original record.Method parameters in com.broadleafcommerce.common.dataimport.util with type arguments of type BatchRecordModifier and TypeMethodDescriptionstatic List<BatchCompletionRecord>
BatchCompletionRecordUtils.allErrored
(List<BatchRecord> from, String errorMessage) Converts all of the given BatchRecords and dependents to errorred completionsstatic List<BatchCompletionRecord>
BatchCompletionRecordUtils.allSuccess
(List<BatchRecord> from) Converts all of the given BatchRecords and dependents to successful completionsstatic <T> ConversionUtils.ConversionResponse<T>
ConversionUtils.convert
(BatchRecord toConvert, org.springframework.core.convert.converter.Converter<BatchRecord, T> converter) Convert the givenBatchRecord
using the givenconverter
.