@Service(value="blCustomerPaymentService") public class CustomerPaymentServiceImpl extends java.lang.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(java.lang.Long customerPaymentId) |
Customer |
deleteCustomerPaymentFromCustomer(Customer customer,
CustomerPayment payment) |
CustomerPayment |
findDefaultPaymentForCustomer(Customer customer) |
CustomerPayment |
readCustomerPaymentById(java.lang.Long customerPaymentId) |
CustomerPayment |
readCustomerPaymentByToken(java.lang.String token) |
java.util.List<CustomerPayment> |
readCustomerPaymentsByCustomerId(java.lang.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 java.util.List<CustomerPayment> readCustomerPaymentsByCustomerId(java.lang.Long customerId)
readCustomerPaymentsByCustomerId in interface CustomerPaymentServicepublic CustomerPayment readCustomerPaymentById(java.lang.Long customerPaymentId)
readCustomerPaymentById in interface CustomerPaymentServicepublic CustomerPayment readCustomerPaymentByToken(java.lang.String token)
readCustomerPaymentByToken in interface CustomerPaymentService@Transactional(value="blTransactionManager") public void deleteCustomerPaymentById(java.lang.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 © 2018. All Rights Reserved.