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


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

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

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