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


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

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


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>yx.sys_org.pid</code>.
     */
    public void setPid(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.sys_org.pid</code>.
     */
    public String getPid() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.sys_org.status</code>.
     */
    public void setStatus(Integer value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.sys_org.status</code>.
     */
    public Integer getStatus() {
        return (Integer) get(2);
    }

    /**
     * Setter for <code>yx.sys_org.org_type</code>.
     */
    public void setOrgType(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>yx.sys_org.org_type</code>.
     */
    public String getOrgType() {
        return (String) get(3);
    }

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

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

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

    /**
     * Create a detached SysOrgRecord
     */
    public SysOrgRecord() {
        super(SysOrg.SYS_ORG);
    }

    /**
     * Create a detached, initialised SysOrgRecord
     */
    public SysOrgRecord(String id, String pid, Integer status, String orgType) {
        super(SysOrg.SYS_ORG);

        setId(id);
        setPid(pid);
        setStatus(status);
        setOrgType(orgType);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised SysOrgRecord
     */
    public SysOrgRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysOrg value) {
        super(SysOrg.SYS_ORG);

        if (value != null) {
            setId(value.getId());
            setPid(value.getPid());
            setStatus(value.getStatus());
            setOrgType(value.getOrgType());
            resetChangedOnNotNull();
        }
    }
}
