Class InventoryDAO
java.lang.Object
app.dao.InventoryDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(InventoryItem item) voiddeductIngredients(Connection connection, int itemId, int quantityOrdered) voiddeductModIngredients(Connection conn, int modId, int quantityOrdered) getTopInventoryUsage(int limit, LocalDate startDate, LocalDate endDate) voidrestockItem(int inventoryId, BigDecimal amount) voidupdateItem(InventoryItem item)
-
Constructor Details
-
InventoryDAO
public InventoryDAO()
-
-
Method Details
-
getAllInventoryItems
- Throws:
SQLException
-
getTopInventoryUsage
public Map<String, BigDecimal> getTopInventoryUsage(int limit, LocalDate startDate, LocalDate endDate) throws SQLException - Throws:
SQLException
-
restockItem
- Throws:
SQLException
-
addItem
- Throws:
SQLException
-
updateItem
- Throws:
SQLException
-
deductIngredients
public void deductIngredients(Connection connection, int itemId, int quantityOrdered) throws SQLException - Throws:
SQLException
-
deductModIngredients
public void deductModIngredients(Connection conn, int modId, int quantityOrdered) throws SQLException - Throws:
SQLException
-