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 ofCustomerAccountby account id.findByAccountNumber(String accountNumber) Lookup aCustomerAccountby account number.Lookup aCustomerAccountby account id.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, save, saveAllMethods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
findById
Lookup aCustomerAccountby account id.- Specified by:
findByIdin interfaceorg.springframework.data.repository.CrudRepository<D,String> - Parameters:
accountId- The account id of theCustomerAccount.- Returns:
- The
CustomerAccountfor the account id.
-
findAllByParentAccountIdIn
@Policy(operationTypes=READ) List<D> findAllByParentAccountIdIn(Collection<String> parentAccountIds) Lookup a list ofCustomerAccountby account id.- Parameters:
parentAccountIds- The parent account id of theCustomerAccount.- Returns:
- The list of
CustomerAccountobjects for the parent account id.
-
findByAccountNumber
Lookup aCustomerAccountby account number.- Parameters:
accountNumber- The account number of theCustomerAccount.- Returns:
- The
CustomerAccountfor the account number. - Since:
- Authentication Services 2.3.0, Release Train 2.3.0
-