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 TypeMethodDescriptionlongdeleteByStorageProviderTypeAndOriginalLocationIn(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, saveAllMethods 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, findAllMethods 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:
deleteByStorageProviderTypeAndOriginalLocationInin interfaceStorageLocationMappingRepository<D extends JpaStorageLocationMapping>- Parameters:
storageProviderType- theStorageLocationMapping.getStorageProviderType()value identifying the storage provider to find the mappings fororiginalLocations- theoriginal locationsto find the mapping records for- Returns:
- the number of records deleted by the operation
-