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


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

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

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