Interface ImportStrategy<T extends TopiaEntityEnum>


public interface ImportStrategy<T extends TopiaEntityEnum>
Since:
2.6.12
Author:
tchemit <chemit@codelutin.com>
  • Method Details

    • getModelFactory

      ImportModelFactory<T> getModelFactory()
      Returns:
      the model factory (will be used to produce the model to import).
    • importTable

      <E extends TopiaEntity> void importTable(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) throws TopiaException
      Import a table given a importer with an optional csv result.
      Parameters:
      meta - type of table to import
      importer - the csv importer
      csvResult - optional object where to put csv import result
      Throws:
      TopiaException - if any db problem
    • importTableAndReturnThem

      <E extends TopiaEntity> Iterable<E> importTableAndReturnThem(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) throws TopiaException
      Import a table given a importer with an optional csv result, and return them.
      Parameters:
      meta - type of table to import
      importer - the csv importer
      csvResult - optional object where to put csv import result
      Returns:
      imported entities
      Throws:
      TopiaException - if any db problem
      Since:
      2.6.14
    • importAssociation

      void importAssociation(AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult) throws TopiaException
      Import a association given a importer with an optional csv result.
      Parameters:
      meta - type of association to import
      importer - the csv importer
      csvResult - optional object where to put csv import result
      Throws:
      TopiaException - if any db problem