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


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

import org.jooq.Record2;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

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

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

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

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

    /**
     * Setter for <code>yx.sys_role_resource.resid</code>.
     */
    public void setResid(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_role_resource.resid</code>.
     */
    public String getResid() {
        return (String) get(2);
    }

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

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

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

    /**
     * Create a detached SysRoleResourceRecord
     */
    public SysRoleResourceRecord() {
        super(SysRoleResource.SYS_ROLE_RESOURCE);
    }

    /**
     * Create a detached, initialised SysRoleResourceRecord
     */
    public SysRoleResourceRecord(String id, String roleid, String resid) {
        super(SysRoleResource.SYS_ROLE_RESOURCE);

        setId(id);
        setRoleid(roleid);
        setResid(resid);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysRoleResourceRecord
     */
    public SysRoleResourceRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleResource value) {
        super(SysRoleResource.SYS_ROLE_RESOURCE);

        if (value != null) {
            setId(value.getId());
            setRoleid(value.getRoleid());
            setResid(value.getResid());
            resetChangedOnNotNull();
        }
    }
}
