Class FareProductFieldMappingFactory

  • All Implemented Interfaces:
    org.onebusaway.csv_entities.schema.FieldMappingFactory

    public class FareProductFieldMappingFactory
    extends Object
    implements org.onebusaway.csv_entities.schema.FieldMappingFactory
    Fare products have a composite primary key of - fare product id - fare medium id (nullable) - rider category id (nullable) So if you want this library to look up the fare product instance you need to supply all of these, hence we need a custom mapping factory.
    • Constructor Detail

      • FareProductFieldMappingFactory

        public FareProductFieldMappingFactory()
    • Method Detail

      • createFieldMapping

        public org.onebusaway.csv_entities.schema.FieldMapping createFieldMapping​(org.onebusaway.csv_entities.schema.EntitySchemaFactory schemaFactory,
                                                                                  Class<?> entityType,
                                                                                  String csvFieldName,
                                                                                  String objFieldName,
                                                                                  Class<?> objFieldType,
                                                                                  boolean required)
        Specified by:
        createFieldMapping in interface org.onebusaway.csv_entities.schema.FieldMappingFactory