com.diboot.devtools.v2.O0O00OO00O0O0OO0 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.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
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 lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.Map;
@Getter
@Setter
@TableName("diboot_column_ext")
@Accessors(chain = true)
@Deprecated()
public class O0O00OO00O0O0OO0 extends BaseEntity {
private static final long serialVersionUID = 1100101101000000101L;
public static enum OBJ_BND_TP {
REF_TARGET_BIND_LIST, SELF_BIND_OBJECT
}
@TableField
private String tableName;
@TableField
private String colName;
@TableField
private String refType;
@TableField
private String refRelationship;
@TableField
private String refTable;
@TableField
private String refColumn;
@TableField
private String asColumn;
@Deprecated
@TableField
private boolean onTargetBind = false;
@TableField
private String objectBind;
@TableField(exist = false)
private String oldObjectBind;
@TableField
private String formType;
@TableField
private String extensions;
@TableField(exist = false)
private boolean refTreeStruct = false;
@TableField(exist = false)
private String refPrimaryFieldName;
@TableField(exist = false)
private String oldExtensions;
@TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NOT_NULL)
private Date updateTime;
@Deprecated()
public String getAsColumnFieldName() {
if (V.isEmpty(asColumn)) {
return asColumn;
}
return O00O00OO0000OO0O.lllll11ll1111l1(asColumn);
}
@Deprecated()
public void setObjectBindList(String[] objectBindList) {
if (V.isEmpty(objectBindList)) {
this.objectBind = "";
return;
}
this.objectBind = S.join(objectBindList, ",");
}
@Deprecated()
public String[] getObjectBindList() {
if (V.isEmpty(objectBind)) {
return new String[] {};
}
return S.split(objectBind, ",");
}
@Deprecated()
public String[] getOldObjectBindList() {
if (V.isEmpty(oldObjectBind)) {
return new String[] {};
}
return S.split(oldObjectBind, ",");
}
@Deprecated()
public OO00OOO0OOO0OOOO getRefTableProfile() {
if (V.isEmpty(refTable)) {
return null;
}
return O0O00OO000O0OO0O.ll1l1111111111l(refTable);
}
@Deprecated()
public String getRefTableClassName() {
OO00OOO0OOO0OOOO tempProfile = getRefTableProfile();
if (tempProfile == null) {
return null;
}
return tempProfile.getClassName();
}
@Deprecated()
public String getFromExtensions(String key) {
if (V.isEmpty(extensions)) {
return null;
}
Map extensionMap = JSON.toMap(extensions);
return extensionMap.get(key);
}
}