Package org.onebusaway.gtfs.services
Interface GtfsRelationalDao
- All Superinterfaces:
GenericDao,GtfsDao
- All Known Subinterfaces:
GtfsDataService,GtfsMutableRelationalDao
- All Known Implementing Classes:
GtfsDataServiceImpl,GtfsRelationalDaoImpl
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
Modifier and TypeMethodDescriptionServiceCalendarMethodsShapePointMethodsgetCalendarDatesForServiceId(AgencyAndId serviceId) ServiceCalendarDateMethodsgetCalendarForServiceId(AgencyAndId serviceId) getFareRulesForFareAttribute(FareAttribute fareAttribute) getFareRulesForRoute(Route route) getFareRulesForZoneId(String zoneId) getFrequenciesForTrip(Trip trip) FrequencyMethodsgetRidershipForTrip(AgencyAndId tripId) getRoutesForAgency(Agency agency) Route MethodsgetShapePointsForShapeId(AgencyAndId shapeId) getStopsForStation(Stop station) Stop MethodsgetStopsForZoneId(String zoneId) getStopTimesForStop(Stop stop) getStopTimesForTrip(Trip trip) getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId) ServiceId MethodsgetTripsForBlockId(AgencyAndId blockId) getTripsForRoute(Route route) TripMethodsgetTripsForServiceId(AgencyAndId serviceId) getTripsForShapeId(AgencyAndId shapeId) Methods inherited from interface org.onebusaway.gtfs.services.GenericDao
getAllEntitiesForType, getEntityForIdMethods inherited from interface org.onebusaway.gtfs.services.GtfsDao
addMetadata, getAgencyForId, getAllAgencies, getAllAreas, getAllBlocks, getAllBookingRules, getAllCalendarDates, getAllCalendars, getAllDirectionEntries, getAllFareAttributes, getAllFareLegRules, getAllFareMedia, getAllFareProducts, getAllFareRules, getAllFareTransferRules, getAllFeedInfos, getAllFrequencies, getAllLevels, getAllLocationGroupElements, getAllLocationGroups, getAllLocations, getAllNetworks, getAllPathways, getAllRiderCategories, getAllRiderships, getAllRoutes, getAllRouteShapes, getAllRouteStops, getAllShapePoints, getAllStopAreaElements, getAllStops, getAllStopTimes, getAllTransfers, getAllTranslations, getAllTrips, getAllVehicles, getBlockForId, getCalendarDateForId, getCalendarForId, getFareAttributeForId, getFareProductForId, getFareRuleForId, getFeedInfoForId, getFrequencyForId, getLevelForId, getMetadata, getOptionalMetadataFilenames, getPathwayForId, getRouteForId, getShapePointForId, getStopForId, getStopTimeForId, getTransferForId, getTripForId, getVehicleForId, hasFaresV1, hasFaresV2, hasMetadata
-
Method Details
-
getTripAgencyIdsReferencingServiceId
ServiceId Methods -
getRoutesForAgency
Route Methods -
getStopsForStation
Stop Methods -
getStopsForZoneId
-
getTripsForRoute
TripMethods -
getTripsForShapeId
-
getTripsForServiceId
-
getTripsForBlockId
-
getStopTimesForTrip
- Returns:
- the list of
StopTimeobjects associated with the trip, sorted byStopTime.getStopSequence()
-
getStopTimesForStop
-
getAllShapeIds
List<AgencyAndId> getAllShapeIds()ShapePointMethods -
getShapePointsForShapeId
-
getFrequenciesForTrip
FrequencyMethods -
getAllServiceIds
List<AgencyAndId> getAllServiceIds()ServiceCalendarMethods -
getCalendarForServiceId
-
getCalendarDatesForServiceId
ServiceCalendarDateMethods -
getFareRulesForFareAttribute
-
getFareRulesForRoute
-
getFareRulesForZoneId
-
getRidershipForTrip
-