@Repository(value="blCustomerPhoneDao") public class CustomerPhoneDaoImpl extends Object implements CustomerPhoneDao
Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
Constructor and Description |
---|
CustomerPhoneDaoImpl() |
Modifier and Type | Method and Description |
---|---|
CustomerPhone |
create() |
void |
deleteCustomerPhoneById(Long customerPhoneId) |
CustomerPhone |
findDefaultCustomerPhone(Long customerId) |
void |
makeCustomerPhoneDefault(Long customerPhoneId,
Long customerId) |
List<CustomerPhone> |
readActiveCustomerPhonesByCustomerId(Long customerId) |
List<CustomerPhone> |
readAllCustomerPhonesByCustomerId(Long customerId) |
CustomerPhone |
readCustomerPhoneById(Long customerPhoneId) |
CustomerPhone |
save(CustomerPhone customerPhone) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public List<CustomerPhone> readActiveCustomerPhonesByCustomerId(Long customerId)
readActiveCustomerPhonesByCustomerId
in interface CustomerPhoneDao
public CustomerPhone save(CustomerPhone customerPhone)
save
in interface CustomerPhoneDao
public CustomerPhone readCustomerPhoneById(Long customerPhoneId)
readCustomerPhoneById
in interface CustomerPhoneDao
public void makeCustomerPhoneDefault(Long customerPhoneId, Long customerId)
makeCustomerPhoneDefault
in interface CustomerPhoneDao
public void deleteCustomerPhoneById(Long customerPhoneId)
deleteCustomerPhoneById
in interface CustomerPhoneDao
public CustomerPhone findDefaultCustomerPhone(Long customerId)
findDefaultCustomerPhone
in interface CustomerPhoneDao
public List<CustomerPhone> readAllCustomerPhonesByCustomerId(Long customerId)
readAllCustomerPhonesByCustomerId
in interface CustomerPhoneDao
public CustomerPhone create()
create
in interface CustomerPhoneDao
Copyright © 2013. All rights reserved.