Class OrderDetail

java.lang.Object
csce331.group13.project2.models.OrderDetail

public class OrderDetail extends Object
Represents a row in the order_details table. Each order detail represents a menu item within an order.
Author:
William Clymire
  • Constructor Details

    • OrderDetail

      public OrderDetail(UUID orderId, UUID menuItemId, int lineNo, int parentLineNo, int quantity)
      Constructs an OrderDetail with all fields specified.
      Parameters:
      orderId - The UUID of the order this detail belongs to.
      menuItemId - The UUID of the menu item.
      lineNo - The line number of this item within the order.
      parentLineNo - The parent line number (for items that are part of a combo).
      quantity - The quantity of this menu item.
  • Method Details

    • getOrderId

      public UUID getOrderId()
      Gets the order ID.
      Returns:
      The UUID of the order.
    • getMenuItemId

      public UUID getMenuItemId()
      Gets the menu item ID.
      Returns:
      The UUID of the menu item.
    • getLineNo

      public int getLineNo()
      Gets the line number.
      Returns:
      The line number within the order.
    • getParentLineNo

      public int getParentLineNo()
      Gets the parent line number.
      Returns:
      The parent line number (for combo items).
    • getQuantity

      public int getQuantity()
      Gets the quantity.
      Returns:
      The quantity of this menu item.