public class CsvImportResult<T extends TopiaEntityEnum> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
createIfNotFound
Flag to authorize to create entities not found in db.
|
protected T |
entityType
type of entity to import csv datas.
|
protected String |
importFileName
Name of the csv file to import.
|
protected int |
numberCreated
Count of created entities.
|
protected int |
numberUpdated
Count of updated entities.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CsvImportResult(T entityType,
String importFileName,
boolean createIfNotFound) |
| Modifier and Type | Method and Description |
|---|---|
T |
getEntityType() |
String |
getImportFileName() |
int |
getNumberCreated() |
int |
getNumberUpdated() |
void |
incrementsNumberCreated() |
void |
incrementsNumberUpdated() |
boolean |
isCreateIfNotFound() |
static <T extends TopiaEntityEnum> |
newResult(T entityType,
String importFileName,
boolean createIfNotFound) |
protected final T extends TopiaEntityEnum entityType
protected final String importFileName
protected final boolean createIfNotFound
protected int numberCreated
protected int numberUpdated
public static <T extends TopiaEntityEnum> CsvImportResult<T> newResult(T entityType, String importFileName, boolean createIfNotFound)
public T getEntityType()
public String getImportFileName()
public int getNumberCreated()
public int getNumberUpdated()
public boolean isCreateIfNotFound()
public void incrementsNumberCreated()
public void incrementsNumberUpdated()
Copyright © 2004-2012 CodeLutin. All Rights Reserved.