com.kukababy.plus.pojo.SqlPo Maven / Gradle / Ivy
The newest version!
/**
*
*/
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 SqlPo {
private String tableName;
/**
* 字段名对应实体变量名映射
*/
private Map col2VarMap = 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 col2VarMap
*/
public Map getCol2VarMap() {
return col2VarMap;
}
/**
* @param col2VarMap the col2VarMap to set
*/
public void setCol2VarMap(Map col2VarMap) {
this.col2VarMap = col2VarMap;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "[tableName=" + tableName + ", col2VarMap=" + col2VarMap + ", cols=" + cols + ", noCols=" + noCols + ", key=" + key + ", strategy=" + strategy
+ ", keyType=" + keyType + "]";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy