Class CartItem

java.lang.Object
org.mybatis.jpetstore.domain.CartItem
All Implemented Interfaces:
Serializable

public class CartItem extends Object implements Serializable
The Class CartItem.
Author:
Eduardo Macarron
See Also:
  • Constructor Details

    • CartItem

      public CartItem()
  • Method Details

    • isInStock

      public boolean isInStock()
      Checks if is in stock.
      Returns:
      true, if successful
    • setInStock

      public void setInStock(boolean inStock)
      Sets the in stock.
      Parameters:
      inStock - the in stock
    • getTotal

      public BigDecimal getTotal()
      Gets the total.
      Returns:
      the total
    • getItem

      public Item getItem()
      Gets the item.
      Returns:
      the item
    • setItem

      public void setItem(Item item)
      Sets the item.
      Parameters:
      item - the item
    • getQuantity

      public int getQuantity()
      Gets the quantity.
      Returns:
      the quantity
    • setQuantity

      public void setQuantity(int quantity)
      Sets the quantity.
      Parameters:
      quantity - the quantity
    • incrementQuantity

      public void incrementQuantity()
      Increment quantity.