org.broadleafcommerce.profile.core.dao
Class CustomerDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.dao.CustomerDaoImpl
All Implemented Interfaces:
CustomerDao

@Repository(value="blCustomerDao")
public class CustomerDaoImpl
extends Object
implements CustomerDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
CustomerDaoImpl()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration
Constructor Detail

CustomerDaoImpl

public CustomerDaoImpl()
Method Detail

readCustomerById

public Customer readCustomerById(Long id)
Specified by:
readCustomerById in interface CustomerDao

readCustomerByUsername

public Customer readCustomerByUsername(String username)
Description copied from interface: CustomerDao
Returns the first customer that match the passed in username.

Specified by:
readCustomerByUsername in interface CustomerDao
Returns:

readCustomersByUsername

public List<Customer> readCustomersByUsername(String username)
Description copied from interface: CustomerDao
Returns all customers that match the passed in username.

Specified by:
readCustomersByUsername in interface CustomerDao
Returns:

readCustomerByEmail

public Customer readCustomerByEmail(String emailAddress)
Description copied from interface: CustomerDao
Returns the first customer that matches the passed in email.

Specified by:
readCustomerByEmail in interface CustomerDao
Returns:

readCustomersByEmail

public List<Customer> readCustomersByEmail(String emailAddress)
Description copied from interface: CustomerDao
Returns all customers that matches the passed in email.

Specified by:
readCustomersByEmail in interface CustomerDao
Returns:

save

public Customer save(Customer customer)
Specified by:
save in interface CustomerDao

create

public Customer create()
Specified by:
create in interface CustomerDao


Copyright © 2013. All Rights Reserved.