| java.lang.Object golfShop.business.cart.CartImpl
CartImpl | public CartImpl(CartItemQuery itemQuery)(Code) | | Constructor. Must pass in the query object so that later it
can convert ObjectIds to CartItems. Start off with an empty cart.
Parameters: itemQuery - A CartItemQuery object for finding CartItems. |
addItem | public void addItem(long ObjectId)(Code) | | |
addItem | public void addItem(long ObjectId, int quantity)(Code) | | |
canRedo | public boolean canRedo()(Code) | | |
canUndo | public boolean canUndo()(Code) | | |
containsItem | public boolean containsItem(long ObjectId)(Code) | | |
doneModifying | public void doneModifying()(Code) | | |
getQuantity | public int getQuantity(long ObjectId)(Code) | | |
getTotal | public double getTotal()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
removeItem | public void removeItem(long ObjectId)(Code) | | |
reset | public void reset()(Code) | | |
setQuantity | public void setQuantity(long ObjectId, int quantity)(Code) | | |
toString | public String toString()(Code) | | Generate information about the cart for debugging.
|
|
|