Interface TenantRepository<D>
- Type Parameters:
D
- General domain type
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> com.broadleafcommerce.common.extension.DomainTypeAware
,com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>
,org.springframework.data.repository.PagingAndSortingRepository<D,
,String> org.springframework.data.repository.Repository<D,
String>
- All Known Subinterfaces:
JpaTenantRepository<D>
@NoRepositoryBean
public interface TenantRepository<D>
extends org.springframework.data.repository.PagingAndSortingRepository<D,String>, com.broadleafcommerce.data.tracking.core.service.MappableRsqlFilterExecutor<D>
Repository agnostic Tenant interface. Generally extended by another interface that is declared
against a specific repository domain type.
-
Method Summary
Modifier and TypeMethodDescriptionfindByIdentifierValueAndIdentifierType
(String identifierValue, String identifierType) Read the tenant by itsTenant.getIdentifierValue()
andTenant.getIdentifierValue()
.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 org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findByIdentifierValueAndIdentifierType
Read the tenant by itsTenant.getIdentifierValue()
andTenant.getIdentifierValue()
.- Parameters:
identifierValue
- theTenant.getIdentifierValue()
identifierType
- theTenant.getIdentifierType()
- Returns:
- the tenant with the matching
Tenant.getIdentifierValue()
-