com.dream.system.table.TableInfo Maven / Gradle / Ivy
package com.dream.system.table;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public class TableInfo {
private final String table;
private final Class type;
private final Map columnInfoMap;
private final List primKeys;
public TableInfo(String table, Class type, List primKeys, Map columnInfoMap) {
this.table = table;
this.type = type;
this.primKeys = primKeys;
this.columnInfoMap = columnInfoMap;
}
public ColumnInfo getColumnInfo(String fieldName) {
return columnInfoMap.get(fieldName);
}
public Collection getColumnInfoList() {
return columnInfoMap.values();
}
public String getTable() {
return table;
}
public Class getType() {
return type;
}
public List getPrimKeys() {
return primKeys;
}
}