@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 CustomerPhoneDaopublic CustomerPhone save(CustomerPhone customerPhone)
save in interface CustomerPhoneDaopublic CustomerPhone readCustomerPhoneById(Long customerPhoneId)
readCustomerPhoneById in interface CustomerPhoneDaopublic void makeCustomerPhoneDefault(Long customerPhoneId, Long customerId)
makeCustomerPhoneDefault in interface CustomerPhoneDaopublic void deleteCustomerPhoneById(Long customerPhoneId)
deleteCustomerPhoneById in interface CustomerPhoneDaopublic CustomerPhone findDefaultCustomerPhone(Long customerId)
findDefaultCustomerPhone in interface CustomerPhoneDaopublic List<CustomerPhone> readAllCustomerPhonesByCustomerId(Long customerId)
readAllCustomerPhonesByCustomerId in interface CustomerPhoneDaopublic CustomerPhone create()
create in interface CustomerPhoneDaoCopyright © 2013. All rights reserved.