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 Details

    • markProcessingBatchAsCompleted

      @Nullable D markProcessingBatchAsCompleted(String batchId)
      Changes the status to BatchStatus.COMPLETED and the completion date to the current time if the given batch is in a BatchStatus.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 a BatchStatus.PROCESSING state
    • replaceContainedItems

      @Nullable D replaceContainedItems(D batchContainingItems)
      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