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> entityTypes
    type of entity to import csv datas.
    protected java.lang.String importFileName
    Name of the csv file to import.
    protected java.util.Map<T,​java.lang.Integer> numberCreated
    Count of created entities.
    protected java.util.Map<T,​java.lang.Integer> numberUpdated
    Count 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.String getImportFileName()  
    protected int getInteger​(java.util.Map<T,​java.lang.Integer> map, T entityType)  
    int getNumberCreated​(T entityType)  
    int getNumberUpdated​(T entityType)  
    protected void increments​(java.util.Map<T,​java.lang.Integer> map, T entityType)  
    void incrementsNumberCreated​(T entityType)  
    void incrementsNumberUpdated​(T entityType)  
    static <T extends TopiaEntityEnum>
    CsvFileImportResult<T>
    newResult​(java.lang.String importFileName, T... universe)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait