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


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

import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record4;
import org.jooq.Row4;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_role_url.roleid</code>.
     */
    public void setRoleid(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_role_url.roleid</code>.
     */
    public String getRoleid() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_role_url.url</code>. 对应sys_urls的url
     */
    public void setUrl(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_role_url.url</code>. 对应sys_urls的url
     */
    public String getUrl() {
        return (String) get(2);
    }

    /**
     * Setter for <code>yx.sys_role_url.urltypes</code>. 1:url,2:菜单
     */
    public void setUrltypes(Integer value) {
        set(3, value);
    }

    /**
     * Getter for <code>yx.sys_role_url.urltypes</code>. 1:url,2:菜单
     */
    public Integer getUrltypes() {
        return (Integer) get(3);
    }

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

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

    // -------------------------------------------------------------------------
    // Record4 type implementation
    // -------------------------------------------------------------------------

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

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

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

    @Override
    public Field<String> field2() {
        return SysRoleUrl.SYS_ROLE_URL.ROLEID;
    }

    @Override
    public Field<String> field3() {
        return SysRoleUrl.SYS_ROLE_URL.URL;
    }

    @Override
    public Field<Integer> field4() {
        return SysRoleUrl.SYS_ROLE_URL.URLTYPES;
    }

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

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

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

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

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

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

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

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

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

    @Override
    public SysRoleUrlRecord value2(String value) {
        setRoleid(value);
        return this;
    }

    @Override
    public SysRoleUrlRecord value3(String value) {
        setUrl(value);
        return this;
    }

    @Override
    public SysRoleUrlRecord value4(Integer value) {
        setUrltypes(value);
        return this;
    }

    @Override
    public SysRoleUrlRecord values(String value1, String value2, String value3, Integer value4) {
        value1(value1);
        value2(value2);
        value3(value3);
        value4(value4);
        return this;
    }

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

    /**
     * Create a detached SysRoleUrlRecord
     */
    public SysRoleUrlRecord() {
        super(SysRoleUrl.SYS_ROLE_URL);
    }

    /**
     * Create a detached, initialised SysRoleUrlRecord
     */
    public SysRoleUrlRecord(String id, String roleid, String url, Integer urltypes) {
        super(SysRoleUrl.SYS_ROLE_URL);

        setId(id);
        setRoleid(roleid);
        setUrl(url);
        setUrltypes(urltypes);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysRoleUrlRecord
     */
    public SysRoleUrlRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleUrl value) {
        super(SysRoleUrl.SYS_ROLE_URL);

        if (value != null) {
            setId(value.getId());
            setRoleid(value.getRoleid());
            setUrl(value.getUrl());
            setUrltypes(value.getUrltypes());
            resetChangedOnNotNull();
        }
    }
}
