Class JpaCustomizedBulkOperationItemRepository<D extends JpaBulkOperationItem>
java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.repository.bulkoperation.JpaCustomizedBulkOperationItemRepository<D>
- All Implemented Interfaces:
CustomizedBulkOperationItemRepository<D>
,com.broadleafcommerce.common.extension.DomainTypeAware
@Repository
public class JpaCustomizedBulkOperationItemRepository<D extends JpaBulkOperationItem>
extends Object
implements CustomizedBulkOperationItemRepository<D>
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
deleteAllByIdIn
(@NonNull Collection<String> ids) Deletes all theBulkOperationItems
matching the given IDs.findAllIdsByBulkOperationIdIn
(@NonNull Collection<String> bulkOperationIds, int batchSize) Retrieves a batch of IDs forBulkOperationItems
that belong to the givenBulkOperations
.protected jakarta.persistence.EntityManager
-
Constructor Details
-
JpaCustomizedBulkOperationItemRepository
public JpaCustomizedBulkOperationItemRepository()
-
-
Method Details
-
getDomainType
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
findAllIdsByBulkOperationIdIn
public List<String> findAllIdsByBulkOperationIdIn(@NonNull @NonNull Collection<String> bulkOperationIds, int batchSize) Description copied from interface:CustomizedBulkOperationItemRepository
Retrieves a batch of IDs forBulkOperationItems
that belong to the givenBulkOperations
.- Specified by:
findAllIdsByBulkOperationIdIn
in interfaceCustomizedBulkOperationItemRepository<D extends JpaBulkOperationItem>
- Parameters:
bulkOperationIds
- IDs of the parentBulkOperations
.batchSize
- Size of the batch to read.- Returns:
- A batch of IDs for
BulkOperationItems
that belong to the givenBulkOperations
.
-
deleteAllByIdIn
@Transactional("catalogTransactionManager") public int deleteAllByIdIn(@NonNull @NonNull Collection<String> ids) Description copied from interface:CustomizedBulkOperationItemRepository
Deletes all theBulkOperationItems
matching the given IDs.- Specified by:
deleteAllByIdIn
in interfaceCustomizedBulkOperationItemRepository<D extends JpaBulkOperationItem>
- Parameters:
ids
- IDs of theBulkOperationItems
to delete.- Returns:
- The number of items deleted.
-
getEntityManager
protected jakarta.persistence.EntityManager getEntityManager()
-