/*
 * 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.Field;
import org.jooq.Record1;
import org.jooq.Record7;
import org.jooq.Row7;
import org.jooq.impl.UpdatableRecordImpl;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class SysConfigRecord extends UpdatableRecordImpl<SysConfigRecord> implements Record7<String, String, String, String, String, String, LocalDateTime> {

    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();
    }

    // -------------------------------------------------------------------------
    // Record7 type implementation
    // -------------------------------------------------------------------------

    @Override
    public Row7<String, String, String, String, String, String, LocalDateTime> fieldsRow() {
        return (Row7) super.fieldsRow();
    }

    @Override
    public Row7<String, String, String, String, String, String, LocalDateTime> valuesRow() {
        return (Row7) super.valuesRow();
    }

    @Override
    public Field<String> field1() {
        return SysConfig.SYS_CONFIG.ID;
    }

    @Override
    public Field<String> field2() {
        return SysConfig.SYS_CONFIG.SUBGROUP;
    }

    @Override
    public Field<String> field3() {
        return SysConfig.SYS_CONFIG.K;
    }

    @Override
    public Field<String> field4() {
        return SysConfig.SYS_CONFIG.VAL;
    }

    @Override
    public Field<String> field5() {
        return SysConfig.SYS_CONFIG.ADMIN_ID;
    }

    @Override
    public Field<String> field6() {
        return SysConfig.SYS_CONFIG.ADMINNAME;
    }

    @Override
    public Field<LocalDateTime> field7() {
        return SysConfig.SYS_CONFIG.EDITTIME;
    }

    @Override
    public String component1() {
        return getId();
    }

    @Override
    public String component2() {
        return getSubgroup();
    }

    @Override
    public String component3() {
        return getK();
    }

    @Override
    public String component4() {
        return getVal();
    }

    @Override
    public String component5() {
        return getAdminId();
    }

    @Override
    public String component6() {
        return getAdminname();
    }

    @Override
    public LocalDateTime component7() {
        return getEdittime();
    }

    @Override
    public String value1() {
        return getId();
    }

    @Override
    public String value2() {
        return getSubgroup();
    }

    @Override
    public String value3() {
        return getK();
    }

    @Override
    public String value4() {
        return getVal();
    }

    @Override
    public String value5() {
        return getAdminId();
    }

    @Override
    public String value6() {
        return getAdminname();
    }

    @Override
    public LocalDateTime value7() {
        return getEdittime();
    }

    @Override
    public SysConfigRecord value1(String value) {
        setId(value);
        return this;
    }

    @Override
    public SysConfigRecord value2(String value) {
        setSubgroup(value);
        return this;
    }

    @Override
    public SysConfigRecord value3(String value) {
        setK(value);
        return this;
    }

    @Override
    public SysConfigRecord value4(String value) {
        setVal(value);
        return this;
    }

    @Override
    public SysConfigRecord value5(String value) {
        setAdminId(value);
        return this;
    }

    @Override
    public SysConfigRecord value6(String value) {
        setAdminname(value);
        return this;
    }

    @Override
    public SysConfigRecord value7(LocalDateTime value) {
        setEdittime(value);
        return this;
    }

    @Override
    public SysConfigRecord values(String value1, String value2, String value3, String value4, String value5, String value6, LocalDateTime value7) {
        value1(value1);
        value2(value2);
        value3(value3);
        value4(value4);
        value5(value5);
        value6(value6);
        value7(value7);
        return this;
    }

    // -------------------------------------------------------------------------
    // 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();
        }
    }
}
