public class InventoryMgmtEJB extends Object
Modifier and Type | Field and Description |
---|---|
private InventoryDAO |
dao |
Constructor and Description |
---|
InventoryMgmtEJB() |
Modifier and Type | Method and Description |
---|---|
Product |
addProduct(Product product,
String categoryName) |
Category |
createOrGetCategory(String name) |
void |
deleteCategory(int id) |
void |
deleteProduct(Product product) |
Categories |
findCategoryByName(String name,
int offset,
int limit)
Returns a list of categories that match the name provided
|
Products |
findProductByName(String name,
int offset,
int limit) |
Category |
getCategory(int id) |
Product |
getProduct(int id) |
Product |
updateProduct(Product product) |
@Inject private InventoryDAO dao
public Categories findCategoryByName(String name, int offset, int limit)
name
- public Category getCategory(int id)
public void deleteCategory(int id)
public Product getProduct(int id)
public void deleteProduct(Product product)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.