com.diboot.devtools.v2.OO0OOOO0OO0O00O0 Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
*
* ---- 版权声明 ----
* Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。
* Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。
*
* 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。
* 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。
*
* 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底!
*
*/
package com.diboot.devtools.v2;
import com.diboot.core.util.V;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.*;
@Getter
@Setter
@Deprecated()
public class OO0OOOO0OO0O00O0 implements Serializable {
private static final long serialVersionUID = 1100111110100101000L;
private List detailVOTableList;
private List listVOTableList;
private List dtoTableList;
private Map>> updateColumnMap;
private Map> removeColumnMap;
private Map>>> targetBindMap;
@Deprecated()
public OO0OOOO0OO0O00O0 setDetailVOTable(String detailVOTable) {
if (this.detailVOTableList == null) {
this.detailVOTableList = new ArrayList<>();
}
if (!this.detailVOTableList.contains(detailVOTable)) {
this.detailVOTableList.add(detailVOTable);
}
return this;
}
@Deprecated()
public OO0OOOO0OO0O00O0 setListVOTable(String listVOTable) {
if (this.listVOTableList == null) {
this.listVOTableList = new ArrayList<>();
}
if (!this.listVOTableList.contains(listVOTable)) {
this.listVOTableList.add(listVOTable);
}
return this;
}
@Deprecated()
public OO0OOOO0OO0O00O0 setDTOTable(String dtoTable) {
if (V.isEmpty(this.dtoTableList)) {
this.dtoTableList = new ArrayList<>();
}
if (!this.dtoTableList.contains(dtoTable)) {
this.dtoTableList.add(dtoTable);
}
return this;
}
@Deprecated()
public OO0OOOO0OO0O00O0 setUpdateColumn(String type, String tableName, O0O00OO00O0O0OO0 dibootColumnExt) {
if (V.isEmpty(updateColumnMap)) {
this.updateColumnMap = new HashMap<>(16);
}
Map> colNameMap = this.updateColumnMap.get(tableName);
if (V.isEmpty(colNameMap)) {
colNameMap = new HashMap<>(16);
}
Map typeMap = colNameMap.get(dibootColumnExt.getColName());
if (V.isEmpty(typeMap)) {
typeMap = new HashMap<>(16);
}
typeMap.put(type, dibootColumnExt);
colNameMap.put(dibootColumnExt.getColName(), typeMap);
this.updateColumnMap.put(tableName, colNameMap);
return this;
}
@Deprecated()
public OO0OOOO0OO0O00O0 setRemoveColumn(String tableName, O0O00OO00O0O0OO0 dibootColumnExt) {
if (V.isEmpty(removeColumnMap)) {
this.removeColumnMap = new HashMap<>(16);
}
List dibootColumnExts = this.removeColumnMap.get(tableName);
if (V.isEmpty(dibootColumnExts)) {
dibootColumnExts = new ArrayList<>();
}
dibootColumnExts.add(dibootColumnExt);
this.removeColumnMap.put(tableName, dibootColumnExts);
return this;
}
@Deprecated()
public OO0OOOO0OO0O00O0 setTargetBindTable(String targetTableName) {
if (V.isEmpty(this.targetBindMap)) {
this.targetBindMap = new HashMap<>(16);
}
this.targetBindMap.put(targetTableName, this.updateColumnMap);
return this;
}
@Deprecated()
public boolean isAllEmpty() {
return V.isEmpty(getDtoTableList()) && V.isEmpty(getDetailVOTableList()) && V.isEmpty(getListVOTableList());
}
@Deprecated()
public Map getTableName2ExtMap() {
if (isAllEmpty()) {
return Collections.emptyMap();
}
Map table2Map = new HashMap<>();
if (V.notEmpty(this.detailVOTableList)) {
for (String tableName : this.detailVOTableList) {
if (!table2Map.containsKey(tableName)) {
table2Map.put(tableName, O0O00OO000O0OO0O.ll1l1111111111l(tableName));
}
}
}
if (V.notEmpty(this.listVOTableList)) {
for (String tableName : this.listVOTableList) {
if (!table2Map.containsKey(tableName)) {
table2Map.put(tableName, O0O00OO000O0OO0O.ll1l1111111111l(tableName));
}
}
}
if (V.notEmpty(this.dtoTableList)) {
for (String tableName : this.dtoTableList) {
if (!table2Map.containsKey(tableName)) {
table2Map.put(tableName, O0O00OO000O0OO0O.ll1l1111111111l(tableName));
}
}
}
return table2Map;
}
}