Class LineItem

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

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

    • LineItem

      public LineItem()
      Instantiates a new line item.
    • LineItem

      public LineItem(int lineNumber, CartItem cartItem)
      Instantiates a new line item.
      Parameters:
      lineNumber - the line number
      cartItem - the cart item
  • Method Details

    • getOrderId

      public int getOrderId()
      Gets the order id.
      Returns:
      the order id
    • setOrderId

      public void setOrderId(int orderId)
      Sets the order id.
      Parameters:
      orderId - the order id
    • getLineNumber

      public int getLineNumber()
      Gets the line number.
      Returns:
      the line number
    • setLineNumber

      public void setLineNumber(int lineNumber)
      Sets the line number.
      Parameters:
      lineNumber - the line number
    • getItemId

      public String getItemId()
      Gets the item id.
      Returns:
      the item id
    • setItemId

      public void setItemId(String itemId)
      Sets the item id.
      Parameters:
      itemId - the item id
    • getUnitPrice

      public BigDecimal getUnitPrice()
      Gets the unit price.
      Returns:
      the unit price
    • setUnitPrice

      public void setUnitPrice(BigDecimal unitprice)
      Sets the unit price.
      Parameters:
      unitprice - the unitprice
    • 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