package oracle.byop.maf.data.collections.readonly;

import java.util.ArrayList;

import java.util.Date;

import java.util.List;

import oracle.adfmf.java.beans.PropertyChangeListener;
import oracle.adfmf.java.beans.PropertyChangeSupport;

import oracle.byop.maf.data.entities.Inventory;
import oracle.byop.maf.data.entities.Warehouse;

/**
 *
 * Title:   Bring Your Own Project (BYOP): Hackathon
 * Schema:  ADF Summit
 * Type:    Service Object with hard-coded sample data
 *
 *
 * @author Frank Nimphius - August, 2014
 */
public class InventoriesRO {
    
    private ArrayList inventoryList = new ArrayList();


    public InventoriesRO() {
        super();
        inventoryList.add(_createNewInventory(new Integer(10011),new Integer(101),new Integer(650),new Integer(625),new Integer(1100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(10012),new Integer(101),new Integer(600),new Integer(560),new Integer(1000),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(10013),new Integer(101),new Integer(400),new Integer(400),new Integer(700),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(10021),new Integer(101),new Integer(500),new Integer(425),new Integer(740),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(10022),new Integer(101),new Integer(300),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(10023),new Integer(101),new Integer(400),new Integer(300),new Integer(525),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20106),new Integer(101),new Integer(993),new Integer(625),new Integer(1000),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(20108),new Integer(101),new Integer(700),new Integer(700),new Integer(1225),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(20201),new Integer(101),new Integer(802),new Integer(800),new Integer(1400),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(20510),new Integer(101),new Integer(1389),new Integer(850),new Integer(1400),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                     
        inventoryList.add(_createNewInventory(new Integer(20512),new Integer(101),new Integer(850),new Integer(850),new Integer(1450),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(30321),new Integer(101),new Integer(2000),new Integer(1500),new Integer(2500),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                    
        inventoryList.add(_createNewInventory(new Integer(30326),new Integer(101),new Integer(2100),new Integer(2000),new Integer(3500),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                    
        inventoryList.add(_createNewInventory(new Integer(30421),new Integer(101),new Integer(1822),new Integer(1800),new Integer(3150),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                    
        inventoryList.add(_createNewInventory(new Integer(30426),new Integer(101),new Integer(2250),new Integer(2000),new Integer(3500),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                    
        inventoryList.add(_createNewInventory(new Integer(30433),new Integer(101),new Integer(650),new Integer(600),new Integer(1050),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(32779),new Integer(101),new Integer(2120),new Integer(1250),new Integer(2200),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                    
        inventoryList.add(_createNewInventory(new Integer(32861),new Integer(101),new Integer(505),new Integer(500),new Integer(875),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(40421),new Integer(101),new Integer(578),new Integer(350),new Integer(600),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(40422),new Integer(101),new Integer(0),new Integer(350),new Integer(600),"Phenomenal sales...",null));                                                                                                                                                                                                                                                                                                                                                                                                                                      
        inventoryList.add(_createNewInventory(new Integer(41010),new Integer(101),new Integer(250),new Integer(250),new Integer(437),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41020),new Integer(101),new Integer(471),new Integer(450),new Integer(750),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41050),new Integer(101),new Integer(501),new Integer(450),new Integer(750),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41080),new Integer(101),new Integer(400),new Integer(400),new Integer(700),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41100),new Integer(101),new Integer(350),new Integer(350),new Integer(600),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50169),new Integer(101),new Integer(2530),new Integer(1500),new Integer(2600),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                    
        inventoryList.add(_createNewInventory(new Integer(50273),new Integer(113),new Integer(233),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50417),new Integer(113),new Integer(518),new Integer(500),new Integer(875),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50418),new Integer(113),new Integer(244),new Integer(100),new Integer(275),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50419),new Integer(113),new Integer(230),new Integer(120),new Integer(310),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50530),new Integer(113),new Integer(669),new Integer(400),new Integer(700),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50532),new Integer(113),new Integer(0),new Integer(100),new Integer(175),"Wait for Spring.",null));                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50536),new Integer(113),new Integer(173),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20106),new Integer(201),new Integer(220),new Integer(150),new Integer(260),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20108),new Integer(201),new Integer(166),new Integer(150),new Integer(260),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20201),new Integer(201),new Integer(320),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20510),new Integer(201),new Integer(175),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20512),new Integer(201),new Integer(162),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(30321),new Integer(201),new Integer(96),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(30326),new Integer(201),new Integer(147),new Integer(120),new Integer(210),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(30421),new Integer(201),new Integer(102),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(30426),new Integer(201),new Integer(200),new Integer(120),new Integer(210),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(30433),new Integer(201),new Integer(130),new Integer(130),new Integer(230),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(32779),new Integer(201),new Integer(180),new Integer(150),new Integer(260),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(32861),new Integer(201),new Integer(132),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(50169),new Integer(201),new Integer(225),new Integer(220),new Integer(385),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50273),new Integer(201),new Integer(75),new Integer(60),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50417),new Integer(201),new Integer(82),new Integer(60),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50418),new Integer(201),new Integer(98),new Integer(60),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50419),new Integer(201),new Integer(77),new Integer(60),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50530),new Integer(201),new Integer(62),new Integer(60),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50532),new Integer(201),new Integer(67),new Integer(60),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50536),new Integer(201),new Integer(97),new Integer(60),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(20510),new Integer(301),new Integer(69),new Integer(40),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(20512),new Integer(301),new Integer(28),new Integer(20),new Integer(50),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(30321),new Integer(301),new Integer(85),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(30421),new Integer(301),new Integer(102),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(30433),new Integer(301),new Integer(35),new Integer(20),new Integer(35),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(32779),new Integer(301),new Integer(102),new Integer(95),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(32861),new Integer(301),new Integer(57),new Integer(50),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(40421),new Integer(301),new Integer(70),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(40422),new Integer(301),new Integer(65),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(41010),new Integer(301),new Integer(59),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(41020),new Integer(301),new Integer(61),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(41050),new Integer(301),new Integer(49),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(41080),new Integer(301),new Integer(50),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(41100),new Integer(301),new Integer(42),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(20510),new Integer(401),new Integer(88),new Integer(50),new Integer(100),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(20512),new Integer(401),new Integer(75),new Integer(75),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(30321),new Integer(401),new Integer(102),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(30326),new Integer(401),new Integer(113),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(30421),new Integer(401),new Integer(85),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(30426),new Integer(401),new Integer(135),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(30433),new Integer(401),new Integer(0),new Integer(100),new Integer(175),"A defective shipment was sent to Hong Kong and needed to be returned. The soonest ACME can turn this around is early February.",null));                                                                                                                                                                                                                                                                                                                           
        inventoryList.add(_createNewInventory(new Integer(32779),new Integer(401),new Integer(135),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(32861),new Integer(401),new Integer(250),new Integer(150),new Integer(250),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(40421),new Integer(401),new Integer(47),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(40422),new Integer(401),new Integer(50),new Integer(40),new Integer(70),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(41010),new Integer(401),new Integer(80),new Integer(70),new Integer(220),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(41020),new Integer(401),new Integer(91),new Integer(70),new Integer(220),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(41050),new Integer(401),new Integer(169),new Integer(70),new Integer(220),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(41080),new Integer(401),new Integer(100),new Integer(70),new Integer(220),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                        
        inventoryList.add(_createNewInventory(new Integer(41100),new Integer(401),new Integer(75),new Integer(70),new Integer(220),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(50169),new Integer(401),new Integer(240),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50273),new Integer(401),new Integer(224),new Integer(150),new Integer(280),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50417),new Integer(401),new Integer(130),new Integer(120),new Integer(210),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50418),new Integer(401),new Integer(156),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50419),new Integer(401),new Integer(151),new Integer(150),new Integer(280),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50530),new Integer(401),new Integer(119),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50532),new Integer(401),new Integer(233),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(50536),new Integer(401),new Integer(138),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(10012),new Integer(501),new Integer(300),new Integer(300),new Integer(525),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(10013),new Integer(501),new Integer(314),new Integer(300),new Integer(525),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(10022),new Integer(501),new Integer(502),new Integer(300),new Integer(525),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(10023),new Integer(501),new Integer(500),new Integer(300),new Integer(525),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20106),new Integer(501),new Integer(150),new Integer(100),new Integer(175),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20108),new Integer(501),new Integer(222),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20201),new Integer(501),new Integer(275),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(20510),new Integer(501),new Integer(57),new Integer(50),new Integer(87),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(20512),new Integer(501),new Integer(62),new Integer(50),new Integer(87),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                          
        inventoryList.add(_createNewInventory(new Integer(30321),new Integer(501),new Integer(194),new Integer(150),new Integer(275),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(30326),new Integer(501),new Integer(277),new Integer(250),new Integer(440),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(30421),new Integer(501),new Integer(190),new Integer(150),new Integer(275),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(30426),new Integer(501),new Integer(423),new Integer(250),new Integer(450),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(30433),new Integer(501),new Integer(273),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(32779),new Integer(501),new Integer(280),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(32861),new Integer(501),new Integer(288),new Integer(200),new Integer(350),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(40421),new Integer(501),new Integer(97),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(40422),new Integer(501),new Integer(90),new Integer(80),new Integer(140),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                         
        inventoryList.add(_createNewInventory(new Integer(41010),new Integer(501),new Integer(151),new Integer(140),new Integer(245),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41020),new Integer(501),new Integer(224),new Integer(140),new Integer(245),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41050),new Integer(501),new Integer(157),new Integer(140),new Integer(245),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41080),new Integer(501),new Integer(159),new Integer(140),new Integer(245),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                                                       
        inventoryList.add(_createNewInventory(new Integer(41100),new Integer(501),new Integer(141),new Integer(140),new Integer(245),"",null));                                                                                                                                                                                                                                                                                                                                                                                                                          
    }
    
    

    private Inventory _createNewInventory(Integer productId, Integer warehouseId,Integer amountInStock, Integer reorderPoint, Integer maxInStock,
                                String outOfStockExplanation, Date restockDate) {
        return new Inventory(productId,warehouseId,amountInStock,reorderPoint,maxInStock,outOfStockExplanation,restockDate);
    }


    public void setInventory(ArrayList inventory) {}


    public Inventory[] getInventory() {
        return (Inventory[]) inventoryList.toArray(new Inventory[inventoryList.size()]);
    }
    
    
    public Inventory[] getInventoryByWarehouseId(Integer wareHouseId) {
        ArrayList wh = new ArrayList();
        
        for (int i = 0; i < inventoryList.size(); i++) {
            if(((Inventory)inventoryList.get(i)).getWarehouseId().compareTo(wareHouseId)==0){
               wh.add((Inventory) inventoryList.get(i));
            }
        }
        
        return (Inventory[]) wh.toArray(new Inventory[wh.size()]);
    }
    
    
    public Inventory[] getInventoryByProductId(Integer prodId) {
        ArrayList inv = new ArrayList();
        
        for (int i = 0; i < inventoryList.size(); i++) {
            if(((Inventory)inventoryList.get(i)).getProductId().compareTo(prodId) == 0){
               inv.add((Inventory) inventoryList.get(i));
            }
        }
        
        return (Inventory[]) inv.toArray(new Inventory[inv.size()]);
    }
    

}
