soa.sca.samples.candystore
Class ShoppingCartImpl

java.lang.Object
  extended by soa.sca.samples.candystore.ShoppingCartImpl
All Implemented Interfaces:
Cart, Total

public class ShoppingCartImpl
extends java.lang.Object
implements Cart, Total


Constructor Summary
ShoppingCartImpl()
           
 
Method Summary
 void delete(java.lang.String key)
           
 Item get(java.lang.String key)
           
 java.util.List<Entry<java.lang.String,Item>> getAll()
           
 java.lang.String getTotal()
           
 void init()
           
 java.lang.String post(java.lang.String key, Item item)
           
 void put(java.lang.String key, Item item)
           
 java.util.List<Entry<java.lang.String,Item>> query(java.lang.String queryString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCartImpl

public ShoppingCartImpl()
Method Detail

init

public void init()

getAll

public java.util.List<Entry<java.lang.String,Item>> getAll()
Specified by:
getAll in interface Cart

get

public Item get(java.lang.String key)
         throws NotFoundException
Specified by:
get in interface Cart
Throws:
NotFoundException

post

public java.lang.String post(java.lang.String key,
                             Item item)
Specified by:
post in interface Cart

put

public void put(java.lang.String key,
                Item item)
         throws NotFoundException
Specified by:
put in interface Cart
Throws:
NotFoundException

delete

public void delete(java.lang.String key)
            throws NotFoundException
Specified by:
delete in interface Cart
Throws:
NotFoundException

query

public java.util.List<Entry<java.lang.String,Item>> query(java.lang.String queryString)
Specified by:
query in interface Cart

getTotal

public java.lang.String getTotal()
Specified by:
getTotal in interface Total