com.rolfje.anonimatron.configuration.Table Maven / Gradle / Ivy
package com.rolfje.anonimatron.configuration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Table {
private String name;
private Integer fetchSize;
private List columns;
private List discriminators;
// Used for progress monitoring
private long numberOfRows;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getFetchSize() {
return fetchSize;
}
public void setFetchSize(Integer fetchSize) {
this.fetchSize = fetchSize;
}
public List getColumns() {
return columns;
}
public static Map getColumnsAsMap(List columns) {
Map columnMap = new HashMap<>();
if (columns != null) {
for (Column column : columns) {
columnMap.put(column.getName(), column);
}
}
return columnMap;
}
public void setColumns(List columns) {
this.columns = columns;
}
public List getDiscriminators() {
return discriminators;
}
public void setDiscriminators(List discriminators) {
this.discriminators = discriminators;
}
public long getNumberOfRows() {
return numberOfRows;
}
public void setNumberOfRows(long numberOfRows) {
this.numberOfRows = numberOfRows;
}
}