Interface InventoryDAO
-
- All Known Implementing Classes:
InventoryDAOImpl
public interface InventoryDAODefines the interface for the CRUD inventory methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProduct(Product p)voidcreateCategory(Category category)voiddeleteCategory(Category category)voiddeleteProduct(Product p)voiddetachCategory(Category category)List<Category>findCategoryByName(String criteria, int offset, int limit)List<Product>findProductsByName(String criteria, int offset, int limit)CategorygetCategory(int id)ProductgetProduct(int id)ProductupdateProduct(Product product)
-
-
-
Method Detail
-
createCategory
void createCategory(Category category)
-
getCategory
Category getCategory(int id)
-
deleteCategory
void deleteCategory(Category category)
-
detachCategory
void detachCategory(Category category)
-
addProduct
void addProduct(Product p)
-
getProduct
Product getProduct(int id)
-
deleteProduct
void deleteProduct(Product p)
-
-