org.broadleafcommerce.profile.core.dao
Interface CustomerDao

All Known Implementing Classes:
CustomerDaoImpl

public interface CustomerDao


Method Summary
 Customer create()
           
 Customer readCustomerByEmail(String emailAddress)
          Returns the first customer that matches the passed in email.
 Customer readCustomerById(Long id)
           
 Customer readCustomerByUsername(String username)
          Returns the first customer that match the passed in username.
 List<Customer> readCustomersByEmail(String emailAddress)
          Returns all customers that matches the passed in email.
 List<Customer> readCustomersByUsername(String username)
          Returns all customers that match the passed in username.
 Customer save(Customer customer)
           
 

Method Detail

readCustomerById

Customer readCustomerById(Long id)

readCustomerByUsername

Customer readCustomerByUsername(String username)
Returns the first customer that match the passed in username.

Parameters:
username -
Returns:

readCustomersByUsername

List<Customer> readCustomersByUsername(String username)
Returns all customers that match the passed in username.

Parameters:
username -
Returns:

save

Customer save(Customer customer)

readCustomerByEmail

Customer readCustomerByEmail(String emailAddress)
Returns the first customer that matches the passed in email.

Parameters:
emailAddress -
Returns:

readCustomersByEmail

List<Customer> readCustomersByEmail(String emailAddress)
Returns all customers that matches the passed in email.

Parameters:
emailAddress -
Returns:

create

Customer create()


Copyright © 2013. All Rights Reserved.