org.onebusaway.gtfs.services.GtfsDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of onebusaway-gtfs Show documentation
Show all versions of onebusaway-gtfs Show documentation
A Java library for reading and writing General Transit Feed Spec feeds
/**
* Copyright (C) 2011 Brian Ferris
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onebusaway.gtfs.services;
import java.util.Collection;
import org.onebusaway.gtfs.model.Agency;
import org.onebusaway.gtfs.model.AgencyAndId;
import org.onebusaway.gtfs.model.FareAttribute;
import org.onebusaway.gtfs.model.FareRule;
import org.onebusaway.gtfs.model.FeedInfo;
import org.onebusaway.gtfs.model.Frequency;
import org.onebusaway.gtfs.model.Pathway;
import org.onebusaway.gtfs.model.Route;
import org.onebusaway.gtfs.model.ServiceCalendar;
import org.onebusaway.gtfs.model.ServiceCalendarDate;
import org.onebusaway.gtfs.model.ShapePoint;
import org.onebusaway.gtfs.model.Stop;
import org.onebusaway.gtfs.model.StopTime;
import org.onebusaway.gtfs.model.Transfer;
import org.onebusaway.gtfs.model.Trip;
/**
* Basic methods for accessing GTFS entities in bulk or by id.
*
* @author bdferris
*/
public interface GtfsDao extends GenericDao {
/****
* Agency Methods
****/
public Collection getAllAgencies();
public Agency getAgencyForId(String id);
/****
* {@link ServiceCalendar} Methods
****/
public Collection getAllCalendars();
public ServiceCalendar getCalendarForId(int id);
/****
* {@link ServiceCalendarDate} Methods
****/
public Collection getAllCalendarDates();
public ServiceCalendarDate getCalendarDateForId(int id);
/****
* {@link FareAttribute} Methods
****/
public Collection getAllFareAttributes();
public FareAttribute getFareAttributeForId(AgencyAndId id);
/****
* {@link FareRule} Methods
***/
public Collection getAllFareRules();
public FareRule getFareRuleForId(int id);
/****
* {@link FeedInfo} Methods
****/
public Collection getAllFeedInfos();
public FeedInfo getFeedInfoForId(int id);
/****
* {@link Frequency} Methods
****/
public Collection getAllFrequencies();
public Frequency getFrequencyForId(int id);
/****
* {@link Pathway} Methods
****/
public Collection getAllPathways();
public Pathway getPathwayForId(AgencyAndId id);
/****
* {@link Route} Methods
****/
public Collection getAllRoutes();
public Route getRouteForId(AgencyAndId id);
/****
* {@link ShapePoint} Methods
****/
public Collection getAllShapePoints();
public ShapePoint getShapePointForId(int id);
/****
* {@link Stop} Methods
****/
public Collection getAllStops();
public Stop getStopForId(AgencyAndId id);
/****
* {@link StopTime} Methods
****/
public Collection getAllStopTimes();
public StopTime getStopTimeForId(int id);
/****
* {@link Transfer} Methods
****/
public Collection getAllTransfers();
public Transfer getTransferForId(int id);
/****
* {@link Trip} Methods
****/
public Collection getAllTrips();
public Trip getTripForId(AgencyAndId id);
}