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 InventoryMgmtEJB
ejb
private static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description InventoryMgmtRMIEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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:
findCategoryByName
in interfaceInventoryClient
-
deleteCategory
public boolean deleteCategory(int id)
- Specified by:
deleteCategory
in interfaceInventoryClient
-
findProductsByName
public Products findProductsByName(String name, int offset, int limit)
- Specified by:
findProductsByName
in interfaceInventoryClient
-
deleteProduct
public boolean deleteProduct(int id)
- Specified by:
deleteProduct
in interfaceInventoryClient
-
createProduct
public Product createProduct(Product product, String category)
- Specified by:
createProduct
in interfaceInventoryClient
-
getProduct
public Product getProduct(int id)
- Specified by:
getProduct
in interfaceInventoryClient
-
getCategory
public Category getCategory(int id)
- Specified by:
getCategory
in interfaceInventoryClient
-
updateProduct
public Product updateProduct(Product product)
- Specified by:
updateProduct
in interfaceInventoryClient
-
-