org.broadleafcommerce.profile.core.dao
Class CustomerPhoneDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.dao.CustomerPhoneDaoImpl
All Implemented Interfaces:
CustomerPhoneDao

@Repository(value="blCustomerPhoneDao")
public class CustomerPhoneDaoImpl
extends java.lang.Object
implements CustomerPhoneDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
CustomerPhoneDaoImpl()
           
 
Method Summary
 CustomerPhone create()
           
 void deleteCustomerPhoneById(java.lang.Long customerPhoneId)
           
 CustomerPhone findDefaultCustomerPhone(java.lang.Long customerId)
           
 void makeCustomerPhoneDefault(java.lang.Long customerPhoneId, java.lang.Long customerId)
           
 java.util.List<CustomerPhone> readActiveCustomerPhonesByCustomerId(java.lang.Long customerId)
           
 java.util.List<CustomerPhone> readAllCustomerPhonesByCustomerId(java.lang.Long customerId)
           
 CustomerPhone readCustomerPhoneById(java.lang.Long customerPhoneId)
           
 CustomerPhone save(CustomerPhone customerPhone)
           
 
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

CustomerPhoneDaoImpl

public CustomerPhoneDaoImpl()
Method Detail

readActiveCustomerPhonesByCustomerId

public java.util.List<CustomerPhone> readActiveCustomerPhonesByCustomerId(java.lang.Long customerId)
Specified by:
readActiveCustomerPhonesByCustomerId in interface CustomerPhoneDao

save

public CustomerPhone save(CustomerPhone customerPhone)
Specified by:
save in interface CustomerPhoneDao

readCustomerPhoneById

public CustomerPhone readCustomerPhoneById(java.lang.Long customerPhoneId)
Specified by:
readCustomerPhoneById in interface CustomerPhoneDao

makeCustomerPhoneDefault

public void makeCustomerPhoneDefault(java.lang.Long customerPhoneId,
                                     java.lang.Long customerId)
Specified by:
makeCustomerPhoneDefault in interface CustomerPhoneDao

deleteCustomerPhoneById

public void deleteCustomerPhoneById(java.lang.Long customerPhoneId)
Specified by:
deleteCustomerPhoneById in interface CustomerPhoneDao

findDefaultCustomerPhone

public CustomerPhone findDefaultCustomerPhone(java.lang.Long customerId)
Specified by:
findDefaultCustomerPhone in interface CustomerPhoneDao

readAllCustomerPhonesByCustomerId

public java.util.List<CustomerPhone> readAllCustomerPhonesByCustomerId(java.lang.Long customerId)
Specified by:
readAllCustomerPhonesByCustomerId in interface CustomerPhoneDao

create

public CustomerPhone create()
Specified by:
create in interface CustomerPhoneDao


Copyright © 2011. All Rights Reserved.