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


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

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


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_urls.pid</code>. 父类id
     */
    public void setPid(Integer value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_urls.pid</code>. 父类id
     */
    public Integer getPid() {
        return (Integer) get(1);
    }

    /**
     * Setter for <code>yx.sys_urls.types</code>. 1:url,2:菜单
     */
    public void setTypes(Integer value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_urls.types</code>. 1:url,2:菜单
     */
    public Integer getTypes() {
        return (Integer) get(2);
    }

    /**
     * Setter for <code>yx.sys_urls.level</code>. 0:url,1:一级菜单, 2:二级菜单
     */
    public void setLevel(Integer value) {
        set(3, value);
    }

    /**
     * Getter for <code>yx.sys_urls.level</code>. 0:url,1:一级菜单, 2:二级菜单
     */
    public Integer getLevel() {
        return (Integer) get(3);
    }

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

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

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

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

    /**
     * Setter for <code>yx.sys_urls.method</code>.
     */
    public void setMethod(String value) {
        set(6, value);
    }

    /**
     * Getter for <code>yx.sys_urls.method</code>.
     */
    public String getMethod() {
        return (String) get(6);
    }

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

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

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

    /**
     * Create a detached SysUrlsRecord
     */
    public SysUrlsRecord() {
        super(SysUrls.SYS_URLS);
    }

    /**
     * Create a detached, initialised SysUrlsRecord
     */
    public SysUrlsRecord(String id, Integer pid, Integer types, Integer level, String url, String name, String method) {
        super(SysUrls.SYS_URLS);

        setId(id);
        setPid(pid);
        setTypes(types);
        setLevel(level);
        setUrl(url);
        setName(name);
        setMethod(method);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysUrlsRecord
     */
    public SysUrlsRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysUrls value) {
        super(SysUrls.SYS_URLS);

        if (value != null) {
            setId(value.getId());
            setPid(value.getPid());
            setTypes(value.getTypes());
            setLevel(value.getLevel());
            setUrl(value.getUrl());
            setName(value.getName());
            setMethod(value.getMethod());
            resetChangedOnNotNull();
        }
    }
}
