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


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

import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record9;
import org.jooq.Row9;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_resource.parent_id</code>.
     */
    public void setParentId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_resource.parent_id</code>.
     */
    public String getParentId() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_resource.level</code>. 菜单排列顺序
     */
    public void setLevel(Short value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_resource.level</code>. 菜单排列顺序
     */
    public Short getLevel() {
        return (Short) get(2);
    }

    /**
     * Setter for <code>yx.sys_resource.name</code>.
     */
    public void setName(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>yx.sys_resource.name</code>.
     */
    public String getName() {
        return (String) get(3);
    }

    /**
     * Setter for <code>yx.sys_resource.types</code>. 资源类型
     */
    public void setTypes(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>yx.sys_resource.types</code>. 资源类型
     */
    public String getTypes() {
        return (String) get(4);
    }

    /**
     * Setter for <code>yx.sys_resource.url</code>.
     */
    public void setUrl(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>yx.sys_resource.url</code>.
     */
    public String getUrl() {
        return (String) get(5);
    }

    /**
     * Setter for <code>yx.sys_resource.icon</code>. 菜单图标
     */
    public void setIcon(String value) {
        set(6, value);
    }

    /**
     * Getter for <code>yx.sys_resource.icon</code>. 菜单图标
     */
    public String getIcon() {
        return (String) get(6);
    }

    /**
     * Setter for <code>yx.sys_resource.ishide</code>. 是否折叠隐藏
     */
    public void setIshide(Byte value) {
        set(7, value);
    }

    /**
     * Getter for <code>yx.sys_resource.ishide</code>. 是否折叠隐藏
     */
    public Byte getIshide() {
        return (Byte) get(7);
    }

    /**
     * Setter for <code>yx.sys_resource.description</code>.
     */
    public void setDescription(String value) {
        set(8, value);
    }

    /**
     * Getter for <code>yx.sys_resource.description</code>.
     */
    public String getDescription() {
        return (String) get(8);
    }

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

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

    // -------------------------------------------------------------------------
    // Record9 type implementation
    // -------------------------------------------------------------------------

    @Override
    public Row9<String, String, Short, String, String, String, String, Byte, String> fieldsRow() {
        return (Row9) super.fieldsRow();
    }

    @Override
    public Row9<String, String, Short, String, String, String, String, Byte, String> valuesRow() {
        return (Row9) super.valuesRow();
    }

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

    @Override
    public Field<String> field2() {
        return SysResource.SYS_RESOURCE.PARENT_ID;
    }

    @Override
    public Field<Short> field3() {
        return SysResource.SYS_RESOURCE.LEVEL;
    }

    @Override
    public Field<String> field4() {
        return SysResource.SYS_RESOURCE.NAME;
    }

    @Override
    public Field<String> field5() {
        return SysResource.SYS_RESOURCE.TYPES;
    }

    @Override
    public Field<String> field6() {
        return SysResource.SYS_RESOURCE.URL;
    }

    @Override
    public Field<String> field7() {
        return SysResource.SYS_RESOURCE.ICON;
    }

    @Override
    public Field<Byte> field8() {
        return SysResource.SYS_RESOURCE.ISHIDE;
    }

    @Override
    public Field<String> field9() {
        return SysResource.SYS_RESOURCE.DESCRIPTION;
    }

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

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

    @Override
    public Short component3() {
        return getLevel();
    }

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

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

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

    @Override
    public String component7() {
        return getIcon();
    }

    @Override
    public Byte component8() {
        return getIshide();
    }

    @Override
    public String component9() {
        return getDescription();
    }

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

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

    @Override
    public Short value3() {
        return getLevel();
    }

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

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

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

    @Override
    public String value7() {
        return getIcon();
    }

    @Override
    public Byte value8() {
        return getIshide();
    }

    @Override
    public String value9() {
        return getDescription();
    }

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

    @Override
    public SysResourceRecord value2(String value) {
        setParentId(value);
        return this;
    }

    @Override
    public SysResourceRecord value3(Short value) {
        setLevel(value);
        return this;
    }

    @Override
    public SysResourceRecord value4(String value) {
        setName(value);
        return this;
    }

    @Override
    public SysResourceRecord value5(String value) {
        setTypes(value);
        return this;
    }

    @Override
    public SysResourceRecord value6(String value) {
        setUrl(value);
        return this;
    }

    @Override
    public SysResourceRecord value7(String value) {
        setIcon(value);
        return this;
    }

    @Override
    public SysResourceRecord value8(Byte value) {
        setIshide(value);
        return this;
    }

    @Override
    public SysResourceRecord value9(String value) {
        setDescription(value);
        return this;
    }

    @Override
    public SysResourceRecord values(String value1, String value2, Short value3, String value4, String value5, String value6, String value7, Byte value8, String value9) {
        value1(value1);
        value2(value2);
        value3(value3);
        value4(value4);
        value5(value5);
        value6(value6);
        value7(value7);
        value8(value8);
        value9(value9);
        return this;
    }

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

    /**
     * Create a detached SysResourceRecord
     */
    public SysResourceRecord() {
        super(SysResource.SYS_RESOURCE);
    }

    /**
     * Create a detached, initialised SysResourceRecord
     */
    public SysResourceRecord(String id, String parentId, Short level, String name, String types, String url, String icon, Byte ishide, String description) {
        super(SysResource.SYS_RESOURCE);

        setId(id);
        setParentId(parentId);
        setLevel(level);
        setName(name);
        setTypes(types);
        setUrl(url);
        setIcon(icon);
        setIshide(ishide);
        setDescription(description);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysResourceRecord
     */
    public SysResourceRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysResource value) {
        super(SysResource.SYS_RESOURCE);

        if (value != null) {
            setId(value.getId());
            setParentId(value.getParentId());
            setLevel(value.getLevel());
            setName(value.getName());
            setTypes(value.getTypes());
            setUrl(value.getUrl());
            setIcon(value.getIcon());
            setIshide(value.getIshide());
            setDescription(value.getDescription());
            resetChangedOnNotNull();
        }
    }
}
