public class InventoryMgmtRMIEJB extends Object implements InventoryMgmtRemote
Modifier and Type | Field and Description |
---|---|
private InventoryMgmtEJB |
ejb |
private static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
InventoryMgmtRMIEJB() |
Modifier and Type | Method and Description |
---|---|
Product |
createProduct(Product product,
String category) |
boolean |
deleteCategory(int id) |
boolean |
deleteProduct(int id) |
Categories |
findCategoryByName(String name,
int offset,
int limit) |
Products |
findProductsByName(String name,
int offset,
int limit) |
Category |
getCategory(int id) |
Product |
getProduct(int id) |
Product |
updateProduct(Product product) |
private static final org.apache.commons.logging.Log log
@Inject private InventoryMgmtEJB ejb
public Categories findCategoryByName(String name, int offset, int limit)
findCategoryByName
in interface InventoryClient
public boolean deleteCategory(int id)
deleteCategory
in interface InventoryClient
public Products findProductsByName(String name, int offset, int limit)
findProductsByName
in interface InventoryClient
public boolean deleteProduct(int id)
deleteProduct
in interface InventoryClient
public Product createProduct(Product product, String category)
createProduct
in interface InventoryClient
public Product getProduct(int id)
getProduct
in interface InventoryClient
public Category getCategory(int id)
getCategory
in interface InventoryClient
public Product updateProduct(Product product)
updateProduct
in interface InventoryClient
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.