Package org.onebusaway.gtfs.services
Interface GtfsRelationalDao
-
- All Superinterfaces:
GenericDao,GtfsDao
- All Known Subinterfaces:
GtfsDataService,GtfsMutableRelationalDao
- All Known Implementing Classes:
GtfsDataServiceImpl,GtfsRelationalDaoImpl
public interface GtfsRelationalDao extends GtfsDao
WhileGtfsDaohas basic methods for retrieving collections of entities and entities by id,GtfsRelationalDaoadds 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 implementingGtfsRelationalDaoandGtfsDao.- Author:
- bdferris
-
-
Method Summary
-
Methods inherited from interface org.onebusaway.gtfs.services.GenericDao
getAllEntitiesForType, getEntityForId
-
Methods 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, getAllPathways, getAllRiderCategories, getAllRiderships, getAllRoutes, getAllRouteShapes, getAllRouteStops, getAllShapePoints, getAllStopAreaElements, getAllStopAreas, getAllStops, getAllStopTimes, getAllTransfers, getAllTranslations, getAllTrips, getAllVehicles, getAllWrongWayConcurrencies, getBlockForId, getCalendarDateForId, getCalendarForId, getFareAttributeForId, getFareProductForId, getFareRuleForId, getFeedInfoForId, getFrequencyForId, getLevelForId, getMetadata, getOptionalMetadataFilenames, getPathwayForId, getRouteForId, getShapePointForId, getStopForId, getStopTimeForId, getTransferForId, getTripForId, getVehicleForId, hasFaresV1, hasFaresV2, hasMetadata
-
-
-
-
Method Detail
-
getTripAgencyIdsReferencingServiceId
List<String> getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId)
ServiceId Methods
-
getTripsForShapeId
List<Trip> getTripsForShapeId(AgencyAndId shapeId)
-
getTripsForServiceId
List<Trip> getTripsForServiceId(AgencyAndId serviceId)
-
getTripsForBlockId
List<Trip> getTripsForBlockId(AgencyAndId blockId)
-
getStopTimesForTrip
List<StopTime> getStopTimesForTrip(Trip trip)
- Returns:
- the list of
StopTimeobjects associated with the trip, sorted byStopTime.getStopSequence()
-
getAllShapeIds
List<AgencyAndId> getAllShapeIds()
ShapePointMethods
-
getShapePointsForShapeId
List<ShapePoint> getShapePointsForShapeId(AgencyAndId shapeId)
-
getAllServiceIds
List<AgencyAndId> getAllServiceIds()
ServiceCalendarMethods
-
getCalendarForServiceId
ServiceCalendar getCalendarForServiceId(AgencyAndId serviceId)
-
getCalendarDatesForServiceId
List<ServiceCalendarDate> getCalendarDatesForServiceId(AgencyAndId serviceId)
ServiceCalendarDateMethods
-
getFareRulesForFareAttribute
List<FareRule> getFareRulesForFareAttribute(FareAttribute fareAttribute)
-
getRidershipForTrip
List<Ridership> getRidershipForTrip(AgencyAndId tripId)
-
-