@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 CustomerAddressDao
public CustomerAddress save(CustomerAddress customerAddress)
save
in interface CustomerAddressDao
public CustomerAddress create()
create
in interface CustomerAddressDao
public CustomerAddress readCustomerAddressById(Long customerAddressId)
readCustomerAddressById
in interface CustomerAddressDao
public void makeCustomerAddressDefault(Long customerAddressId, Long customerId)
makeCustomerAddressDefault
in interface CustomerAddressDao
public void deleteCustomerAddressById(Long customerAddressId)
deleteCustomerAddressById
in interface CustomerAddressDao
public CustomerAddress findDefaultCustomerAddress(Long customerId)
findDefaultCustomerAddress
in interface CustomerAddressDao
Copyright © 2013. All rights reserved.