/*
 * 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.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 SysUrlsRecord extends UpdatableRecordImpl<SysUrlsRecord> implements Record7<String, Integer, Integer, Integer, String, String, String> {

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

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

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

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

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

    @Override
    public Field<Integer> field2() {
        return SysUrls.SYS_URLS.PID;
    }

    @Override
    public Field<Integer> field3() {
        return SysUrls.SYS_URLS.TYPES;
    }

    @Override
    public Field<Integer> field4() {
        return SysUrls.SYS_URLS.LEVEL;
    }

    @Override
    public Field<String> field5() {
        return SysUrls.SYS_URLS.URL;
    }

    @Override
    public Field<String> field6() {
        return SysUrls.SYS_URLS.NAME;
    }

    @Override
    public Field<String> field7() {
        return SysUrls.SYS_URLS.METHOD;
    }

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

    @Override
    public Integer component2() {
        return getPid();
    }

    @Override
    public Integer component3() {
        return getTypes();
    }

    @Override
    public Integer component4() {
        return getLevel();
    }

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

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

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

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

    @Override
    public Integer value2() {
        return getPid();
    }

    @Override
    public Integer value3() {
        return getTypes();
    }

    @Override
    public Integer value4() {
        return getLevel();
    }

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

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

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

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

    @Override
    public SysUrlsRecord value2(Integer value) {
        setPid(value);
        return this;
    }

    @Override
    public SysUrlsRecord value3(Integer value) {
        setTypes(value);
        return this;
    }

    @Override
    public SysUrlsRecord value4(Integer value) {
        setLevel(value);
        return this;
    }

    @Override
    public SysUrlsRecord value5(String value) {
        setUrl(value);
        return this;
    }

    @Override
    public SysUrlsRecord value6(String value) {
        setName(value);
        return this;
    }

    @Override
    public SysUrlsRecord value7(String value) {
        setMethod(value);
        return this;
    }

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

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