/*
 * This file is generated by jOOQ.
 */
package jj.tech.paolu.repository.jooq.tables.records;


import java.time.LocalDateTime;

import jj.tech.paolu.repository.jooq.tables.SysConfig;

import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class SysConfigRecord extends UpdatableRecordImpl<SysConfigRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>yx.sys_config.id</code>.
     */
    public void setId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>yx.sys_config.id</code>.
     */
    public String getId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>yx.sys_config.subgroup</code>. 分组
     */
    public void setSubgroup(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_config.subgroup</code>. 分组
     */
    public String getSubgroup() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_config.k</code>. 键
     */
    public void setK(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_config.k</code>. 键
     */
    public String getK() {
        return (String) get(2);
    }

    /**
     * Setter for <code>yx.sys_config.val</code>. 值
     */
    public void setVal(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>yx.sys_config.val</code>. 值
     */
    public String getVal() {
        return (String) get(3);
    }

    /**
     * Setter for <code>yx.sys_config.admin_id</code>. 管理员id
     */
    public void setAdminId(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>yx.sys_config.admin_id</code>. 管理员id
     */
    public String getAdminId() {
        return (String) get(4);
    }

    /**
     * Setter for <code>yx.sys_config.adminname</code>. 管理员名称
     */
    public void setAdminname(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>yx.sys_config.adminname</code>. 管理员名称
     */
    public String getAdminname() {
        return (String) get(5);
    }

    /**
     * Setter for <code>yx.sys_config.edittime</code>. 最后编辑时间
     */
    public void setEdittime(LocalDateTime value) {
        set(6, value);
    }

    /**
     * Getter for <code>yx.sys_config.edittime</code>. 最后编辑时间
     */
    public LocalDateTime getEdittime() {
        return (LocalDateTime) get(6);
    }

    // -------------------------------------------------------------------------
    // Primary key information
    // -------------------------------------------------------------------------

    @Override
    public Record1<String> key() {
        return (Record1) super.key();
    }

    // -------------------------------------------------------------------------
    // Constructors
    // -------------------------------------------------------------------------

    /**
     * Create a detached SysConfigRecord
     */
    public SysConfigRecord() {
        super(SysConfig.SYS_CONFIG);
    }

    /**
     * Create a detached, initialised SysConfigRecord
     */
    public SysConfigRecord(String id, String subgroup, String k, String val, String adminId, String adminname, LocalDateTime edittime) {
        super(SysConfig.SYS_CONFIG);

        setId(id);
        setSubgroup(subgroup);
        setK(k);
        setVal(val);
        setAdminId(adminId);
        setAdminname(adminname);
        setEdittime(edittime);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysConfigRecord
     */
    public SysConfigRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysConfig value) {
        super(SysConfig.SYS_CONFIG);

        if (value != null) {
            setId(value.getId());
            setSubgroup(value.getSubgroup());
            setK(value.getK());
            setVal(value.getVal());
            setAdminId(value.getAdminId());
            setAdminname(value.getAdminname());
            setEdittime(value.getEdittime());
            resetChangedOnNotNull();
        }
    }
}
