Examples of saveEntity()


Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

        a.setId(gtfsAgencyId);
        a.setName(agency.name);
        a.setUrl(agency.url);
        a.setTimezone(agency.timezone);
       
        store.saveEntity(a);
           
        List<ServiceCalendar> calendars = ServiceCalendar.find("agency = ?", agency).fetch();
       
        for(ServiceCalendar calendar : calendars)
        {
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

          c.setThursday(calendar.thursday? 1 : 0);
          c.setFriday(calendar.friday? 1 : 0);
          c.setSaturday(calendar.saturday? 1 : 0);
          c.setSunday(calendar.sunday? 1 : 0);
       
          store.saveEntity(c);
         
          List<ServiceCalendarDate> calendarDates = ServiceCalendarDate.find("calendar = ?", calendar).fetch();
         
          for(ServiceCalendarDate calendarDate : calendarDates)
          {
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

           
            cDate.setDate(new ServiceDate(calendarDate.date));
           
            cDate.setExceptionType(calendarDate.exceptionType == ServiceCalendarDateType.ADDED? 1 : 0);
           
            store.saveEntity(cDate);
          }
         
          List<Trip> trips = Trip.find("serviceCalendar = ?", calendar).fetch();
         
          for(Trip trip : trips)
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

              r.setLongName(route.routeLongName);
              r.setShortName(route.routeShortName);
              r.setType(Route.mapGtfsRouteType(route.routeType));
              r.setUrl(route.routeUrl);
             
              store.saveEntity(r);
             
              routeList.put(route.id, r);
            }
           
            if(trip.pattern.shape != null && !shapeList.containsKey(trip.pattern.shape.id))
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

                coord.setLat(coordinate.y);
                coord.setSequence(sequence);
               
                sequence++;
               
                store.saveEntity(coord);
              }
             
              shapeList.put(shape.id, shapeId);
            }
           
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

            else
              Logger.error("trip " + trip.tripHeadsign + " is missing shape");
           
            t.setBlockId(trip.blockId);
           
            store.saveEntity(t);
           
           
           
           
            if(trip.useFrequency != null && trip.useFrequency && trip.headway > 0)
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

             
              f.setStartTime(trip.startTime);
              f.setEndTime(trip.endTime);
              f.setHeadwaySecs(trip.headway);
             
              store.saveEntity(f);
             
             
             
              Integer cumulativeTime = 0;
             
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

                  else if(stop.wheelchairBoarding != null && stop.wheelchairBoarding.equals(AttributeAvailabilityType.UNAVAILABLE))
                    s.setWheelchairBoarding(2);
                  else
                    s.setWheelchairBoarding(0);
                 
                  store.saveEntity(s);
                                 
                  stopList.put(stop.id, s);
                }
               
                org.onebusaway.gtfs.model.StopTime st = new org.onebusaway.gtfs.model.StopTime();
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

                st.setTrip(t);
                st.setStop(stopList.get(stopTime.stop.id));
                st.setStopSequence(stopTime.stopSequence);
         
                     
                store.saveEntity(st);
              }

            }
            else
            {
View Full Code Here

Examples of org.onebusaway.gtfs.impl.GtfsDaoImpl.saveEntity()

                  else if(stop.wheelchairBoarding != null && stop.wheelchairBoarding.equals(AttributeAvailabilityType.UNAVAILABLE))
                    s.setWheelchairBoarding(2);
                  else
                    s.setWheelchairBoarding(0);
                 
                  store.saveEntity(s);
                                 
                  stopList.put(stop.id, s);
                }
               
                org.onebusaway.gtfs.model.StopTime st = new org.onebusaway.gtfs.model.StopTime();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.