Class CsvFileImportResult<T extends TopiaEntityEnum>
java.lang.Object
org.nuiton.topia.persistence.csv.in.CsvFileImportResult<T>
- All Implemented Interfaces:
Serializable
To keep result of the import of a file.
- Since:
- 2.6.12
- Author:
- tchemit <chemit@codelutin.com>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiontype of entity to import csv datas.protected final StringName of the csv file to import.Count of created entities.Count of updated entities. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetInteger(Map<T, Integer> map, T entityType) intgetNumberCreated(T entityType) intgetNumberUpdated(T entityType) protected voidincrements(Map<T, Integer> map, T entityType) voidincrementsNumberCreated(T entityType) voidincrementsNumberUpdated(T entityType) static <T extends TopiaEntityEnum>
CsvFileImportResult<T>
-
Field Details
-
importFileName
Name of the csv file to import. -
entityTypes
type of entity to import csv datas. -
numberCreated
Count of created entities. -
numberUpdated
Count of updated entities.
-
-
Constructor Details
-
CsvFileImportResult
-
-
Method Details
-
newResult
public static <T extends TopiaEntityEnum> CsvFileImportResult<T> newResult(String importFileName, T... universe) -
getEntityTypes
-
getNumberCreated
-
getNumberUpdated
-
getImportFileName
-
incrementsNumberCreated
-
incrementsNumberUpdated
-
getInteger
-
increments
-