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


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

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


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_admin_role.admin_id</code>.
     */
    public void setAdminId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_admin_role.admin_id</code>.
     */
    public String getAdminId() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_admin_role.role_id</code>.
     */
    public void setRoleId(Integer value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_admin_role.role_id</code>.
     */
    public Integer getRoleId() {
        return (Integer) get(2);
    }

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

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

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

    /**
     * Create a detached SysAdminRoleRecord
     */
    public SysAdminRoleRecord() {
        super(SysAdminRole.SYS_ADMIN_ROLE);
    }

    /**
     * Create a detached, initialised SysAdminRoleRecord
     */
    public SysAdminRoleRecord(String id, String adminId, Integer roleId) {
        super(SysAdminRole.SYS_ADMIN_ROLE);

        setId(id);
        setAdminId(adminId);
        setRoleId(roleId);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysAdminRoleRecord
     */
    public SysAdminRoleRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysAdminRole value) {
        super(SysAdminRole.SYS_ADMIN_ROLE);

        if (value != null) {
            setId(value.getId());
            setAdminId(value.getAdminId());
            setRoleId(value.getRoleId());
            resetChangedOnNotNull();
        }
    }
}
