public interface ImportStrategy<T extends TopiaEntityEnum>
TopiaCsvImports.importTable(Reader, ImportStrategy, TableMeta, CsvImportResult),
TopiaCsvImports.importAssociation(Reader, ImportStrategy, AssociationMeta, CsvImportResult).| Modifier and Type | Method and Description |
|---|---|
ImportModelFactory<T> |
getModelFactory() |
void |
importAssociation(AssociationMeta<T> meta,
org.nuiton.csv.ImportToMap importer,
CsvImportResult<T> csvResult)
Import a association given a
importer with an optional csv result. |
<E extends TopiaEntity> |
importTable(TableMeta<T> meta,
org.nuiton.csv.Import<E> importer,
CsvImportResult<T> csvResult)
Import a table given a
importer with an optional csv result. |
<E extends TopiaEntity> |
importTableAndReturnThem(TableMeta<T> meta,
org.nuiton.csv.Import<E> importer,
CsvImportResult<T> csvResult)
Import a table given a
importer with an optional csv result,
and return them. |
ImportModelFactory<T> getModelFactory()
<E extends TopiaEntity> void importTable(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) throws TopiaException
importer with an optional csv result.meta - type of table to importimporter - the csv importercsvResult - optional object where to put csv import resultTopiaException - if any db problem<E extends TopiaEntity> Iterable<E> importTableAndReturnThem(TableMeta<T> meta, org.nuiton.csv.Import<E> importer, CsvImportResult<T> csvResult) throws TopiaException
importer with an optional csv result,
and return them.meta - type of table to importimporter - the csv importercsvResult - optional object where to put csv import resultTopiaException - if any db problemvoid importAssociation(AssociationMeta<T> meta, org.nuiton.csv.ImportToMap importer, CsvImportResult<T> csvResult) throws TopiaException
importer with an optional csv result.meta - type of association to importimporter - the csv importercsvResult - optional object where to put csv import resultTopiaException - if any db problemCopyright © 2004–2022 Code Lutin. All rights reserved.