FileDocCategorySizeDatePackage
ShoppingCartBean.javaAPI DocJBoss 4.2.12267Fri Jul 13 20:55:02 BST 2007org.jboss.tutorial.extended.bean

ShoppingCartBean

public class ShoppingCartBean extends Object implements ShoppingCart
comment
author
Bill Burke

Fields Summary
EntityManager
em
StatelessLocal
stateless
private Customer
customer
Constructors Summary
Methods Summary
public voidcheckout()

   
public longcreateCustomer()

      customer = new Customer();
      customer.setName("William");
      em.persist(customer);
      return customer.getId();
   
public Customerfind(long id)

      return em.find(Customer.class, id);
   
public voidnever()

      customer.setName("Bob");
   
public voidupdate()

      customer.setName("Bill");
   
public voidupdate2()

      customer.setName("Billy");
   
public voidupdate3()

      stateless.update(customer);