Interface ImportBatchItemCompletionRepository<D>

All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,String>, CustomizedImportBatchItemCompletionRepository<D>, com.broadleafcommerce.common.extension.DomainTypeAware, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository, org.springframework.data.repository.PagingAndSortingRepository<D,String>, org.springframework.data.repository.Repository<D,String>
All Known Subinterfaces:
JpaImportBatchItemCompletionRepository<D>

@NoRepositoryBean public interface ImportBatchItemCompletionRepository<D> extends org.springframework.data.repository.PagingAndSortingRepository<D,String>, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>, CustomizedImportBatchItemCompletionRepository<D>, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
Repository for persistent counter-parts of BatchItemCompletion.
Author:
Samarth Dhruva (samarthd)
  • Method Summary

    Modifier and Type
    Method
    Description
    Delete the batch item completions that match the corresponding ids
    org.springframework.data.domain.Page<D>
    findAllByImportId(String importId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable)
    Finds and returns all of the item completions whose BatchItemCompletion.importId matches the given value.
    Finds and returns all of the item completions whose BatchItemCompletion.importId matches the given importId and BatchItemCompletion.status given status.
    findByImportIdAndStatusAndCorrelationIdIn(String importId, String status, Set<String> referencedCorrelationIds)
    Finds and returns all of the item completions whose BatchItemCompletion.importId matches the given importId, BatchItemCompletion.status the given status and BatchItemCompletion.correlationId the set of correlation ids.
    org.springframework.data.domain.Page<D>
    readBatchItemCompletionIdsByImportId(String importId, org.springframework.data.domain.Pageable pageable)
    Read a list of batch item completions for the provided import id

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll

    Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware

    getDomainType

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor

    exists, findAll, findAll, findAll, findAll

    Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository

    findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll, findAll
  • Method Details

    • findAllByImportId

      org.springframework.data.domain.Page<D> findAllByImportId(String importId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable)
      Finds and returns all of the item completions whose BatchItemCompletion.importId matches the given value.
      Parameters:
      importId - the ID of the import whose batch item completions should be returned
      filters - additional filters used to restrict results. Cannot be null - use EmptyNode if no additional filters should be applied.
      pageable - information about which page of results should be returned from the database
      Returns:
      all of the item completions for the given import
    • findAllByImportIdAndStatus

      Stream<D> findAllByImportIdAndStatus(String importId, String status)
      Finds and returns all of the item completions whose BatchItemCompletion.importId matches the given importId and BatchItemCompletion.status given status.
      Parameters:
      importId - the ID of the import whose batch item completions should be returned
      status - the status of the record to retrieve
      Returns:
      all of the item completions for the given import and status
    • findByImportIdAndStatusAndCorrelationIdIn

      List<D> findByImportIdAndStatusAndCorrelationIdIn(String importId, String status, Set<String> referencedCorrelationIds)
      Finds and returns all of the item completions whose BatchItemCompletion.importId matches the given importId, BatchItemCompletion.status the given status and BatchItemCompletion.correlationId the set of correlation ids.
      Parameters:
      importId - the ID of the import whose batch item completions should be returned
      status - the status of the record to retrieve
      referencedCorrelationIds - the set of correlation ids
      Returns:
      all of the item completions for the given import and status
    • readBatchItemCompletionIdsByImportId

      org.springframework.data.domain.Page<D> readBatchItemCompletionIdsByImportId(String importId, org.springframework.data.domain.Pageable pageable)
      Read a list of batch item completions for the provided import id
      Parameters:
      importId - the import id to match batch item completions against
      pageable - information about which page of results should be returned from the database
      Returns:
      a list of batch item completions for the provided import id
    • deleteByIdIn

      Long deleteByIdIn(List<String> ids)
      Delete the batch item completions that match the corresponding ids
      Parameters:
      ids - the list of ids to delete
      Returns:
      the number of batch item completions deleted