Class CsvFileImportResult<T extends TopiaEntityEnum>
java.lang.Object
org.nuiton.topia.persistence.csv.in.CsvFileImportResult<T>
- All Implemented Interfaces:
java.io.Serializable
public class CsvFileImportResult<T extends TopiaEntityEnum>
extends java.lang.Object
implements java.io.Serializable
To keep result of the import of a file.
- Since:
- 2.6.12
- Author:
- tchemit <chemit@codelutin.com>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<T>entityTypestype of entity to import csv datas.protected java.lang.StringimportFileNameName of the csv file to import.protected java.util.Map<T,java.lang.Integer>numberCreatedCount of created entities.protected java.util.Map<T,java.lang.Integer>numberUpdatedCount of updated entities. -
Constructor Summary
Constructors Constructor Description CsvFileImportResult(java.lang.String importFileName, T... universe) -
Method Summary
Modifier and Type Method Description java.util.Set<T>getEntityTypes()java.lang.StringgetImportFileName()protected intgetInteger(java.util.Map<T,java.lang.Integer> map, T entityType)intgetNumberCreated(T entityType)intgetNumberUpdated(T entityType)protected voidincrements(java.util.Map<T,java.lang.Integer> map, T entityType)voidincrementsNumberCreated(T entityType)voidincrementsNumberUpdated(T entityType)static <T extends TopiaEntityEnum>
CsvFileImportResult<T>newResult(java.lang.String importFileName, T... universe)
-
Field Details
-
importFileName
protected final java.lang.String importFileNameName 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
-
Method Details
-
newResult
public static <T extends TopiaEntityEnum> CsvFileImportResult<T> newResult(java.lang.String importFileName, T... universe) -
getEntityTypes
-
getNumberCreated
-
getNumberUpdated
-
getImportFileName
public java.lang.String getImportFileName() -
incrementsNumberCreated
-
incrementsNumberUpdated
-
getInteger
-
increments
-