Interface StorageLocationMappingRepository<D extends com.broadleafcommerce.data.tracking.core.Identifiable>
- Type Parameters:
D
- the persisted domain type
- 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>
- All Known Subinterfaces:
JpaStorageLocationMappingRepository<D>
@NoRepositoryBean
public interface StorageLocationMappingRepository<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>
Repository
allowing management and retrieval of persistent counterparts of
StorageLocationMapping
.-
Method Summary
Modifier and TypeMethodDescriptionlong
deleteByStorageProviderTypeAndOriginalLocationIn
(String storageProviderType, Collection<String> originalLocations) Deletes the mapping records matching the specified filters.findByStorageProviderTypeAndOriginalLocationIn
(String storageProviderType, Collection<String> originalLocations) 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
-
Method Details
-
findByStorageProviderTypeAndOriginalLocationIn
@Policy(operationTypes=READ) List<D> findByStorageProviderTypeAndOriginalLocationIn(String storageProviderType, Collection<String> originalLocations) - Parameters:
storageProviderType
- theStorageLocationMapping.getStorageProviderType()
value identifying the storage provider to find the mappings fororiginalLocations
- theoriginal locations
to find the mapping records for- Returns:
- the mapping records matching the provided input
-
deleteByStorageProviderTypeAndOriginalLocationIn
@Policy(operationTypes=DELETE) long deleteByStorageProviderTypeAndOriginalLocationIn(String storageProviderType, Collection<String> originalLocations) Deletes the mapping records matching the specified filters.- 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
-