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


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

import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record7;
import org.jooq.Row7;
import org.jooq.impl.UpdatableRecordImpl;


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_admin.org_id</code>.
     */
    public void setOrgId(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_admin.org_id</code>.
     */
    public String getOrgId() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_admin.type</code>. 0管理员,1普通用户
     */
    public void setType(Integer value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_admin.type</code>. 0管理员,1普通用户
     */
    public Integer getType() {
        return (Integer) get(2);
    }

    /**
     * Setter for <code>yx.sys_admin.realname</code>.
     */
    public void setRealname(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>yx.sys_admin.realname</code>.
     */
    public String getRealname() {
        return (String) get(3);
    }

    /**
     * Setter for <code>yx.sys_admin.username</code>.
     */
    public void setUsername(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>yx.sys_admin.username</code>.
     */
    public String getUsername() {
        return (String) get(4);
    }

    /**
     * Setter for <code>yx.sys_admin.password</code>. sha3_256hex
     */
    public void setPassword(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>yx.sys_admin.password</code>. sha3_256hex
     */
    public String getPassword() {
        return (String) get(5);
    }

    /**
     * Setter for <code>yx.sys_admin.islock</code>. 0正常,1锁定
     */
    public void setIslock(Integer value) {
        set(6, value);
    }

    /**
     * Getter for <code>yx.sys_admin.islock</code>. 0正常,1锁定
     */
    public Integer getIslock() {
        return (Integer) get(6);
    }

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

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

    // -------------------------------------------------------------------------
    // Record7 type implementation
    // -------------------------------------------------------------------------

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

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

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

    @Override
    public Field<String> field2() {
        return SysAdmin.SYS_ADMIN.ORG_ID;
    }

    @Override
    public Field<Integer> field3() {
        return SysAdmin.SYS_ADMIN.TYPE;
    }

    @Override
    public Field<String> field4() {
        return SysAdmin.SYS_ADMIN.REALNAME;
    }

    @Override
    public Field<String> field5() {
        return SysAdmin.SYS_ADMIN.USERNAME;
    }

    @Override
    public Field<String> field6() {
        return SysAdmin.SYS_ADMIN.PASSWORD;
    }

    @Override
    public Field<Integer> field7() {
        return SysAdmin.SYS_ADMIN.ISLOCK;
    }

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

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

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

    @Override
    public String component4() {
        return getRealname();
    }

    @Override
    public String component5() {
        return getUsername();
    }

    @Override
    public String component6() {
        return getPassword();
    }

    @Override
    public Integer component7() {
        return getIslock();
    }

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

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

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

    @Override
    public String value4() {
        return getRealname();
    }

    @Override
    public String value5() {
        return getUsername();
    }

    @Override
    public String value6() {
        return getPassword();
    }

    @Override
    public Integer value7() {
        return getIslock();
    }

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

    @Override
    public SysAdminRecord value2(String value) {
        setOrgId(value);
        return this;
    }

    @Override
    public SysAdminRecord value3(Integer value) {
        setType(value);
        return this;
    }

    @Override
    public SysAdminRecord value4(String value) {
        setRealname(value);
        return this;
    }

    @Override
    public SysAdminRecord value5(String value) {
        setUsername(value);
        return this;
    }

    @Override
    public SysAdminRecord value6(String value) {
        setPassword(value);
        return this;
    }

    @Override
    public SysAdminRecord value7(Integer value) {
        setIslock(value);
        return this;
    }

    @Override
    public SysAdminRecord values(String value1, String value2, Integer value3, String value4, String value5, String value6, Integer value7) {
        value1(value1);
        value2(value2);
        value3(value3);
        value4(value4);
        value5(value5);
        value6(value6);
        value7(value7);
        return this;
    }

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

    /**
     * Create a detached SysAdminRecord
     */
    public SysAdminRecord() {
        super(SysAdmin.SYS_ADMIN);
    }

    /**
     * Create a detached, initialised SysAdminRecord
     */
    public SysAdminRecord(String id, String orgId, Integer type, String realname, String username, String password, Integer islock) {
        super(SysAdmin.SYS_ADMIN);

        setId(id);
        setOrgId(orgId);
        setType(type);
        setRealname(realname);
        setUsername(username);
        setPassword(password);
        setIslock(islock);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysAdminRecord
     */
    public SysAdminRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin value) {
        super(SysAdmin.SYS_ADMIN);

        if (value != null) {
            setId(value.getId());
            setOrgId(value.getOrgId());
            setType(value.getType());
            setRealname(value.getRealname());
            setUsername(value.getUsername());
            setPassword(value.getPassword());
            setIslock(value.getIslock());
            resetChangedOnNotNull();
        }
    }
}
