Class CsvFileImportResult<T extends TopiaEntityEnum>

java.lang.Object
org.nuiton.topia.service.csv.in.CsvFileImportResult<T>
All Implemented Interfaces:
Serializable

public class CsvFileImportResult<T extends TopiaEntityEnum> extends Object implements Serializable
To keep result of the import of a file.
Since:
2.6.12
Author:
Tony Chemit - chemit@codelutin.com
See Also:
  • Field Details

    • importFileName

      protected final String importFileName
      Name of the csv file to import.
    • entityTypes

      protected final Set<T extends TopiaEntityEnum> entityTypes
      type of entity to import csv datas.
    • numberCreated

      protected final Map<T extends TopiaEntityEnum,Integer> numberCreated
      Count of created entities.
    • numberUpdated

      protected final Map<T extends TopiaEntityEnum,Integer> numberUpdated
      Count of updated entities.
  • Constructor Details

    • CsvFileImportResult

      public CsvFileImportResult(String importFileName, T... universe)
  • Method Details

    • newResult

      public static <T extends TopiaEntityEnum> CsvFileImportResult<T> newResult(String importFileName, T... universe)
    • getEntityTypes

      public Set<T> getEntityTypes()
    • getNumberCreated

      public int getNumberCreated(T entityType)
    • getNumberUpdated

      public int getNumberUpdated(T entityType)
    • getImportFileName

      public String getImportFileName()
    • incrementsNumberCreated

      public void incrementsNumberCreated(T entityType)
    • incrementsNumberUpdated

      public void incrementsNumberUpdated(T entityType)
    • getInteger

      protected int getInteger(Map<T,Integer> map, T entityType)
    • increments

      protected void increments(Map<T,Integer> map, T entityType)