package io.gisbi.dataset.dao.auto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 数据集分组表
 * </p>
 *
 * @Author bi-coder
 * @since 2023-08-28
 */
@TableName("core_dataset_group")
public class CoreDatasetGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 应用ID
     */
    private String appId;

    /**
     * 父级ID
     */
    private Long pid;

    /**
     * 当前分组处于第几级
     */
    private Integer level;

    /**
     * node类型：folder or dataset
     */
    private String nodeType;

    /**
     * sql,union
     */
    private String type;

    /**
     * 连接模式：0-直连，1-同步(包括excel、api等数据存在de中的表)
     */
    private Integer mode;

    /**
     * 关联关系树
     */
    private String info;

    /**
     * 创建人ID
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * Quartz 实例 ID
     */
    private String qrtzInstance;

    /**
     * 同步状态
     */
    private String syncStatus;

    /**
     * 更新人ID
     */
    private String updateBy;

    /**
     * 最后同步时间
     */
    private Long lastUpdateTime;

    /**
     * 关联sql
     */
    private String unionSql;

    /**
     * 是否跨源
     */
    private Boolean isCross;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getNodeType() {
        return nodeType;
    }

    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getQrtzInstance() {
        return qrtzInstance;
    }

    public void setQrtzInstance(String qrtzInstance) {
        this.qrtzInstance = qrtzInstance;
    }

    public String getSyncStatus() {
        return syncStatus;
    }

    public void setSyncStatus(String syncStatus) {
        this.syncStatus = syncStatus;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Long lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getUnionSql() {
        return unionSql;
    }

    public void setUnionSql(String unionSql) {
        this.unionSql = unionSql;
    }

    public Boolean getIsCross() {
        return isCross;
    }

    public void setIsCross(Boolean isCross) {
        this.isCross = isCross;
    }

    @Override
    public String toString() {
        return "CoreDatasetGroup{" +
        "id = " + id +
        ", appId = " + appId +
        ", name = " + name +
        ", pid = " + pid +
        ", level = " + level +
        ", nodeType = " + nodeType +
        ", type = " + type +
        ", mode = " + mode +
        ", info = " + info +
        ", createBy = " + createBy +
        ", createTime = " + createTime +
        ", qrtzInstance = " + qrtzInstance +
        ", syncStatus = " + syncStatus +
        ", updateBy = " + updateBy +
        ", lastUpdateTime = " + lastUpdateTime +
        ", unionSql = " + unionSql +
        ", isCross = " + isCross +
        "}";
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
}
