| |
|
| java.lang.Object olstore.session.ShoppingCartBean
ShoppingCartBean | abstract public class ShoppingCartBean implements SessionBean(Code) | | |
DTOsToShoppingCart | public void DTOsToShoppingCart(ArrayList cartEntries)(Code) | | Takes updated information from the form and transfers to the Shopping Cart.
Parameters: cartEntries - |
contains | public boolean contains(Integer itemPK)(Code) | | Returns whether or not hte item is in the shopping cart
Parameters: itemPK - whether or not the item is in the shopping cart |
createOrders | public void createOrders()(Code) | | Crate orders from the items in the cart
|
ejbActivate | public void ejbActivate()(Code) | | |
ejbCreate | public void ejbCreate(olstore.entity.UserLocal user)(Code) | | |
ejbPassivate | public void ejbPassivate()(Code) | | |
ejbRemove | public void ejbRemove()(Code) | | |
getItemsInCart | public Collection getItemsInCart()(Code) | | Returns the items in the cart
the items in the cart |
getQuantity | public Integer getQuantity(Integer itemPK)(Code) | | Parameters: itemPK - quantity of those items in the cart |
getTotalCost | public BigDecimal getTotalCost()(Code) | | Returns the total cost of items in the cart
total cost of items in the cart |
getUser | public olstore.entity.UserLocal getUser()(Code) | | User |
listNumOfItems | public Integer listNumOfItems()(Code) | | Returns the total number of items in the cart
total number of items in the cart |
removeItemFromCart | public void removeItemFromCart(Integer itemPK)(Code) | | Remove one item from the cart
Parameters: itemPK - |
setSessionContext | public void setSessionContext(javax.ejb.SessionContext cntx)(Code) | | |
updateQuantity | public void updateQuantity(Integer itemPK, Integer quantity)(Code) | | Update the quantity of an item in the cart
Parameters: itemPK - Parameters: quantity - |
|
|
|