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 Details

    • findById

      @Policy(operationTypes=READ) Optional<D> findById(String accountId)
      Lookup a CustomerAccount by account id.
      Specified by:
      findById in interface org.springframework.data.repository.CrudRepository<D,String>
      Parameters:
      accountId - The account id of the CustomerAccount.
      Returns:
      The CustomerAccount for the account id.
    • findAllByParentAccountIdIn

      @Policy(operationTypes=READ) List<D> findAllByParentAccountIdIn(Collection<String> parentAccountIds)
      Lookup a list of CustomerAccount by account id.
      Parameters:
      parentAccountIds - The parent account id of the CustomerAccount.
      Returns:
      The list of CustomerAccount objects for the parent account id.
    • findByAccountNumber

      @Policy(operationTypes=READ) Optional<D> findByAccountNumber(String accountNumber)
      Lookup a CustomerAccount by account number.
      Parameters:
      accountNumber - The account number of the CustomerAccount.
      Returns:
      The CustomerAccount for the account number.
      Since:
      Authentication Services 2.3.0, Release Train 2.3.0