public GtfsWriter() { /** * Prep the Entity Schema Factories */ _entityClasses.addAll(GtfsEntitySchemaFactory.getEntityClasses()); _entityComparators.putAll(GtfsEntitySchemaFactory.getEntityComparators()); DefaultEntitySchemaFactory schemaFactory = createEntitySchemaFactory(); setEntitySchemaFactory(schemaFactory); }
public GtfsWriter() { /** * Prep the Entity Schema Factories */ _entityClasses.addAll(GtfsEntitySchemaFactory.getEntityClasses()); _entityComparators.putAll(GtfsEntitySchemaFactory.getEntityComparators()); DefaultEntitySchemaFactory schemaFactory = createEntitySchemaFactory(); setEntitySchemaFactory(schemaFactory); }
private static void writeGtfs(File outputDirectory, GtfsDaoImpl store, DefaultEntitySchemaFactory schema) throws IOException { GtfsWriter writer = new GtfsWriter(); writer.setOutputLocation(outputDirectory); writer.setEntitySchemaFactory(schema); writer.run(store); } }
private static void writeGtfs(File outputDirectory, GtfsDaoImpl store, DefaultEntitySchemaFactory schema) throws IOException { GtfsWriter writer = new GtfsWriter(); writer.setOutputLocation(outputDirectory); writer.setEntitySchemaFactory(schema); writer.run(store); } }
private static void writeGtfs(File outputDirectory, GtfsDaoImpl store, DefaultEntitySchemaFactory schema) throws IOException { GtfsWriter writer = new GtfsWriter(); writer.setOutputLocation(outputDirectory); writer.setEntitySchemaFactory(schema); writer.run(store); } }
private void writeGtfs() throws IOException { if (_outputDirectory == null) { return; } _writer.setOutputLocation(_outputDirectory); DefaultEntitySchemaFactory schemaFactory = new DefaultEntitySchemaFactory(); schemaFactory.addFactory(GtfsEntitySchemaFactory.createEntitySchemaFactory()); for (SchemaUpdateStrategy strategy : _outputSchemaUpdates) strategy.updateSchema(schemaFactory); _writer.setEntitySchemaFactory(schemaFactory); _writer.run(_dao); }