Package dataLoad
Class FullDataLoader
- java.lang.Object
-
- dataLoad.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.
-
-
-
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 employeesmenu
- : list holding information about dishesorders
- : 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 interfaceIFullDataLoader
- Parameters:
personnel
- : empty list holding information about employeesmenu
- : empty list holding information about dishesorders
- : empty list holding information about orders- Returns:
- 0
-
-