/*
 * This file is generated by jOOQ.
 */
package ervu_dashboard.ervu_dashboard.db_beans.security.tables.records;


import ervu_dashboard.ervu_dashboard.db_beans.security.tables.OrgUnit;

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


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

    private static final long serialVersionUID = 1L;

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

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

    /**
     * Setter for <code>security.org_unit.name</code>.
     */
    public void setName(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>security.org_unit.name</code>.
     */
    public String getName() {
        return (String) get(1);
    }

    /**
     * Setter for <code>security.org_unit.code</code>.
     */
    public void setCode(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>security.org_unit.code</code>.
     */
    public String getCode() {
        return (String) get(2);
    }

    /**
     * Setter for <code>security.org_unit.parent_id</code>.
     */
    public void setParentId(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>security.org_unit.parent_id</code>.
     */
    public String getParentId() {
        return (String) get(3);
    }

    /**
     * Setter for <code>security.org_unit.removed</code>.
     */
    public void setRemoved(Boolean value) {
        set(4, value);
    }

    /**
     * Getter for <code>security.org_unit.removed</code>.
     */
    public Boolean getRemoved() {
        return (Boolean) get(4);
    }

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

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

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

    /**
     * Create a detached OrgUnitRecord
     */
    public OrgUnitRecord() {
        super(OrgUnit.ORG_UNIT);
    }

    /**
     * Create a detached, initialised OrgUnitRecord
     */
    public OrgUnitRecord(String id, String name, String code, String parentId, Boolean removed) {
        super(OrgUnit.ORG_UNIT);

        setId(id);
        setName(name);
        setCode(code);
        setParentId(parentId);
        setRemoved(removed);
        resetChangedOnNotNull();
    }
}
