org.onebusaway.gtfs.services
Interface GtfsRelationalDao

All Superinterfaces:
GenericDao, GtfsDao
All Known Subinterfaces:
GtfsMutableRelationalDao
All Known Implementing Classes:
GtfsRelationalDaoImpl

public interface GtfsRelationalDao
extends GtfsDao

While GtfsDao has basic methods for retrieving collections of entities and entities by id, GtfsRelationalDao adds some basic methods for retrieving entities using more complex data relations. You can imagine many complex queries that you might perform on GTFS data, most of which will not be included here. These are just some basic relational methods that we use to bootstrap other GTFS classes. To add more complex queries, look at the specific mechanisms provided by classes implementing GtfsRelationalDao and GtfsDao.

Author:
bdferris

Method Summary
 java.util.List<ServiceCalendarDate> getCalendarDatesForServiceId(AgencyAndId serviceId)
          ServiceCalendarDate Methods
 ServiceCalendar getCalendarForServiceId(AgencyAndId serviceId)
          ServiceCalendar Methods
 java.util.List<Frequency> getFrequenciesForTrip(Trip trip)
          Frequency Methods
 java.util.List<Route> getRoutesForAgency(Agency agency)
          Route Methods
 java.util.List<ShapePoint> getShapePointsForShapeId(AgencyAndId shapeId)
          ShapePoint Methods
 java.util.List<StopTime> getStopTimesForStop(Stop stop)
           
 java.util.List<StopTime> getStopTimesForTrip(Trip trip)
           
 java.util.List<java.lang.String> getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId)
          ServiceId Methods
 java.util.List<Trip> getTripsForBlockId(AgencyAndId blockId)
           
 java.util.List<Trip> getTripsForRoute(Route route)
          Trip Methods
 
Methods inherited from interface org.onebusaway.gtfs.services.GtfsDao
getAgencyForId, getAllAgencies, getAllCalendarDates, getAllCalendars, getAllFareAttributes, getAllFareRules, getAllFrequencies, getAllPathways, getAllRoutes, getAllShapePoints, getAllStops, getAllStopTimes, getAllTransfers, getAllTrips, getCalendarDateForId, getCalendarForId, getFareAttributeForId, getFareRuleForId, getFrequencyForId, getPathwayForId, getRouteForId, getShapePointForId, getStopForId, getStopTimeForId, getTransferForId, getTripForId
 
Methods inherited from interface org.onebusaway.gtfs.services.GenericDao
getAllEntitiesForType, getEntityForId
 

Method Detail

getTripAgencyIdsReferencingServiceId

java.util.List<java.lang.String> getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId)
ServiceId Methods


getRoutesForAgency

java.util.List<Route> getRoutesForAgency(Agency agency)
Route Methods


getTripsForRoute

java.util.List<Trip> getTripsForRoute(Route route)
Trip Methods


getTripsForBlockId

java.util.List<Trip> getTripsForBlockId(AgencyAndId blockId)

getStopTimesForTrip

java.util.List<StopTime> getStopTimesForTrip(Trip trip)
Returns:
the list of StopTime objects associated with the trip, sorted by StopTime.getStopSequence()

getStopTimesForStop

java.util.List<StopTime> getStopTimesForStop(Stop stop)
Returns:
the list of StopTime objects associated with the specified Stop, in no particular order

getShapePointsForShapeId

java.util.List<ShapePoint> getShapePointsForShapeId(AgencyAndId shapeId)
ShapePoint Methods


getFrequenciesForTrip

java.util.List<Frequency> getFrequenciesForTrip(Trip trip)
Frequency Methods


getCalendarForServiceId

ServiceCalendar getCalendarForServiceId(AgencyAndId serviceId)
ServiceCalendar Methods


getCalendarDatesForServiceId

java.util.List<ServiceCalendarDate> getCalendarDatesForServiceId(AgencyAndId serviceId)
ServiceCalendarDate Methods



Copyright © 2011 OneBusAway. All Rights Reserved.