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


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

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 SysAdminMenuRecord extends UpdatableRecordImpl<SysAdminMenuRecord> implements Record3<String, String, String> {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_admin_menu.adminid</code>.
     */
    public void setAdminid(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_admin_menu.adminid</code>.
     */
    public String getAdminid() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_admin_menu.memuid</code>.
     */
    public void setMemuid(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_admin_menu.memuid</code>.
     */
    public String getMemuid() {
        return (String) get(2);
    }

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

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

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

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

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

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

    @Override
    public Field<String> field2() {
        return SysAdminMenu.SYS_ADMIN_MENU.ADMINID;
    }

    @Override
    public Field<String> field3() {
        return SysAdminMenu.SYS_ADMIN_MENU.MEMUID;
    }

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

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

    @Override
    public String component3() {
        return getMemuid();
    }

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

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

    @Override
    public String value3() {
        return getMemuid();
    }

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

    @Override
    public SysAdminMenuRecord value2(String value) {
        setAdminid(value);
        return this;
    }

    @Override
    public SysAdminMenuRecord value3(String value) {
        setMemuid(value);
        return this;
    }

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

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

    /**
     * Create a detached SysAdminMenuRecord
     */
    public SysAdminMenuRecord() {
        super(SysAdminMenu.SYS_ADMIN_MENU);
    }

    /**
     * Create a detached, initialised SysAdminMenuRecord
     */
    public SysAdminMenuRecord(String id, String adminid, String memuid) {
        super(SysAdminMenu.SYS_ADMIN_MENU);

        setId(id);
        setAdminid(adminid);
        setMemuid(memuid);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysAdminMenuRecord
     */
    public SysAdminMenuRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysAdminMenu value) {
        super(SysAdminMenu.SYS_ADMIN_MENU);

        if (value != null) {
            setId(value.getId());
            setAdminid(value.getAdminid());
            setMemuid(value.getMemuid());
            resetChangedOnNotNull();
        }
    }
}
