예제 #1
0
 //  Set Object Reference for Personnel and PersonnelList
 public static void Ref_Personnel_PersonnelList(
     IDMap map, ArrayList<PersonnelList> PeLlist, ArrayList<Personnel> Pelist) {
   while (map.hasNext()) {
     Pair mapping = map.NextPair();
     if (mapping.notNull()) {
       Pelist.get(mapping.Second()).setPersonnelList(PeLlist.get(mapping.First()));
     }
   }
   map.Reset();
 }
예제 #2
0
 //  Set Object Reference for Itinerary and ItineraryItem
 public static void Ref_Itinerary_ItineraryItem(
     IDMap map, ArrayList<Itinerary> PLlist, ArrayList<ItineraryItem> PLIlist) {
   while (map.hasNext()) {
     Pair mapping = map.NextPair();
     if (mapping.notNull()) {
       PLIlist.get(mapping.Second()).setItinerary(PLlist.get(mapping.First()));
     }
   }
   map.Reset();
 }