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,com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,,String> org.springframework.data.repository.Repository<D,String>
- All Known Subinterfaces:
JpaImportBatchItemCompletionRepository<D>
@NoRepositoryBean
public interface ImportBatchItemCompletionRepository<D>
extends com.broadleafcommerce.common.extension.data.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 TypeMethodDescriptiondeleteByIdIn(List<String> ids) Deprecated, for removal: This API element is subject to removal in a future version.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 whoseBatchItemCompletion.importIdmatches the given value.findAllByImportIdAndStatus(String importId, String status) Finds and returns all of the item completions whoseBatchItemCompletion.importIdmatches the given importId andBatchItemCompletion.statusgiven status.findByImportIdAndStatusAndCorrelationIdIn(String importId, String status, Set<String> referencedCorrelationIds) Finds and returns all of the item completions whoseBatchItemCompletion.importIdmatches the given importId,BatchItemCompletion.statusthe given status andBatchItemCompletion.correlationIdthe 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 idMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllMethods inherited from interface com.broadleafcommerce.dataimport.repository.CustomizedImportBatchItemCompletionRepository
deleteAllByIdInBatch, findAllBatchItemCompletionIdsByImportIds, findByCorrelationIdInOrTopLevelParentIdInOrderedByLineNumber, initializeForIndexing, initializeForIndexingMethods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainTypeMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAllMethods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods inherited from interface com.broadleafcommerce.common.extension.data.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 whoseBatchItemCompletion.importIdmatches the given value.- Parameters:
importId- the ID of the import whose batch item completions should be returnedfilters- additional filters used to restrict results. Cannot be null - useEmptyNodeif 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
Finds and returns all of the item completions whoseBatchItemCompletion.importIdmatches the given importId andBatchItemCompletion.statusgiven status.- Parameters:
importId- the ID of the import whose batch item completions should be returnedstatus- 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 whoseBatchItemCompletion.importIdmatches the given importId,BatchItemCompletion.statusthe given status andBatchItemCompletion.correlationIdthe set of correlation ids.- Parameters:
importId- the ID of the import whose batch item completions should be returnedstatus- the status of the record to retrievereferencedCorrelationIds- 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 againstpageable- 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
Deprecated, for removal: This API element is subject to removal in a future version.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
-
CustomizedImportBatchItemCompletionRepository.deleteAllByIdInBatch(List)