org.brijframework.resources.csv.CsvLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of github-brijframework-resources Show documentation
Show all versions of github-brijframework-resources Show documentation
This is the resources library of brijframework
The newest version!
package org.brijframework.resources.csv;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public abstract class CsvLoader {
public List insertArray = new ArrayList<>();
public List updateArray = new ArrayList<>();
public List extraArray = new ArrayList<>();
public List failedArray = new ArrayList<>();
private CsvModel csvModel;
public void setCsvModel(CsvModel csvModel) {
this.csvModel = csvModel;
}
public CsvModel getCsvModel() {
return csvModel;
}
public abstract CsvModel getKeysMapper();
public abstract Collection> dataArray();
@SuppressWarnings("unchecked")
public boolean isContainRecord(Map contains) {
for (Object oldObject : dataArray()) {
if (oldObject instanceof Map) {
Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy