com.kukababy.plus.pojo.PlusCols Maven / Gradle / Ivy
/**
*
*/
package com.kukababy.plus.pojo;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.kukababy.plus.utils.Constant;
/**
* 描述::
*
*
*
*
*
*
* @author [email protected]
* @date 2019年3月1日 上午9:13:49
*/
public class PlusCols {
private String tableName;
/**
* 字段名对应实体变量名映射
*/
private Map col2Var = new HashMap();
/**
* 对应数据库的字段,除去主键
*/
private List cols = new ArrayList();
/**
* 非表对应字段名
*/
private List noCols = new ArrayList();
/**
* 数据库主键名字
*/
private String key;
/**
* 主键生成策略
*/
private String strategy = Constant.AUTO;
/**
* 主键生成策略的字段类型,只能为整型
*/
private String keyType = Constant.INT;
/**
* @return the cols
*/
public List getCols() {
return cols;
}
/**
* @param cols
* the cols to set
*/
public void setCols(List cols) {
this.cols = cols;
}
/**
* @return the key
*/
public String getKey() {
return key;
}
/**
* @param key
* the key to set
*/
public void setKey(String key) {
this.key = key;
}
/**
* @return the tableName
*/
public String getTableName() {
return tableName;
}
/**
* @param tableName
* the tableName to set
*/
public void setTableName(String tableName) {
this.tableName = tableName;
}
/**
* @return the noCols
*/
public List getNoCols() {
return noCols;
}
/**
* @param noCols
* the noCols to set
*/
public void setNoCols(List noCols) {
this.noCols = noCols;
}
/**
* @return the strategy
*/
public String getStrategy() {
return strategy;
}
/**
* @param strategy
* the strategy to set
*/
public void setStrategy(String strategy) {
this.strategy = strategy;
}
/**
* @return the keyType
*/
public String getKeyType() {
return keyType;
}
/**
* @param keyType
* the keyType to set
*/
public void setKeyType(String keyType) {
this.keyType = keyType;
}
/**
* @return the col2Var
*/
public Map getCol2Var() {
return col2Var;
}
/**
* @param col2Var
* the col2Var to set
*/
public void setCol2Var(Map col2Var) {
this.col2Var = col2Var;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "[tableName=" + tableName + ", col2Var=" + col2Var + ", cols=" + cols + ", noCols=" + noCols + ", key=" + key + ", strategy=" + strategy
+ ", keyType=" + keyType + "]";
}
}