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 TypeMethodDescriptionmarkProcessingBatchAsCompleted
(String batchId) Changes the status toBatchStatus.COMPLETED
and the completion date to the current time if the given batch is in aBatchStatus.PROCESSING
state.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.COMPLETED
and the completion date to the current time if the given batch is in aBatchStatus.PROCESSING
state.- Parameters:
batchId
- the batch to update- Returns:
- the modified batch or null if there was no batch for the given
batchId
or the batch was not in aBatchStatus.PROCESSING
state
-
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
-