@Repository(value="blCustomerAddressDao") public class CustomerAddressDaoImpl extends Object implements CustomerAddressDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
CustomerAddressDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
public List<CustomerAddress> readActiveCustomerAddressesByCustomerId(Long customerId)
readActiveCustomerAddressesByCustomerId in interface CustomerAddressDaopublic CustomerAddress save(CustomerAddress customerAddress)
save in interface CustomerAddressDaopublic CustomerAddress create()
create in interface CustomerAddressDaopublic CustomerAddress readCustomerAddressById(Long customerAddressId)
readCustomerAddressById in interface CustomerAddressDaopublic void makeCustomerAddressDefault(Long customerAddressId, Long customerId)
makeCustomerAddressDefault in interface CustomerAddressDaopublic void deleteCustomerAddressById(Long customerAddressId)
deleteCustomerAddressById in interface CustomerAddressDaopublic CustomerAddress findDefaultCustomerAddress(Long customerId)
findDefaultCustomerAddress in interface CustomerAddressDaoCopyright © 2013. All rights reserved.