com.restfully.shop.services
Class CustomerResourceBean

java.lang.Object
  extended by com.restfully.shop.services.CustomerResourceBean

@Transactional
public class CustomerResourceBean
extends Object


Constructor Summary
CustomerResourceBean()
           
 
Method Summary
 Response createCustomer(Customer customer, UriInfo uriInfo)
           
static void domain2entity(CustomerEntity entity, Customer customer)
           
static Customer entity2domain(CustomerEntity entity)
           
 Customer getCustomer(int id)
           
 Customers getCustomers(int start, int size, String firstName, String lastName, UriInfo uriInfo)
           
 void setEntityManager(javax.persistence.EntityManager em)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerResourceBean

public CustomerResourceBean()
Method Detail

setEntityManager

public void setEntityManager(javax.persistence.EntityManager em)

createCustomer

public Response createCustomer(Customer customer,
                               UriInfo uriInfo)

domain2entity

public static void domain2entity(CustomerEntity entity,
                                 Customer customer)

entity2domain

public static Customer entity2domain(CustomerEntity entity)

getCustomers

public Customers getCustomers(int start,
                              int size,
                              String firstName,
                              String lastName,
                              UriInfo uriInfo)

getCustomer

public Customer getCustomer(int id)


Copyright © 2011. All Rights Reserved.