org.jboss.errai.samples.restdemo.server
Class CustomerServiceImpl

java.lang.Object
  extended by 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

Constructor Summary
CustomerServiceImpl()
           
 
Method Summary
 long createCustomer(Customer customer)
           
 void deleteCustomer(long id)
           
 List<Customer> listAllCustomers()
           
 Customer retrieveCustomerById(long id)
           
 Customer updateCustomer(long id, Customer customer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerServiceImpl

public CustomerServiceImpl()
Method Detail

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.