KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xpetstore > services > cart > ejb > Cart


1 package xpetstore.services.cart.ejb;
2
3 import java.util.Collection JavaDoc;
4 import java.util.Map JavaDoc;
5
6 import javax.persistence.EntityManager;
7 import javax.persistence.PersistenceContext;
8
9 public interface Cart
10 {
11     void addItem( String JavaDoc itemId );
12    
13     void addItem( String JavaDoc itemId, int qty );
14    
15     void removeItem( String JavaDoc itemId );
16  
17     void updateItems( String JavaDoc itemId[], int newQty[] );
18
19     int getCount( );
20    
21     double getTotal( );
22    
23     void empty( );
24
25     Map JavaDoc getDetails( );
26  
27     Collection JavaDoc getCartItems( );
28     
29     void remove();
30 }
31
Popular Tags