Interface BulkOperationRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> CustomizedBulkOperationRepository<D>
,com.broadleafcommerce.common.extension.DomainTypeAware
,com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>
,com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,
,String> org.springframework.data.repository.Repository<D,
String>
- All Known Subinterfaces:
JpaBulkOperationRepository<D>
@NoRepositoryBean
public interface BulkOperationRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
extends com.broadleafcommerce.common.extension.data.PagingAndSortingRepository<D,String>, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>, CustomizedBulkOperationRepository<D>
Repository
for persistent counter-parts of
BulkOperation
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByUpdateDateBeforeAndOperationStatusIn
(Instant threshold, Collection<String> statuses) Retrieves allBulkOperations
last updated before the given threshold.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.catalog.repository.bulkoperation.CustomizedBulkOperationRepository
deleteAllByIdIn
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.extension.data.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findAllByUpdateDateBeforeAndOperationStatusIn
@Policy(operationTypes=READ) List<D> findAllByUpdateDateBeforeAndOperationStatusIn(Instant threshold, Collection<String> statuses) Retrieves allBulkOperations
last updated before the given threshold.- Parameters:
threshold
- The date before which to retrieveBulkOperations
statuses
- Collection ofOperationStatuses
to restrict the retrievedBulkOperations
by.- Returns:
- All
BulkOperations
last updated before the given threshold.
-