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 TypeMethodDescriptiondeleteByIdIn
(List<String> ids) Delete the batch item completions that match the corresponding idsorg.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.importId
matches the given value.findAllByImportIdAndStatus
(String importId, String status) Finds and returns all of the item completions whoseBatchItemCompletion.importId
matches the given importId andBatchItemCompletion.status
given status.findByImportIdAndStatusAndCorrelationIdIn
(String importId, String status, Set<String> referencedCorrelationIds) Finds and returns all of the item completions whoseBatchItemCompletion.importId
matches the given importId,BatchItemCompletion.status
the given status andBatchItemCompletion.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 idMethods 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.dataimport.repository.CustomizedImportBatchItemCompletionRepository
findByCorrelationIdInOrTopLevelParentIdInOrderedByLineNumber, initializeForIndexing, initializeForIndexing
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 whoseBatchItemCompletion.importId
matches 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 - useEmptyNode
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
Finds and returns all of the item completions whoseBatchItemCompletion.importId
matches the given importId andBatchItemCompletion.status
given 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.importId
matches the given importId,BatchItemCompletion.status
the given status andBatchItemCompletion.correlationId
the 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
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
-