ContentVoBase.java 5.57 KB
package com.viontech.fanxing.commons.vobase;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.viontech.fanxing.commons.base.VoInterface;
import com.viontech.fanxing.commons.model.Content;
import java.util.ArrayList;

public class ContentVoBase extends Content implements VoInterface<Content> {
    private Content content;

    @JsonIgnore
    private ArrayList<Long> id_arr;

    @JsonIgnore
    private Long id_gt;

    @JsonIgnore
    private Long id_lt;

    @JsonIgnore
    private Long id_gte;

    @JsonIgnore
    private Long id_lte;

    @JsonIgnore
    private ArrayList<String> unid_arr;

    @JsonIgnore
    private String unid_like;

    @JsonIgnore
    private ArrayList<String> name_arr;

    @JsonIgnore
    private String name_like;

    @JsonIgnore
    private Boolean type_null;

    @JsonIgnore
    private ArrayList<String> type_arr;

    @JsonIgnore
    private String type_like;

    @JsonIgnore
    private Boolean content_null;

    @JsonIgnore
    private ArrayList<String> content_arr;

    @JsonIgnore
    private String content_like;

    public ContentVoBase() {
        this(null);
    }

    public ContentVoBase(Content content) {
        if(content == null) {
            content = new Content();
        }
        this.content = content;
    }

    @JsonIgnore
    public Content getModel() {
        return content;
    }

    public void setModel(Content content) {
        this.content = content;
    }

    public ArrayList<Long> getId_arr() {
        return id_arr;
    }

    public void setId_arr(ArrayList<Long> id_arr) {
        this.id_arr = id_arr;
    }

    public Long getId_gt() {
        return id_gt;
    }

    public void setId_gt(Long id_gt) {
        this.id_gt = id_gt;
    }

    public Long getId_lt() {
        return id_lt;
    }

    public void setId_lt(Long id_lt) {
        this.id_lt = id_lt;
    }

    public Long getId_gte() {
        return id_gte;
    }

    public void setId_gte(Long id_gte) {
        this.id_gte = id_gte;
    }

    public Long getId_lte() {
        return id_lte;
    }

    public void setId_lte(Long id_lte) {
        this.id_lte = id_lte;
    }

    public Long getId() {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        return this.getModel().getId();
    }

    public void setId(Long id) {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        this.getModel().setId(id);
    }

    public ArrayList<String> getUnid_arr() {
        return unid_arr;
    }

    public void setUnid_arr(ArrayList<String> unid_arr) {
        this.unid_arr = unid_arr;
    }

    public String getUnid_like() {
        return unid_like;
    }

    public void setUnid_like(String unid_like) {
        this.unid_like = unid_like;
    }

    public String getUnid() {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        return this.getModel().getUnid();
    }

    public void setUnid(String unid) {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        this.getModel().setUnid(unid);
    }

    public ArrayList<String> getName_arr() {
        return name_arr;
    }

    public void setName_arr(ArrayList<String> name_arr) {
        this.name_arr = name_arr;
    }

    public String getName_like() {
        return name_like;
    }

    public void setName_like(String name_like) {
        this.name_like = name_like;
    }

    public String getName() {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        return this.getModel().getName();
    }

    public void setName(String name) {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        this.getModel().setName(name);
    }

    public Boolean getType_null() {
        return type_null;
    }

    public void setType_null(Boolean type_null) {
        this.type_null = type_null;
    }

    public ArrayList<String> getType_arr() {
        return type_arr;
    }

    public void setType_arr(ArrayList<String> type_arr) {
        this.type_arr = type_arr;
    }

    public String getType_like() {
        return type_like;
    }

    public void setType_like(String type_like) {
        this.type_like = type_like;
    }

    public String getType() {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        return this.getModel().getType();
    }

    public void setType(String type) {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        this.getModel().setType(type);
    }

    public Boolean getContent_null() {
        return content_null;
    }

    public void setContent_null(Boolean content_null) {
        this.content_null = content_null;
    }

    public ArrayList<String> getContent_arr() {
        return content_arr;
    }

    public void setContent_arr(ArrayList<String> content_arr) {
        this.content_arr = content_arr;
    }

    public String getContent_like() {
        return content_like;
    }

    public void setContent_like(String content_like) {
        this.content_like = content_like;
    }

    public String getContent() {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        return this.getModel().getContent();
    }

    public void setContent(String content) {
        if(getModel() == null ){
            throw new RuntimeException("model is null");
        }
        this.getModel().setContent(content);
    }
}