package io.dataease.dto;

import io.dataease.base.domain.DatasetTableField;
import io.dataease.base.domain.PanelViewLinkage;
import io.dataease.base.domain.PanelViewLinkageField;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: wangjiahao
 * Date: 8/4/21
 * Description:
 */
public class PanelViewLinkageDTO extends PanelViewLinkage {

    //目标视图名称
    private String targetViewName;

    //关联状态
    private boolean linkageActive = false;

    private List<PanelViewLinkageField> linkageFields = new ArrayList<>();


    private List<DatasetTableField> targetViewFields = new ArrayList<>();

    private String tableId;



    public PanelViewLinkageDTO() {

    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public List<DatasetTableField> getTargetViewFields() {
        return targetViewFields;
    }

    public void setTargetViewFields(List<DatasetTableField> targetViewFields) {
        this.targetViewFields = targetViewFields;
    }

    public String getTargetViewName() {
        return targetViewName;
    }

    public void setTargetViewName(String targetViewName) {
        this.targetViewName = targetViewName;
    }

    public PanelViewLinkageDTO(boolean linkageActive) {
        this.linkageActive = linkageActive;
    }

    public boolean isLinkageActive() {
        return linkageActive;
    }

    public void setLinkageActive(boolean linkageActive) {
        this.linkageActive = linkageActive;
    }

    public List<PanelViewLinkageField> getLinkageFields() {
        return linkageFields;
    }

    public void setLinkageFields(List<PanelViewLinkageField> linkageFields) {
        this.linkageFields = linkageFields;
    }
}
