Index

A C D E G H I L M N O P Q R S T U V 
All Classes and Interfaces|All Packages

A

access - Variable in class team75.model.DB.Employee
 
addEmployee(int, String, String, int, String, String) - Static method in class team75.model.DB
Adds a new employee to the database.
addInventoryItem(int, String, double, String) - Static method in class team75.model.DB
Adds a new inventory item.
addMenuIngredientMapping(int, int, double) - Static method in class team75.model.DB
Adds a single ingredient mapping to a menu item's recipe.
addMenuItem(String, String, BigDecimal, String) - Static method in class team75.model.DB
Adds a new menu item with an auto-generated ID.
addMenuItemWithIngredients(String, String, BigDecimal, String, List) - Static method in class team75.model.DB
Adds a new seasonal (or regular) menu item together with its full ingredient recipe in a single transaction.
addOns - Variable in class team75.model.DB.OrderItem
 
age - Variable in class team75.model.DB.Employee
 
amountUsed - Variable in class team75.model.DB.ProductUsageEntry
 

C

CashierController - Class in team75.controller
 
CashierController() - Constructor for class team75.controller.CashierController
 
category - Variable in class team75.model.DB.MenuItem
 
clockIn(int) - Static method in class team75.model.DB
Clocks an employee in, setting timein to now and clearing timeout.
clockOut(int) - Static method in class team75.model.DB
Clocks an employee out by setting timeout to now.
connect() - Static method in class team75.model.DB
Opens a new connection to the PostgreSQL database.

D

DB - Class in team75.model
Database access layer for the restaurant POS system.
DB() - Constructor for class team75.model.DB
 
DB.Employee - Class in team75.model
Represents an employee (cashier or manager).
DB.EmployeeCheckin - Class in team75.model
Represents an employee clock-in/clock-out record.
DB.EmployeeSalesEntry - Class in team75.model
Per-employee sales performance data.
DB.HourlySales - Class in team75.model
Sales data for a single hour.
DB.IngredientRecipe - Class in team75.model
One ingredient entry in a menu item's recipe, mapping an inventory ingredient to the quantity consumed per order of that menu item.
DB.InventoryItem - Class in team75.model
Represents an ingredient in inventory.
DB.MenuItem - Class in team75.model
Represents a menu item (drink, food, or add-on).
DB.Order - Class in team75.model
Represents a completed order from order history.
DB.OrderItem - Class in team75.model
Represents one line-item when a cashier submits a new order.
DB.ProductSalesEntry - Class in team75.model
Aggregated sales count for a single menu item.
DB.ProductUsageEntry - Class in team75.model
Aggregated ingredient usage for a time window.
DB.SalesSummary - Class in team75.model
Summary of sales data including hourly breakdown.
deleteEmployee(int) - Static method in class team75.model.DB
Deletes an employee and their check-in records in a transaction.
deleteInventoryItem(int) - Static method in class team75.model.DB
Deletes an inventory item and its menu-ingredient mappings in a transaction.
deleteMenuItem(int) - Static method in class team75.model.DB
Deletes a menu item and its ingredient mappings in a transaction.
description - Variable in class team75.model.DB.MenuItem
 

E

Employee(int, String, String, int, String, String) - Constructor for class team75.model.DB.Employee
 
EmployeeCheckin(int, Timestamp, Timestamp) - Constructor for class team75.model.DB.EmployeeCheckin
 
employeeId - Variable in class team75.model.DB.Employee
 
employeeId - Variable in class team75.model.DB.EmployeeCheckin
 
employeeId - Variable in class team75.model.DB.EmployeeSalesEntry
 
employeeId - Variable in class team75.model.DB.Order
 
employeeName - Variable in class team75.model.DB.EmployeeSalesEntry
 
EmployeeSalesEntry(int, String, int, BigDecimal) - Constructor for class team75.model.DB.EmployeeSalesEntry
 

G

generate(DB.SalesSummary, Timestamp, Timestamp) - Method in class team75.model.SalesReportGenerator
Generates the report and returns the raw PDF bytes, ready to be written to a file or streamed as an HTTP response.
getEmployeeCheckins() - Static method in class team75.model.DB
Retrieves all employee check-in/check-out records.
getEmployees() - Static method in class team75.model.DB
Retrieves all employees ordered by ID.
getEmployeeSalesReport(Timestamp, Timestamp) - Static method in class team75.model.DB
Per-employee sales performance in a time window: order count and total revenue for each employee who took orders.
getInventory() - Static method in class team75.model.DB
Retrieves all inventory items ordered by ID.
getMenu() - Static method in class team75.model.DB
Retrieves all menu items ordered by ID.
getMenuByCategory(String) - Static method in class team75.model.DB
Retrieves menu items filtered by category.
getOrders(Timestamp, Timestamp) - Static method in class team75.model.DB
Retrieves orders placed within a time window.
getPrice(String) - Static method in class team75.model.DB
Looks up the price of a menu item by name (case-insensitive).
getProductSalesReport(Timestamp, Timestamp) - Static method in class team75.model.DB
Counts how many times each menu item was sold in a time window by parsing the JSONB orderdetails column.
getProductUsageChart(Timestamp, Timestamp) - Static method in class team75.model.DB
Calculates total ingredient consumption in a time window by joining items sold (from JSONB) with their recipes in menuingredientsmap.
getSalesReport(Timestamp, Timestamp) - Static method in class team75.model.DB
Overall sales summary for a time window: total orders, total revenue, and an hour-by-hour breakdown.
getXReport() - Static method in class team75.model.DB
X-Report: hourly sales breakdown for the current day of operation.
getZReport() - Static method in class team75.model.DB
Z-Report: end-of-day report that totals all sales and resets counters for the next business day.

H

hasZReportBeenRunToday() - Static method in class team75.model.DB
Checks whether the Z-Report has already been generated for today.
hour - Variable in class team75.model.DB.HourlySales
 
hourlyBreakdown - Variable in class team75.model.DB.SalesSummary
 
HourlySales(int, int, BigDecimal) - Constructor for class team75.model.DB.HourlySales
 

I

ingredientId - Variable in class team75.model.DB.IngredientRecipe
 
ingredientId - Variable in class team75.model.DB.InventoryItem
 
ingredientId - Variable in class team75.model.DB.ProductUsageEntry
 
ingredientName - Variable in class team75.model.DB.InventoryItem
 
ingredientName - Variable in class team75.model.DB.ProductUsageEntry
 
IngredientRecipe(int, double) - Constructor for class team75.model.DB.IngredientRecipe
 
initEmployee(DB.Employee) - Method in class team75.controller.CashierController
 
initialize() - Method in class team75.controller.CashierController
 
initialize() - Method in class team75.controller.ManagerController
 
initialize() - Method in class team75.controller.StatsController
 
InventoryItem(int, String, double, String) - Constructor for class team75.model.DB.InventoryItem
 
itemId - Variable in class team75.model.DB.MenuItem
 
itemName - Variable in class team75.model.DB.MenuItem
 
itemName - Variable in class team75.model.DB.OrderItem
 
itemName - Variable in class team75.model.DB.ProductSalesEntry
 

L

LoginController - Class in team75.controller
 
LoginController() - Constructor for class team75.controller.LoginController
 

M

main(String[]) - Static method in class team75.Main
 
main(String[]) - Static method in class team75.model.DB
Connects to the DB and prints menu and employees.
Main - Class in team75
 
Main() - Constructor for class team75.Main
 
ManagerController - Class in team75.controller
 
ManagerController() - Constructor for class team75.controller.ManagerController
 
MenuItem(int, String, String, BigDecimal, String) - Constructor for class team75.model.DB.MenuItem
 

N

name - Variable in class team75.model.DB.Employee
 

O

Order(UUID, Timestamp, String, BigDecimal, int) - Constructor for class team75.model.DB.Order
 
orderCount - Variable in class team75.model.DB.HourlySales
 
orderDetails - Variable in class team75.model.DB.Order
 
orderId - Variable in class team75.model.DB.Order
 
OrderItem(String, BigDecimal, List) - Constructor for class team75.model.DB.OrderItem
 

P

password - Variable in class team75.model.DB.Employee
 
phone - Variable in class team75.model.DB.Employee
 
price - Variable in class team75.model.DB.MenuItem
 
price - Variable in class team75.model.DB.Order
 
price - Variable in class team75.model.DB.OrderItem
 
ProductSalesEntry(String, int) - Constructor for class team75.model.DB.ProductSalesEntry
 
ProductUsageEntry(int, String, double, String) - Constructor for class team75.model.DB.ProductUsageEntry
 

Q

quantity - Variable in class team75.model.DB.IngredientRecipe
 
quantity - Variable in class team75.model.DB.InventoryItem
 
quantitySold - Variable in class team75.model.DB.ProductSalesEntry
 

R

revenue - Variable in class team75.model.DB.HourlySales
 

S

SalesReportGenerator - Class in team75.model
Generates a polished PDF sales summary report.
SalesReportGenerator() - Constructor for class team75.model.SalesReportGenerator
 
SalesReportViewer - Class in team75.model
 
SalesReportViewer() - Constructor for class team75.model.SalesReportViewer
 
SalesSummary(int, BigDecimal, List) - Constructor for class team75.model.DB.SalesSummary
 
start(Stage) - Method in class team75.Main
 
StatsController - Class in team75.controller
 
StatsController() - Constructor for class team75.controller.StatsController
 
submitOrder(int, List, BigDecimal) - Static method in class team75.model.DB
Inserts a new order into orderhistory and decrements inventory for every ingredient used by the ordered items and their add-ons.

T

team75 - package team75
 
team75.controller - package team75.controller
 
team75.model - package team75.model
 
time - Variable in class team75.model.DB.Order
 
timeIn - Variable in class team75.model.DB.EmployeeCheckin
 
timeOut - Variable in class team75.model.DB.EmployeeCheckin
 
toString() - Method in class team75.model.DB.Employee
 
toString() - Method in class team75.model.DB.EmployeeCheckin
 
toString() - Method in class team75.model.DB.EmployeeSalesEntry
 
toString() - Method in class team75.model.DB.HourlySales
 
toString() - Method in class team75.model.DB.IngredientRecipe
 
toString() - Method in class team75.model.DB.InventoryItem
 
toString() - Method in class team75.model.DB.MenuItem
 
toString() - Method in class team75.model.DB.Order
 
toString() - Method in class team75.model.DB.ProductSalesEntry
 
toString() - Method in class team75.model.DB.ProductUsageEntry
 
toString() - Method in class team75.model.DB.SalesSummary
 
totalOrders - Variable in class team75.model.DB.EmployeeSalesEntry
 
totalOrders - Variable in class team75.model.DB.SalesSummary
 
totalRevenue - Variable in class team75.model.DB.EmployeeSalesEntry
 
totalRevenue - Variable in class team75.model.DB.SalesSummary
 

U

units - Variable in class team75.model.DB.InventoryItem
 
units - Variable in class team75.model.DB.ProductUsageEntry
 
updateEmployee(int, String, String, int, String) - Static method in class team75.model.DB
Updates an employee's name, access level, age, and phone.
updateInventoryItem(int, String, double, String) - Static method in class team75.model.DB
Updates an inventory item's name, quantity, and units.
updateInventoryQuantity(int, double) - Static method in class team75.model.DB
Updates only the quantity of an inventory item.
updateMenuItem(int, String, String, BigDecimal, String) - Static method in class team75.model.DB
Updates an existing menu item's fields.
updateMenuPrice(int, BigDecimal) - Static method in class team75.model.DB
Updates only the price of a menu item.

V

viewPdf(byte[]) - Static method in class team75.model.SalesReportViewer
Renders every page of a PDF side by side in a new Stage.
A C D E G H I L M N O P Q R S T U V 
All Classes and Interfaces|All Packages