Interface JpaStorageLocationMappingRepository<D extends JpaStorageLocationMapping>
- Type Parameters:
D
-JpaStorageLocationMapping
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> 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> StorageLocationMappingRepository<D>
@Repository
public interface JpaStorageLocationMappingRepository<D extends JpaStorageLocationMapping>
extends StorageLocationMappingRepository<D>
JPA domain-specific implementation of
StorageLocationMappingRepository
.-
Method Summary
Modifier and TypeMethodDescriptionlong
deleteByStorageProviderTypeAndOriginalLocationIn
(String storageProviderType, Collection<String> originalLocations) Deletes the mapping records matching the specified filters.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.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
Methods inherited from interface com.broadleafcommerce.asset.repository.StorageLocationMappingRepository
findByStorageProviderTypeAndOriginalLocationIn
-
Method Details
-
deleteByStorageProviderTypeAndOriginalLocationIn
@Transactional @Policy(operationTypes=DELETE) long deleteByStorageProviderTypeAndOriginalLocationIn(String storageProviderType, Collection<String> originalLocations) Deletes the mapping records matching the specified filters.- Specified by:
deleteByStorageProviderTypeAndOriginalLocationIn
in interfaceStorageLocationMappingRepository<D extends JpaStorageLocationMapping>
- Parameters:
storageProviderType
- theStorageLocationMapping.getStorageProviderType()
value identifying the storage provider to find the mappings fororiginalLocations
- theoriginal locations
to find the mapping records for- Returns:
- the number of records deleted by the operation
-