org.jboss.tutorial.entity.bean
Class ShoppingCartBean

java.lang.Object
  extended by org.jboss.tutorial.entity.bean.ShoppingCartBean
All Implemented Interfaces:
java.io.Serializable, ShoppingCart

public class ShoppingCartBean
extends java.lang.Object
implements ShoppingCart, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ShoppingCartBean()
           
 
Method Summary
 void buy(java.lang.String product, int quantity, double price)
           
 void checkout()
           
 Order getOrder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCartBean

public ShoppingCartBean()
Method Detail

buy

public void buy(java.lang.String product,
                int quantity,
                double price)
Specified by:
buy in interface ShoppingCart

getOrder

public Order getOrder()
Specified by:
getOrder in interface ShoppingCart

checkout

public void checkout()
Specified by:
checkout in interface ShoppingCart