@Service(value="blCustomerPaymentService") public class CustomerPaymentServiceImpl extends Object implements CustomerPaymentService
| Modifier and Type | Field and Description |
|---|---|
protected CustomerPaymentDao |
customerPaymentDao
Services
|
protected OrderCustomerService |
orderCustomerService |
| Constructor and Description |
|---|
CustomerPaymentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
CustomerPayment |
create() |
void |
deleteCustomerPaymentById(Long customerPaymentId) |
OrderCustomer |
deleteCustomerPaymentFromCustomer(OrderCustomer customer,
CustomerPayment payment) |
CustomerPayment |
findDefaultPaymentForCustomer(OrderCustomer customer) |
CustomerPayment |
readCustomerPaymentById(Long customerPaymentId) |
CustomerPayment |
readCustomerPaymentByToken(String token) |
List<CustomerPayment> |
readCustomerPaymentsByCustomerId(Long customerId) |
CustomerPayment |
saveCustomerPayment(CustomerPayment customerPayment) |
CustomerPayment |
setAsDefaultPayment(CustomerPayment payment) |
protected CustomerPaymentDao customerPaymentDao
protected OrderCustomerService orderCustomerService
@Transactional(value="blTransactionManager") public CustomerPayment saveCustomerPayment(CustomerPayment customerPayment)
saveCustomerPayment in interface CustomerPaymentServicepublic List<CustomerPayment> readCustomerPaymentsByCustomerId(Long customerId)
readCustomerPaymentsByCustomerId in interface CustomerPaymentServicepublic CustomerPayment readCustomerPaymentById(Long customerPaymentId)
readCustomerPaymentById in interface CustomerPaymentServicepublic CustomerPayment readCustomerPaymentByToken(String token)
readCustomerPaymentByToken in interface CustomerPaymentService@Transactional(value="blTransactionManager") public void deleteCustomerPaymentById(Long customerPaymentId)
deleteCustomerPaymentById in interface CustomerPaymentService@Transactional(value="blTransactionManager") public CustomerPayment create()
create in interface CustomerPaymentServicepublic CustomerPayment findDefaultPaymentForCustomer(OrderCustomer customer)
findDefaultPaymentForCustomer in interface CustomerPaymentService@Transactional(value="blTransactionManager") public CustomerPayment setAsDefaultPayment(CustomerPayment payment)
setAsDefaultPayment in interface CustomerPaymentService@Transactional(value="blTransactionManager") public OrderCustomer deleteCustomerPaymentFromCustomer(OrderCustomer customer, CustomerPayment payment)
deleteCustomerPaymentFromCustomer in interface CustomerPaymentServiceCopyright © 2017. All rights reserved.