Class CustomerDaoImpl
java.lang.Object
org.broadleafcommerce.profile.core.dao.CustomerDaoImpl
- All Implemented Interfaces:
CustomerDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()voidRemove a customer from the persistent storevoidDetaches the given Customer instance from the entity manager.readBatchCustomers(int start, int pageSize) Reads a batch list of customers from the DB.readBatchCustomersFromLastID(Long lastID, int pageSize) Reads a batch of customer using ID as a starting pointreadCustomerByEmail(String emailAddress) Returns the first customer that matches the passed in email.readCustomerByExternalId(String externalId) readCustomerById(Long id) readCustomerByUsername(String username) Returns the first customer that match the passed in username, with caching defaulted.readCustomerByUsername(String username, Boolean cacheable) Returns the first customer that match the passed in username, and caches according to cacheable.readCustomersByEmail(String emailAddress) Returns all customers that matches the passed in email.readCustomersByIds(List<Long> ids) readCustomersByUsername(String username) Returns all customers that match the passed in username, with caching defaulted.readCustomersByUsername(String username, Boolean cacheable) Returns all customers that match the passed in username, and caches according to cacheable.voidrefreshCustomer(Customer customer)
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
CustomerDaoImpl
public CustomerDaoImpl()
-
-
Method Details
-
readCustomerById
- Specified by:
readCustomerByIdin interfaceCustomerDao
-
readCustomerByExternalId
- Specified by:
readCustomerByExternalIdin interfaceCustomerDao
-
readCustomersByIds
- Specified by:
readCustomersByIdsin interfaceCustomerDao
-
readCustomerByUsername
Description copied from interface:CustomerDaoReturns the first customer that match the passed in username, with caching defaulted.- Specified by:
readCustomerByUsernamein interfaceCustomerDao- Returns:
-
readCustomerByUsername
Description copied from interface:CustomerDaoReturns the first customer that match the passed in username, and caches according to cacheable.- Specified by:
readCustomerByUsernamein interfaceCustomerDao- Returns:
-
readCustomersByUsername
Description copied from interface:CustomerDaoReturns all customers that match the passed in username, with caching defaulted.- Specified by:
readCustomersByUsernamein interfaceCustomerDao- Returns:
-
readCustomersByUsername
Description copied from interface:CustomerDaoReturns all customers that match the passed in username, and caches according to cacheable.- Specified by:
readCustomersByUsernamein interfaceCustomerDao- Returns:
-
readCustomerByEmail
Description copied from interface:CustomerDaoReturns the first customer that matches the passed in email.- Specified by:
readCustomerByEmailin interfaceCustomerDao- Returns:
-
readCustomersByEmail
Description copied from interface:CustomerDaoReturns all customers that matches the passed in email.- Specified by:
readCustomersByEmailin interfaceCustomerDao- Returns:
-
save
- Specified by:
savein interfaceCustomerDao
-
create
- Specified by:
createin interfaceCustomerDao
-
delete
Description copied from interface:CustomerDaoRemove a customer from the persistent store- Specified by:
deletein interfaceCustomerDao- Parameters:
customer- the customer entity to remove
-
detach
Description copied from interface:CustomerDaoDetaches the given Customer instance from the entity manager.- Specified by:
detachin interfaceCustomerDao
-
readBatchCustomers
Description copied from interface:CustomerDaoReads a batch list of customers from the DB.- Specified by:
readBatchCustomersin interfaceCustomerDao- Returns:
-
readBatchCustomersFromLastID
Description copied from interface:CustomerDaoReads a batch of customer using ID as a starting point- Specified by:
readBatchCustomersFromLastIDin interfaceCustomerDao- Returns:
-
readNumberOfCustomers
- Specified by:
readNumberOfCustomersin interfaceCustomerDao
-
refreshCustomer
- Specified by:
refreshCustomerin interfaceCustomerDao
-