Class OrderDetail
java.lang.Object
csce331.group13.project2.models.OrderDetail
Represents a row in the order_details table.
Each order detail represents a menu item within an order.
- Author:
- William Clymire
-
Constructor Summary
ConstructorsConstructorDescriptionOrderDetail(UUID orderId, UUID menuItemId, int lineNo, int parentLineNo, int quantity) Constructs an OrderDetail with all fields specified. -
Method Summary
Modifier and TypeMethodDescriptionintGets the line number.Gets the menu item ID.Gets the order ID.intGets the parent line number.intGets the quantity.
-
Constructor Details
-
OrderDetail
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
-
getMenuItemId
-
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.
-