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
 List<ServiceCalendarDate> getCalendarDatesForServiceId(AgencyAndId serviceId)
          ServiceCalendarDate Methods
 ServiceCalendar getCalendarForServiceId(AgencyAndId serviceId)
          ServiceCalendar Methods
 List<Frequency> getFrequenciesForTrip(Trip trip)
          Frequency Methods
 List<Route> getRoutesForAgency(Agency agency)
          Route Methods
 List<ShapePoint> getShapePointsForShapeId(AgencyAndId shapeId)
          ShapePoint Methods
 List<StopTime> getStopTimesForStop(Stop stop)
           
 List<StopTime> getStopTimesForTrip(Trip trip)
           
 List<String> getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId)
          ServiceId Methods
 List<Trip> getTripsForBlockId(AgencyAndId blockId)
           
 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

List<String> getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId)
ServiceId Methods


getRoutesForAgency

List<Route> getRoutesForAgency(Agency agency)
Route Methods


getTripsForRoute

List<Trip> getTripsForRoute(Route route)
Trip Methods


getTripsForBlockId

List<Trip> getTripsForBlockId(AgencyAndId blockId)

getStopTimesForTrip

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

getStopTimesForStop

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

getShapePointsForShapeId

List<ShapePoint> getShapePointsForShapeId(AgencyAndId shapeId)
ShapePoint Methods


getFrequenciesForTrip

List<Frequency> getFrequenciesForTrip(Trip trip)
Frequency Methods


getCalendarForServiceId

ServiceCalendar getCalendarForServiceId(AgencyAndId serviceId)
ServiceCalendar Methods


getCalendarDatesForServiceId

List<ServiceCalendarDate> getCalendarDatesForServiceId(AgencyAndId serviceId)
ServiceCalendarDate Methods



Copyright © 2011 OneBusAway. All Rights Reserved.