org.onebusaway.transit_data_federation.bundle.tasks
Class GtfsReadingSupport

java.lang.Object
  extended by org.onebusaway.transit_data_federation.bundle.tasks.GtfsReadingSupport

public class GtfsReadingSupport
extends Object

Convenience methods for reading multiple gtfs feeds, as defined by a GtfsBundles entry in an ApplicationContext, into a common data store, with addition of EntityReplacementStrategy.

Author:
bdferris
See Also:
GtfsBundles, GtfsMultiReaderImpl, EntityReplacementStrategy

Constructor Summary
GtfsReadingSupport()
           
 
Method Summary
static void readGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store)
          Supplies a default entity schema factory to readGtfsIntoStore(ApplicationContext, GenericMutableDao, DefaultEntitySchemaFactory)
static void readGtfsIntoStore(org.springframework.context.ApplicationContext context, org.onebusaway.gtfs.services.GenericMutableDao store, org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory factory)
          Read gtfs, as defined by GtfsBundles entries in the application context, into the specified data store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GtfsReadingSupport

public GtfsReadingSupport()
Method Detail

readGtfsIntoStore

public static void readGtfsIntoStore(org.springframework.context.ApplicationContext context,
                                     org.onebusaway.gtfs.services.GenericMutableDao store)
                              throws IOException
Supplies a default entity schema factory to readGtfsIntoStore(ApplicationContext, GenericMutableDao, DefaultEntitySchemaFactory)

Parameters:
context -
store -
Throws:
IOException

readGtfsIntoStore

public static void readGtfsIntoStore(org.springframework.context.ApplicationContext context,
                                     org.onebusaway.gtfs.services.GenericMutableDao store,
                                     org.onebusaway.csv_entities.schema.DefaultEntitySchemaFactory factory)
                              throws IOException
Read gtfs, as defined by GtfsBundles entries in the application context, into the specified data store. Gtfs will be read in quasi-paralle mode using GtfsMultiReaderImpl. Any EntityReplacementStrategy strategies defined in the application context will be applied as well.

Parameters:
context -
store -
factory -
Throws:
IOException


Copyright © 2012 OneBusAway. All Rights Reserved.