Interface CustomizedImportBatchRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
- All Known Subinterfaces:
ImportBatchRepository<D>,JpaImportBatchRepository<D>
- All Known Implementing Classes:
JpaCustomizedImportBatchRepository
public interface CustomizedImportBatchRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
extends com.broadleafcommerce.common.extension.DomainTypeAware
- Author:
- Phillip Verheyden (phillipuniverse)
-
Method Summary
Modifier and TypeMethodDescriptiondeleteAllByImportIdsInBatch(List<String> importIds) Delete the batches that match the corresponding import ids using a single query.markProcessingBatchAsCompleted(String batchId) Changes the status toBatchStatus.COMPLETEDand the completion date to the current time if the given batch is in aBatchStatus.PROCESSINGstate.replaceContainedItems(D batchContainingItems) Atomically updates the batch items for the given batch.Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
markProcessingBatchAsCompleted
Changes the status toBatchStatus.COMPLETEDand the completion date to the current time if the given batch is in aBatchStatus.PROCESSINGstate.- Parameters:
batchId- the batch to update- Returns:
- the modified batch or null if there was no batch for the given
batchIdor the batch was not in aBatchStatus.PROCESSINGstate
-
replaceContainedItems
Atomically updates the batch items for the given batch. No other properties of the given batch are updated- Parameters:
batchContainingItems- the batch containing the items that should be updated- Returns:
- the updated batch or null if there is no batch for the given id
-
deleteAllByImportIdsInBatch
Delete the batches that match the corresponding import ids using a single query.- Parameters:
importIds- the list of import ids to delete against- Returns:
- the number of batches deleted
-