All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.diboot.devtools.v2.O000000O0O0OO000 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.entity.BaseEntity; import com.diboot.core.util.JSON; import com.diboot.core.util.S; import com.diboot.core.util.V; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import java.util.List; import java.util.Map; @Getter @Setter @Slf4j @Deprecated() public class O000000O0O0OO000 extends BaseEntity { private static final long serialVersionUID = 1111110101111101110L; private OOO00OO00000O00O referenceField; private String tableName; private String colName; private String oldColName; private String oldFieldName; private String fieldName; private String fieldLabel; private String colType; private int colIndex = -1; private int colLength = 0; private int decimal = 0; private boolean notnull = false; private String defaultValue; private String keyType; private String javaType; private O0O00OO00O0O0OO0 columnExt; private String afterCol; private String fieldPackagingType; private int newColIndex; private boolean autoIncrement; private boolean primaryKey; private Map extensionMap; private String example; @JsonIgnore private String refTableAlias; private O000000O0O0OO000 oldDibootColumn; @Deprecated() public void setColName(String colName) { this.colName = colName; this.fieldName = O00O00OO0000OO0O.lllll11ll1111l1(colName); } @Deprecated() public String getFieldName() { if (V.notEmpty(fieldName)) { return fieldName; } return O00O00OO0000OO0O.lllll11ll1111l1(colName); } @Deprecated() public String getFieldPackagingType() { if (V.notEmpty(this.fieldPackagingType)) { return this.fieldPackagingType; } if (V.isEmpty(colType)) { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("5pyq6IO96K+G5Yir5YiX5a6a5LmJ57G75Z6L77yBY29sTmFtZT0=") + colName); } return O00O00OO0000OO0O.l1111l1l11ll11l(colName, colType, colLength, decimal); } @JsonIgnore @Deprecated() public String getFieldType() { String javaType = getFieldPackagingType(); if (isNotnull() && V.notEmpty(getDefaultValue())) { if (OOO0OO00O00O00OO.l11llll1ll11ll1("Qm9vbGVhbg==").equals(javaType)) { javaType = OOO0OO00O00O00OO.l11llll1ll11ll1("Ym9vbGVhbg=="); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("TG9uZw==").equals(javaType)) { javaType = OOO0OO00O00O00OO.l11llll1ll11ll1("bG9uZw=="); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("TG9uZw==").equals(javaType)) { javaType = OOO0OO00O00O00OO.l11llll1ll11ll1("bG9uZw=="); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("SW50ZWdlcg==").equals(javaType)) { javaType = OOO0OO00O00O00OO.l11llll1ll11ll1("aW50"); } else if (OOO0OO00O00O00OO.l11llll1ll11ll1("RG91Ymxl").equals(javaType)) { javaType = OOO0OO00O00O00OO.l11llll1ll11ll1("ZG91Ymxl"); } } return javaType; } @Deprecated() public void setColumnExt(O0O00OO00O0O0OO0 columnExt) { this.columnExt = columnExt; if (columnExt != null && V.notEmpty(columnExt.getExtensions())) { Map map = JSON.toMap(columnExt.getExtensions()); this.extensionMap = map; } } @Deprecated() public Map getExtensionMap() { if (V.notEmpty(extensionMap)) { return extensionMap; } if (V.notEmpty(columnExt) && V.notEmpty(columnExt.getExtensions())) { Map map = JSON.toMap(columnExt.getExtensions()); return map; } return OOO0OOO0O0OO00O0.l1l1111lll11111(this); } @Deprecated() public void setExtensionMap(Map extensionMap) { this.extensionMap = extensionMap; if (this.columnExt == null) { return; } if (V.notEmpty(this.extensionMap)) { this.columnExt.setExtensions(JSON.stringify(this.extensionMap)); } else { this.columnExt.setExtensions(null); } } @Deprecated() public String getFromExtensionMap(String key) { Map extensionMap = getExtensionMap(); if (V.isEmpty(extensionMap) || !extensionMap.containsKey(key)) { return null; } return S.valueOf(extensionMap.get(key)); } @Deprecated() public void l11llllllll1l1l(OOO00OO00000O00O referenceField) { this.referenceField = referenceField; if (columnExt == null) { return; } columnExt.setRefType(referenceField.getRefType()); columnExt.setRefTable(referenceField.getRefTable()); columnExt.setRefColumn(referenceField.getRefColumn()); columnExt.setAsColumn(referenceField.getAsColumn()); } @Deprecated() public List getValidation() { return O00O00OO0000OO0O.l1l1l11l11l1ll1(this); } @Deprecated() public String getFormType() { return O00O00OO0000OO0O.l11111lll1llll1(this); } @Deprecated() public boolean isHasReference() { return columnExt != null && V.notEmpty(columnExt.getRefType()) && V.notEmpty(columnExt.getRefColumn()); } @Deprecated() public boolean isPrimaryKey() { return primaryKey || O0OO00OO0O0OO000.PRIMARY.name().equals(keyType); } private OO00OOO0OOO0OOOO tableProfile; @Override @Deprecated() public String toString() { return this.fieldName; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy