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


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

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

    // -------------------------------------------------------------------------
    // Record3 type implementation
    // -------------------------------------------------------------------------

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

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

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

    @Override
    public Field<String> field2() {
        return SysAdminRole.SYS_ADMIN_ROLE.ADMIN_ID;
    }

    @Override
    public Field<Integer> field3() {
        return SysAdminRole.SYS_ADMIN_ROLE.ROLE_ID;
    }

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

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

    @Override
    public Integer component3() {
        return getRoleId();
    }

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

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

    @Override
    public Integer value3() {
        return getRoleId();
    }

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

    @Override
    public SysAdminRoleRecord value2(String value) {
        setAdminId(value);
        return this;
    }

    @Override
    public SysAdminRoleRecord value3(Integer value) {
        setRoleId(value);
        return this;
    }

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

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