@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 |
|---|---|
protected void |
clearDefaultAddressForCustomer(Long customerId) |
CustomerAddress |
create() |
void |
deleteCustomerAddressById(Long customerAddressId) |
CustomerAddress |
findDefaultCustomerAddress(Long customerId) |
void |
makeCustomerAddressDefault(Long customerAddressId,
Long customerId) |
List<CustomerAddress> |
readActiveCustomerAddressesByCustomerId(Long customerId) |
List<CustomerAddress> |
readBatchCustomerAddresses(int start,
int pageSize) |
CustomerAddress |
readCustomerAddressById(Long customerAddressId) |
CustomerAddress |
readCustomerAddressByIdAndCustomerId(Long customerAddressId,
Long customerId) |
Long |
readNumberOfAddresses() |
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 List<CustomerAddress> readBatchCustomerAddresses(int start, int pageSize)
readBatchCustomerAddresses in interface CustomerAddressDaopublic Long readNumberOfAddresses()
readNumberOfAddresses in interface CustomerAddressDaopublic CustomerAddress readCustomerAddressById(Long customerAddressId)
readCustomerAddressById in interface CustomerAddressDaopublic void makeCustomerAddressDefault(Long customerAddressId, Long customerId)
makeCustomerAddressDefault in interface CustomerAddressDaopublic CustomerAddress readCustomerAddressByIdAndCustomerId(Long customerAddressId, Long customerId)
readCustomerAddressByIdAndCustomerId in interface CustomerAddressDaoprotected void clearDefaultAddressForCustomer(Long customerId)
public void deleteCustomerAddressById(Long customerAddressId)
deleteCustomerAddressById in interface CustomerAddressDaopublic CustomerAddress findDefaultCustomerAddress(Long customerId)
findDefaultCustomerAddress in interface CustomerAddressDaoCopyright © 2021. All rights reserved.