Interface CustomerAccountRepository<D>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> com.broadleafcommerce.common.extension.DomainTypeAware
,org.springframework.data.repository.Repository<D,
String>
- All Known Subinterfaces:
JpaCustomerAccountRepository<D>
@NoRepositoryBean
public interface CustomerAccountRepository<D>
extends org.springframework.data.repository.CrudRepository<D,String>, com.broadleafcommerce.common.extension.DomainTypeAware
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByParentAccountIdIn
(Collection<String> parentAccountIds) Lookup a list ofCustomerAccount
by account id.Lookup aCustomerAccount
by account id.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, save, saveAll
Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
findById
Lookup aCustomerAccount
by account id.- Specified by:
findById
in interfaceorg.springframework.data.repository.CrudRepository<D,
String> - Parameters:
accountId
- The account id of theCustomerAccount
.- Returns:
- The
CustomerAccount
for the account id.
-
findAllByParentAccountIdIn
@Policy(operationTypes=READ) List<D> findAllByParentAccountIdIn(Collection<String> parentAccountIds) Lookup a list ofCustomerAccount
by account id.- Parameters:
parentAccountIds
- The parent account id of theCustomerAccount
.- Returns:
- The list of
CustomerAccount
objects for the parent account id.
-