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


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

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

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