public class Feed extends Object
| Modifier and Type | Field and Description |
|---|---|
TableReader<Agency> |
agencies |
TableReader<CalendarDate> |
calendarDates |
TableReader<Calendar> |
calendars |
List<GTFSError> |
errors |
TableReader<FareAttribute> |
fareAttributes |
TableReader<Frequency> |
frequencies |
TableReader<Route> |
routes |
TableReader<Stop> |
stops |
TableReader<StopTime> |
stopTimes |
String |
tablePrefix |
TableReader<Trip> |
trips |
| Constructor and Description |
|---|
Feed(DataSource dataSource,
String tablePrefix)
Create a feed that reads tables over a JDBC connection.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
ValidationResult |
validate()
TODO check whether validation has already occurred, overwrite results.
|
public final String tablePrefix
public final TableReader<Agency> agencies
public final TableReader<Calendar> calendars
public final TableReader<CalendarDate> calendarDates
public final TableReader<FareAttribute> fareAttributes
public final TableReader<Frequency> frequencies
public final TableReader<Route> routes
public final TableReader<Stop> stops
public final TableReader<Trip> trips
public final TableReader<StopTime> stopTimes
public Feed(DataSource dataSource, String tablePrefix)
tablePrefix - the unique prefix for the table (may be null for no prefix)public ValidationResult validate()
public Connection getConnection() throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.