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()
    • 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()
    • setOrderId

      public void setOrderId(int orderId)
    • getLineNumber

      public int getLineNumber()
    • setLineNumber

      public void setLineNumber(int lineNumber)
    • getItemId

      public String getItemId()
    • setItemId

      public void setItemId(String itemId)
    • getUnitPrice

      public BigDecimal getUnitPrice()
    • setUnitPrice

      public void setUnitPrice(BigDecimal unitprice)
    • getTotal

      public BigDecimal getTotal()
    • getItem

      public Item getItem()
    • setItem

      public void setItem(Item item)
    • getQuantity

      public int getQuantity()
    • setQuantity

      public void setQuantity(int quantity)