Package dataLoad

Class FullDataLoader

  • All Implemented Interfaces:
    IFullDataLoader

    public class FullDataLoader
    extends java.lang.Object
    implements IFullDataLoader

    FullDataLoader

    Class responsible for reading the data from all input files.
    Since:
    2017-07-22
    Version:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      FullDataLoader()  
      FullDataLoader​(java.lang.String empPath, java.lang.String dishPath, java.lang.String orderPath)  
    • Method Summary

      Modifier and Type Method Description
      void assignOrders​(java.util.ArrayList<Employee> personnel, java.util.ArrayList<Dish> menu, java.util.ArrayList<Order> orders)
      Creates the mapping between the three different entities (Employee, Dish, Order)
      int fullDataLoad​(java.util.ArrayList<Employee> personnel, java.util.ArrayList<Dish> menu, java.util.ArrayList<Order> orders)
      Loads the three different types of files and stores the data in the three different lists that receives as parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FullDataLoader

        public FullDataLoader()
      • FullDataLoader

        public FullDataLoader​(java.lang.String empPath,
                              java.lang.String dishPath,
                              java.lang.String orderPath)
    • Method Detail

      • assignOrders

        public void assignOrders​(java.util.ArrayList<Employee> personnel,
                                 java.util.ArrayList<Dish> menu,
                                 java.util.ArrayList<Order> orders)
        Creates the mapping between the three different entities (Employee, Dish, Order)
        Parameters:
        personnel - : list holding information about employees
        menu - : list holding information about dishes
        orders - : list holding information about orders
      • fullDataLoad

        public int fullDataLoad​(java.util.ArrayList<Employee> personnel,
                                java.util.ArrayList<Dish> menu,
                                java.util.ArrayList<Order> orders)
        Loads the three different types of files and stores the data in the three different lists that receives as parameters.
        Specified by:
        fullDataLoad in interface IFullDataLoader
        Parameters:
        personnel - : empty list holding information about employees
        menu - : empty list holding information about dishes
        orders - : empty list holding information about orders
        Returns:
        0