Package dataLoad

Class OrderLoader


  • public class OrderLoader
    extends AbstractRecordLoader<Order>

    DishLoader

    Class responsible for reading the data from an input file that contains information about orders.
    Since:
    2017-07-22
    Version:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderLoader()  
    • Method Summary

      Modifier and Type Method Description
      int constructObjectFromRow​(java.lang.String[] tokens, java.util.ArrayList<Order> orders)
      Adds a record in the input list given the tokens of a row.
      • Methods inherited from class java.lang.Object

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

      • OrderLoader

        public OrderLoader()
    • Method Detail

      • constructObjectFromRow

        public int constructObjectFromRow​(java.lang.String[] tokens,
                                          java.util.ArrayList<Order> orders)
        Adds a record in the input list given the tokens of a row.
        Specified by:
        constructObjectFromRow in class AbstractRecordLoader<Order>
        Parameters:
        tokens - : a list of fields from a row of the input file
        orders - : list which holds the information about the orders
        Returns:
        0