org.broadleafcommerce.profile.core.dao
@Repository(value="blCustomerDao") public class CustomerDaoImpl extends Object implements CustomerDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
CustomerDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public Customer readCustomerById(Long id)
readCustomerById in interface CustomerDaopublic Customer readCustomerByUsername(String username)
CustomerDaoreadCustomerByUsername in interface CustomerDaopublic List<Customer> readCustomersByUsername(String username)
CustomerDaoreadCustomersByUsername in interface CustomerDaopublic Customer readCustomerByEmail(String emailAddress)
CustomerDaoreadCustomerByEmail in interface CustomerDaopublic List<Customer> readCustomersByEmail(String emailAddress)
CustomerDaoreadCustomersByEmail in interface CustomerDaopublic Customer save(Customer customer)
save in interface CustomerDaopublic Customer create()
create in interface CustomerDaoCopyright © 2015. All Rights Reserved.