@Repository(value="blCustomerPhoneDao") public class CustomerPhoneDaoImpl extends java.lang.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(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) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public java.util.List<CustomerPhone> readActiveCustomerPhonesByCustomerId(java.lang.Long customerId)
readActiveCustomerPhonesByCustomerId in interface CustomerPhoneDaopublic CustomerPhone save(CustomerPhone customerPhone)
save in interface CustomerPhoneDaopublic CustomerPhone readCustomerPhoneById(java.lang.Long customerPhoneId)
readCustomerPhoneById in interface CustomerPhoneDaopublic void makeCustomerPhoneDefault(java.lang.Long customerPhoneId,
java.lang.Long customerId)
makeCustomerPhoneDefault in interface CustomerPhoneDaopublic void deleteCustomerPhoneById(java.lang.Long customerPhoneId)
deleteCustomerPhoneById in interface CustomerPhoneDaopublic CustomerPhone findDefaultCustomerPhone(java.lang.Long customerId)
findDefaultCustomerPhone in interface CustomerPhoneDaopublic java.util.List<CustomerPhone> readAllCustomerPhonesByCustomerId(java.lang.Long customerId)
readAllCustomerPhonesByCustomerId in interface CustomerPhoneDaopublic CustomerPhone create()
create in interface CustomerPhoneDaoCopyright © 2018. All Rights Reserved.