Class InventoryMgmtEJB


  • public class InventoryMgmtEJB
    extends Object
    This class implements the core transactional business logic for the inventory management. It is implemented as a no interface @Stateless session bean and has JAX-RS and RMI facades that deal with technology- specific communications with remote clients.
    • Constructor Detail

      • InventoryMgmtEJB

        public InventoryMgmtEJB()
    • Method Detail

      • findCategoryByName

        public Categories findCategoryByName​(String name,
                                             int offset,
                                             int limit)
        Returns a list of categories that match the name provided
        Parameters:
        name -
        Returns:
      • createOrGetCategory

        public Category createOrGetCategory​(String name)
      • getCategory

        public Category getCategory​(int id)
      • deleteCategory

        public void deleteCategory​(int id)
      • findProductByName

        public Products findProductByName​(String name,
                                          int offset,
                                          int limit)
      • getProduct

        public Product getProduct​(int id)
      • deleteProduct

        public void deleteProduct​(Product product)