org.jboss.errai.samples.restdemo.server
Class CustomerServiceImpl
java.lang.Object
org.jboss.errai.samples.restdemo.server.CustomerServiceImpl
- All Implemented Interfaces:
- CustomerService
public class CustomerServiceImpl
- extends Object
- implements CustomerService
Simple mock based service implementation.
- Author:
- Christian Sadilek
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerServiceImpl
public CustomerServiceImpl()
createCustomer
public long createCustomer(Customer customer)
- Specified by:
createCustomer in interface CustomerService
updateCustomer
public Customer updateCustomer(long id,
Customer customer)
- Specified by:
updateCustomer in interface CustomerService
deleteCustomer
public void deleteCustomer(long id)
- Specified by:
deleteCustomer in interface CustomerService
retrieveCustomerById
public Customer retrieveCustomerById(long id)
- Specified by:
retrieveCustomerById in interface CustomerService
listAllCustomers
public List<Customer> listAllCustomers()
- Specified by:
listAllCustomers in interface CustomerService
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.