org.broadleafcommerce.profile.core.dao
Class CustomerAddressDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.dao.CustomerAddressDaoImpl
All Implemented Interfaces:
CustomerAddressDao

@Repository(value="blCustomerAddressDao")
public class CustomerAddressDaoImpl
extends Object
implements CustomerAddressDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
CustomerAddressDaoImpl()
           
 
Method Summary
 CustomerAddress create()
           
 void deleteCustomerAddressById(Long customerAddressId)
           
 CustomerAddress findDefaultCustomerAddress(Long customerId)
           
 void makeCustomerAddressDefault(Long customerAddressId, Long customerId)
           
 List<CustomerAddress> readActiveCustomerAddressesByCustomerId(Long customerId)
           
 CustomerAddress readCustomerAddressById(Long customerAddressId)
           
 CustomerAddress save(CustomerAddress customerAddress)
           
 
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

CustomerAddressDaoImpl

public CustomerAddressDaoImpl()
Method Detail

readActiveCustomerAddressesByCustomerId

public List<CustomerAddress> readActiveCustomerAddressesByCustomerId(Long customerId)
Specified by:
readActiveCustomerAddressesByCustomerId in interface CustomerAddressDao

save

public CustomerAddress save(CustomerAddress customerAddress)
Specified by:
save in interface CustomerAddressDao

create

public CustomerAddress create()
Specified by:
create in interface CustomerAddressDao

readCustomerAddressById

public CustomerAddress readCustomerAddressById(Long customerAddressId)
Specified by:
readCustomerAddressById in interface CustomerAddressDao

makeCustomerAddressDefault

public void makeCustomerAddressDefault(Long customerAddressId,
                                       Long customerId)
Specified by:
makeCustomerAddressDefault in interface CustomerAddressDao

deleteCustomerAddressById

public void deleteCustomerAddressById(Long customerAddressId)
Specified by:
deleteCustomerAddressById in interface CustomerAddressDao

findDefaultCustomerAddress

public CustomerAddress findDefaultCustomerAddress(Long customerId)
Specified by:
findDefaultCustomerAddress in interface CustomerAddressDao


Copyright © 2012. All Rights Reserved.