@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 CustomerPaymentService
public List<CustomerPayment> readCustomerPaymentsByCustomerId(Long customerId)
readCustomerPaymentsByCustomerId
in interface CustomerPaymentService
public CustomerPayment readCustomerPaymentById(Long customerPaymentId)
readCustomerPaymentById
in interface CustomerPaymentService
public 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 CustomerPaymentService
public 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 CustomerPaymentService
Copyright © 2014. All rights reserved.