public class CsvFileImportResult<T extends TopiaEntityEnum> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Set<T> |
entityTypes
type of entity to import csv datas.
|
protected String |
importFileName
Name of the csv file to import.
|
protected Map<T,Integer> |
numberCreated
Count of created entities.
|
protected Map<T,Integer> |
numberUpdated
Count of updated entities.
|
Constructor and Description |
---|
CsvFileImportResult(String importFileName,
T... universe) |
Modifier and Type | Method and Description |
---|---|
Set<T> |
getEntityTypes() |
String |
getImportFileName() |
protected int |
getInteger(Map<T,Integer> map,
T entityType) |
int |
getNumberCreated(T entityType) |
int |
getNumberUpdated(T entityType) |
protected void |
increments(Map<T,Integer> map,
T entityType) |
void |
incrementsNumberCreated(T entityType) |
void |
incrementsNumberUpdated(T entityType) |
static <T extends TopiaEntityEnum> |
newResult(String importFileName,
T... universe) |
protected final String importFileName
protected final Set<T extends TopiaEntityEnum> entityTypes
protected final Map<T extends TopiaEntityEnum,Integer> numberCreated
protected final Map<T extends TopiaEntityEnum,Integer> numberUpdated
public static <T extends TopiaEntityEnum> CsvFileImportResult<T> newResult(String importFileName, T... universe)
public int getNumberCreated(T entityType)
public int getNumberUpdated(T entityType)
public String getImportFileName()
public void incrementsNumberCreated(T entityType)
public void incrementsNumberUpdated(T entityType)
Copyright © 2004–2022 Code Lutin. All rights reserved.