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 allBulkOperationslast 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, saveAllMethods inherited from interface com.broadleafcommerce.catalog.repository.bulkoperation.CustomizedBulkOperationRepository
deleteAllByIdInMethods 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.extension.data.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findAllByUpdateDateBeforeAndOperationStatusIn
@Policy(operationTypes=READ) List<D> findAllByUpdateDateBeforeAndOperationStatusIn(Instant threshold, Collection<String> statuses) Retrieves allBulkOperationslast updated before the given threshold.- Parameters:
threshold- The date before which to retrieveBulkOperationsstatuses- Collection ofOperationStatusesto restrict the retrievedBulkOperationsby.- Returns:
- All
BulkOperationslast updated before the given threshold.
-