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

cn.vertxup.erp.domain.tables.interfaces.IEDept Maven / Gradle / Ivy

/*
 * This file is generated by jOOQ.
 */
package cn.vertxup.erp.domain.tables.interfaces;


import io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo;

import java.io.Serializable;
import java.time.LocalDateTime;


import static io.github.jklingsporn.vertx.jooq.shared.internal.VertxPojo.*;
/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public interface IEDept extends VertxPojo, Serializable {

    /**
     * Setter for DB_ETERNAL.E_DEPT.KEY. 「key」- 部门主键
     */
    public IEDept setKey(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.KEY. 「key」- 部门主键
     */
    public String getKey();

    /**
     * Setter for DB_ETERNAL.E_DEPT.NAME. 「name」- 部门名称
     */
    public IEDept setName(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.NAME. 「name」- 部门名称
     */
    public String getName();

    /**
     * Setter for DB_ETERNAL.E_DEPT.CODE. 「code」- 部门编号
     */
    public IEDept setCode(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.CODE. 「code」- 部门编号
     */
    public String getCode();

    /**
     * Setter for DB_ETERNAL.E_DEPT.MANAGER_ID. 「managerId」- 部门经理
     */
    public IEDept setManagerId(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.MANAGER_ID. 「managerId」- 部门经理
     */
    public String getManagerId();

    /**
     * Setter for DB_ETERNAL.E_DEPT.MANAGER_NAME. 「managerName」-
     * 部门名称
     */
    public IEDept setManagerName(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.MANAGER_NAME. 「managerName」-
     * 部门名称
     */
    public String getManagerName();

    /**
     * Setter for DB_ETERNAL.E_DEPT.COMPANY_ID. 「companyId」- 所属公司
     */
    public IEDept setCompanyId(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.COMPANY_ID. 「companyId」- 所属公司
     */
    public String getCompanyId();

    /**
     * Setter for DB_ETERNAL.E_DEPT.DEPT_ID. 「deptId」- 父部门
     */
    public IEDept setDeptId(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.DEPT_ID. 「deptId」- 父部门
     */
    public String getDeptId();

    /**
     * Setter for DB_ETERNAL.E_DEPT.COMMENT. 「comment」- 部门备注
     */
    public IEDept setComment(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.COMMENT. 「comment」- 部门备注
     */
    public String getComment();

    /**
     * Setter for DB_ETERNAL.E_DEPT.METADATA. 「metadata」- 附加配置
     */
    public IEDept setMetadata(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.METADATA. 「metadata」- 附加配置
     */
    public String getMetadata();

    /**
     * Setter for DB_ETERNAL.E_DEPT.ACTIVE. 「active」- 是否启用
     */
    public IEDept setActive(Boolean value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.ACTIVE. 「active」- 是否启用
     */
    public Boolean getActive();

    /**
     * Setter for DB_ETERNAL.E_DEPT.SIGMA. 「sigma」- 统一标识
     */
    public IEDept setSigma(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.SIGMA. 「sigma」- 统一标识
     */
    public String getSigma();

    /**
     * Setter for DB_ETERNAL.E_DEPT.LANGUAGE. 「language」- 使用的语言
     */
    public IEDept setLanguage(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.LANGUAGE. 「language」- 使用的语言
     */
    public String getLanguage();

    /**
     * Setter for DB_ETERNAL.E_DEPT.CREATED_AT. 「createdAt」- 创建时间
     */
    public IEDept setCreatedAt(LocalDateTime value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.CREATED_AT. 「createdAt」- 创建时间
     */
    public LocalDateTime getCreatedAt();

    /**
     * Setter for DB_ETERNAL.E_DEPT.CREATED_BY. 「createdBy」- 创建人
     */
    public IEDept setCreatedBy(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.CREATED_BY. 「createdBy」- 创建人
     */
    public String getCreatedBy();

    /**
     * Setter for DB_ETERNAL.E_DEPT.UPDATED_AT. 「updatedAt」- 更新时间
     */
    public IEDept setUpdatedAt(LocalDateTime value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.UPDATED_AT. 「updatedAt」- 更新时间
     */
    public LocalDateTime getUpdatedAt();

    /**
     * Setter for DB_ETERNAL.E_DEPT.UPDATED_BY. 「updatedBy」- 更新人
     */
    public IEDept setUpdatedBy(String value);

    /**
     * Getter for DB_ETERNAL.E_DEPT.UPDATED_BY. 「updatedBy」- 更新人
     */
    public String getUpdatedBy();

    // -------------------------------------------------------------------------
    // FROM and INTO
    // -------------------------------------------------------------------------

    /**
     * Load data from another generated Record/POJO implementing the common
     * interface IEDept
     */
    public void from(IEDept from);

    /**
     * Copy data into another generated Record/POJO implementing the common
     * interface IEDept
     */
    public  E into(E into);

        @Override
        public default IEDept fromJson(io.vertx.core.json.JsonObject json) {
                setOrThrow(this::setKey,json::getString,"KEY","java.lang.String");
                setOrThrow(this::setName,json::getString,"NAME","java.lang.String");
                setOrThrow(this::setCode,json::getString,"CODE","java.lang.String");
                setOrThrow(this::setManagerId,json::getString,"MANAGER_ID","java.lang.String");
                setOrThrow(this::setManagerName,json::getString,"MANAGER_NAME","java.lang.String");
                setOrThrow(this::setCompanyId,json::getString,"COMPANY_ID","java.lang.String");
                setOrThrow(this::setDeptId,json::getString,"DEPT_ID","java.lang.String");
                setOrThrow(this::setComment,json::getString,"COMMENT","java.lang.String");
                setOrThrow(this::setMetadata,json::getString,"METADATA","java.lang.String");
                setOrThrow(this::setActive,json::getBoolean,"ACTIVE","java.lang.Boolean");
                setOrThrow(this::setSigma,json::getString,"SIGMA","java.lang.String");
                setOrThrow(this::setLanguage,json::getString,"LANGUAGE","java.lang.String");
                setOrThrow(this::setCreatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},"CREATED_AT","java.time.LocalDateTime");
                setOrThrow(this::setCreatedBy,json::getString,"CREATED_BY","java.lang.String");
                setOrThrow(this::setUpdatedAt,key -> {String s = json.getString(key); return s==null?null:java.time.LocalDateTime.parse(s);},"UPDATED_AT","java.time.LocalDateTime");
                setOrThrow(this::setUpdatedBy,json::getString,"UPDATED_BY","java.lang.String");
                return this;
        }


        @Override
        public default io.vertx.core.json.JsonObject toJson() {
                io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();
                json.put("KEY",getKey());
                json.put("NAME",getName());
                json.put("CODE",getCode());
                json.put("MANAGER_ID",getManagerId());
                json.put("MANAGER_NAME",getManagerName());
                json.put("COMPANY_ID",getCompanyId());
                json.put("DEPT_ID",getDeptId());
                json.put("COMMENT",getComment());
                json.put("METADATA",getMetadata());
                json.put("ACTIVE",getActive());
                json.put("SIGMA",getSigma());
                json.put("LANGUAGE",getLanguage());
                json.put("CREATED_AT",getCreatedAt()==null?null:getCreatedAt().toString());
                json.put("CREATED_BY",getCreatedBy());
                json.put("UPDATED_AT",getUpdatedAt()==null?null:getUpdatedAt().toString());
                json.put("UPDATED_BY",getUpdatedBy());
                return json;
        }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy