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>
Dao for retrieving the customer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCustomerByCustomerId(String customerId) Finds the customer by the unique customerIdfindFirstCustomerByBaseSitePK(PK baseSitePK) Finds the first customer, who registered to this BaseSiteMethods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultCustomerDao
public DefaultCustomerDao()
-
-
Method Details
-
findCustomerByCustomerId
Description copied from interface:CustomerDaoFinds the customer by the unique customerId- Specified by:
findCustomerByCustomerIdin interfaceCustomerDao- Parameters:
customerId- the unique customerId in UUID format, that represents the customer- Returns:
- The customer found
-
findFirstCustomerByBaseSitePK
Description copied from interface:CustomerDaoFinds the first customer, who registered to this BaseSite- Specified by:
findFirstCustomerByBaseSitePKin interfaceCustomerDao- Parameters:
baseSitePK- the BaseSite PK- Returns:
- Optional.empty() is no one customer found, and Optional.of(Customer) is one customer found
-