Class InventoryMgmtRMIEJB
- java.lang.Object
-
- ejava.examples.ejbwar.inventory.rmi.InventoryMgmtRMIEJB
-
- All Implemented Interfaces:
InventoryClient,InventoryMgmtRemote
public class InventoryMgmtRMIEJB extends Object implements InventoryMgmtRemote
This EJB acts as a remote facade for the InventoryEJB business logic.
-
-
Field Summary
Fields Modifier and Type Field Description private InventoryMgmtEJBejbprivate static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description InventoryMgmtRMIEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductcreateProduct(Product product, String category)booleandeleteCategory(int id)booleandeleteProduct(int id)CategoriesfindCategoryByName(String name, int offset, int limit)ProductsfindProductsByName(String name, int offset, int limit)CategorygetCategory(int id)ProductgetProduct(int id)ProductupdateProduct(Product product)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
ejb
@Inject private InventoryMgmtEJB ejb
-
-
Method Detail
-
findCategoryByName
public Categories findCategoryByName(String name, int offset, int limit)
- Specified by:
findCategoryByNamein interfaceInventoryClient
-
deleteCategory
public boolean deleteCategory(int id)
- Specified by:
deleteCategoryin interfaceInventoryClient
-
findProductsByName
public Products findProductsByName(String name, int offset, int limit)
- Specified by:
findProductsByNamein interfaceInventoryClient
-
deleteProduct
public boolean deleteProduct(int id)
- Specified by:
deleteProductin interfaceInventoryClient
-
createProduct
public Product createProduct(Product product, String category)
- Specified by:
createProductin interfaceInventoryClient
-
getProduct
public Product getProduct(int id)
- Specified by:
getProductin interfaceInventoryClient
-
getCategory
public Category getCategory(int id)
- Specified by:
getCategoryin interfaceInventoryClient
-
updateProduct
public Product updateProduct(Product product)
- Specified by:
updateProductin interfaceInventoryClient
-
-