@Service(value="blCustomerPaymentService") public class CustomerPaymentServiceImpl extends Object implements CustomerPaymentService
| Modifier and Type | Field and Description |
|---|---|
protected CustomerPaymentDao |
customerPaymentDao
Services
|
protected CustomerService |
customerService |
| Constructor and Description |
|---|
CustomerPaymentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
CustomerPayment |
create() |
void |
deleteCustomerPaymentById(Long customerPaymentId) |
Customer |
deleteCustomerPaymentFromCustomer(Customer customer,
CustomerPayment payment) |
CustomerPayment |
findDefaultPaymentForCustomer(Customer 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 CustomerService customerService
@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(Customer customer)
findDefaultPaymentForCustomer in interface CustomerPaymentService@Transactional(value="blTransactionManager") public CustomerPayment setAsDefaultPayment(CustomerPayment payment)
setAsDefaultPayment in interface CustomerPaymentService@Transactional(value="blTransactionManager") public Customer deleteCustomerPaymentFromCustomer(Customer customer, CustomerPayment payment)
deleteCustomerPaymentFromCustomer in interface CustomerPaymentServiceCopyright © 2014. All rights reserved.