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


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

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


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

    private static final long serialVersionUID = 1L;

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

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

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

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

    /**
     * Setter for <code>yx.sys_menu.level</code>.
     */
    public void setLevel(Integer value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_menu.level</code>.
     */
    public Integer getLevel() {
        return (Integer) get(2);
    }

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

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

    /**
     * Setter for <code>yx.sys_menu.types</code>. menu,url
     */
    public void setTypes(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>yx.sys_menu.types</code>. menu,url
     */
    public String getTypes() {
        return (String) get(4);
    }

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

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

    /**
     * Setter for <code>yx.sys_menu.icon</code>.
     */
    public void setIcon(String value) {
        set(6, value);
    }

    /**
     * Getter for <code>yx.sys_menu.icon</code>.
     */
    public String getIcon() {
        return (String) get(6);
    }

    /**
     * Setter for <code>yx.sys_menu.is_open</code>.
     */
    public void setIsOpen(Integer value) {
        set(7, value);
    }

    /**
     * Getter for <code>yx.sys_menu.is_open</code>.
     */
    public Integer getIsOpen() {
        return (Integer) get(7);
    }

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

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

    /**
     * Setter for <code>yx.sys_menu.sort</code>.
     */
    public void setSort(Integer value) {
        set(9, value);
    }

    /**
     * Getter for <code>yx.sys_menu.sort</code>.
     */
    public Integer getSort() {
        return (Integer) get(9);
    }

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

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

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

    /**
     * Create a detached SysMenuRecord
     */
    public SysMenuRecord() {
        super(SysMenu.SYS_MENU);
    }

    /**
     * Create a detached, initialised SysMenuRecord
     */
    public SysMenuRecord(String id, String parentId, Integer level, String name, String types, String url, String icon, Integer isOpen, String description, Integer sort) {
        super(SysMenu.SYS_MENU);

        setId(id);
        setParentId(parentId);
        setLevel(level);
        setName(name);
        setTypes(types);
        setUrl(url);
        setIcon(icon);
        setIsOpen(isOpen);
        setDescription(description);
        setSort(sort);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysMenuRecord
     */
    public SysMenuRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysMenu value) {
        super(SysMenu.SYS_MENU);

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