private void readDao(GtfsReader reader) throws IOException { dao = new GtfsRelationalDaoImpl(); reader.setEntityStore(dao); reader.setDefaultAgencyId(getFeedId().getId()); reader.run(); }
throws IOException { StoreImpl store = new StoreImpl(new GtfsRelationalDaoImpl()); store.open(); LOG.info("reading {}", gtfsBundle.toString());
private void readReferenceGtfs() throws IOException { _log.info("reading reference GTFS at " + _gtfsReferenceDirectory); GenericMutableDao dao = new GtfsRelationalDaoImpl(); _referenceReader.setEntityStore(dao); if (_agencyId != null) _referenceReader.setDefaultAgencyId(_agencyId); _referenceReader.setInputLocation(_gtfsReferenceDirectory); _referenceReader.run(); _context.setReferenceReader(_referenceReader); }
public GtfsMutableRelationalDao read(GtfsReader reader) throws IOException { reader.setInputLocation(_path); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); reader.setEntityStore(dao); try { reader.run(); } finally { reader.close(); } return dao; }
public GtfsMutableRelationalDao read(GtfsReader reader) throws IOException { reader.setInputLocation(_path); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); reader.setEntityStore(dao); try { reader.run(); } finally { reader.close(); } return dao; }
public void run(List<File> inputPaths, File outputPath) throws IOException { GtfsRelationalDaoImpl mergedDao = new GtfsRelationalDaoImpl(); mergedDao.setPackShapePoints(true); mergedDao.setPackStopTimes(true); reader.setInputLocation(inputPath); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); dao.setPackShapePoints(true); dao.setPackStopTimes(true);
public void run(List<File> inputPaths, File outputPath) throws IOException { GtfsRelationalDaoImpl mergedDao = new GtfsRelationalDaoImpl(); mergedDao.setPackShapePoints(true); mergedDao.setPackStopTimes(true); reader.setInputLocation(inputPath); GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); dao.setPackShapePoints(true); dao.setPackStopTimes(true);
public static GtfsContext readGtfs(File path, String defaultAgencyId) throws IOException { GtfsRelationalDaoImpl dao = new GtfsRelationalDaoImpl(); GtfsReader reader = new GtfsReader(); reader.setInputLocation(path); reader.setEntityStore(dao); if (defaultAgencyId != null) reader.setDefaultAgencyId(defaultAgencyId); reader.run(); CalendarService calendarService = createCalendarService(dao); return new GtfsContextImpl(dao, calendarService); }