@Service(value="blCustomerAddressService") public class CustomerAddressServiceImpl extends Object implements CustomerAddressService
| Modifier and Type | Field and Description |
|---|---|
protected CustomerAddressDao |
customerAddressDao |
protected CustomerDao |
customerDao |
| Constructor and Description |
|---|
CustomerAddressServiceImpl() |
| 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) |
List<CustomerAddress> |
readBatchAddresses(int start,
int pageSize) |
CustomerAddress |
readCustomerAddressById(Long customerAddressId) |
Long |
readNumberOfAddresses() |
CustomerAddress |
saveCustomerAddress(CustomerAddress customerAddress) |
protected CustomerAddressDao customerAddressDao
protected CustomerDao customerDao
@Transactional(value="blTransactionManager") public CustomerAddress saveCustomerAddress(CustomerAddress customerAddress)
saveCustomerAddress in interface CustomerAddressServicepublic List<CustomerAddress> readActiveCustomerAddressesByCustomerId(Long customerId)
readActiveCustomerAddressesByCustomerId in interface CustomerAddressServicepublic CustomerAddress readCustomerAddressById(Long customerAddressId)
readCustomerAddressById in interface CustomerAddressService@Transactional(value="blTransactionManager") public void makeCustomerAddressDefault(Long customerAddressId, Long customerId)
makeCustomerAddressDefault in interface CustomerAddressService@Transactional(value="blTransactionManager") public void deleteCustomerAddressById(Long customerAddressId)
deleteCustomerAddressById in interface CustomerAddressServicepublic CustomerAddress findDefaultCustomerAddress(Long customerId)
findDefaultCustomerAddress in interface CustomerAddressServicepublic CustomerAddress create()
create in interface CustomerAddressServicepublic List<CustomerAddress> readBatchAddresses(int start, int pageSize)
readBatchAddresses in interface CustomerAddressServicepublic Long readNumberOfAddresses()
readNumberOfAddresses in interface CustomerAddressServiceCopyright © 2022. All rights reserved.