Class DefaultCustomerDao

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CustomerModel>
de.hybris.platform.commerceservices.customer.dao.impl.DefaultCustomerDao
All Implemented Interfaces:
CustomerDao, Dao, GenericDao<CustomerModel>

public class DefaultCustomerDao extends DefaultGenericDao<CustomerModel> implements CustomerDao
Dao for retrieving the customer
  • Constructor Details

    • DefaultCustomerDao

      public DefaultCustomerDao()
  • Method Details

    • findCustomerByCustomerId

      public CustomerModel findCustomerByCustomerId(String customerId)
      Description copied from interface: CustomerDao
      Finds the customer by the unique customerId
      Specified by:
      findCustomerByCustomerId in interface CustomerDao
      Parameters:
      customerId - the unique customerId in UUID format, that represents the customer
      Returns:
      The customer found
    • findFirstCustomerByBaseSitePK

      public Optional<CustomerModel> findFirstCustomerByBaseSitePK(PK baseSitePK)
      Description copied from interface: CustomerDao
      Finds the first customer, who registered to this BaseSite
      Specified by:
      findFirstCustomerByBaseSitePK in interface CustomerDao
      Parameters:
      baseSitePK - the BaseSite PK
      Returns:
      Optional.empty() is no one customer found, and Optional.of(Customer) is one customer found