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


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

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


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_role.rolename</code>.
     */
    public void setRolename(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_role.rolename</code>.
     */
    public String getRolename() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_role.department</code>.
     */
    public void setDepartment(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_role.department</code>.
     */
    public String getDepartment() {
        return (String) get(2);
    }

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

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

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

    /**
     * Create a detached SysRoleRecord
     */
    public SysRoleRecord() {
        super(SysRole.SYS_ROLE);
    }

    /**
     * Create a detached, initialised SysRoleRecord
     */
    public SysRoleRecord(String id, String rolename, String department) {
        super(SysRole.SYS_ROLE);

        setId(id);
        setRolename(rolename);
        setDepartment(department);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysRoleRecord
     */
    public SysRoleRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysRole value) {
        super(SysRole.SYS_ROLE);

        if (value != null) {
            setId(value.getId());
            setRolename(value.getRolename());
            setDepartment(value.getDepartment());
            resetChangedOnNotNull();
        }
    }
}
