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


import java.sql.Timestamp;
import java.util.UUID;

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

import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.Recruitment;


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

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.recruitment.id</code>.
     */
    public void setId(UUID value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.id</code>.
     */
    public UUID getId() {
        return (UUID) get(0);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.shortname</code>.
     */
    public void setShortname(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.shortname</code>.
     */
    public String getShortname() {
        return (String) get(1);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.idm_id</code>.
     */
    public void setIdmId(UUID value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.idm_id</code>.
     */
    public UUID getIdmId() {
        return (UUID) get(2);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.code</code>.
     */
    public void setCode(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.code</code>.
     */
    public String getCode() {
        return (String) get(3);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.parent_id</code>.
     */
    public void setParentId(UUID value) {
        set(4, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.parent_id</code>.
     */
    public UUID getParentId() {
        return (UUID) get(4);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.sort</code>.
     */
    public void setSort(Long value) {
        set(5, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.sort</code>.
     */
    public Long getSort() {
        return (Long) get(5);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.schema</code>.
     */
    public void setSchema(String value) {
        set(6, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.schema</code>.
     */
    public String getSchema() {
        return (String) get(6);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.updated_at</code>.
     */
    public void setUpdatedAt(Timestamp value) {
        set(7, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.updated_at</code>.
     */
    public Timestamp getUpdatedAt() {
        return (Timestamp) get(7);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.created_at</code>.
     */
    public void setCreatedAt(Timestamp value) {
        set(8, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.created_at</code>.
     */
    public Timestamp getCreatedAt() {
        return (Timestamp) get(8);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.hidden</code>.
     */
    public void setHidden(Boolean value) {
        set(9, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.hidden</code>.
     */
    public Boolean getHidden() {
        return (Boolean) get(9);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.enabled</code>.
     */
    public void setEnabled(Boolean value) {
        set(10, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.enabled</code>.
     */
    public Boolean getEnabled() {
        return (Boolean) get(10);
    }

    /**
     * Setter for <code>ervu_dashboard.recruitment.reports_enabled</code>.
     */
    public void setReportsEnabled(Boolean value) {
        set(11, value);
    }

    /**
     * Getter for <code>ervu_dashboard.recruitment.reports_enabled</code>.
     */
    public Boolean getReportsEnabled() {
        return (Boolean) get(11);
    }

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

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

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

    /**
     * Create a detached RecruitmentRecord
     */
    public RecruitmentRecord() {
        super(Recruitment.RECRUITMENT);
    }

    /**
     * Create a detached, initialised RecruitmentRecord
     */
    public RecruitmentRecord(UUID id, String shortname, UUID idmId, String code, UUID parentId, Long sort, String schema, Timestamp updatedAt, Timestamp createdAt, Boolean hidden, Boolean enabled, Boolean reportsEnabled) {
        super(Recruitment.RECRUITMENT);

        setId(id);
        setShortname(shortname);
        setIdmId(idmId);
        setCode(code);
        setParentId(parentId);
        setSort(sort);
        setSchema(schema);
        setUpdatedAt(updatedAt);
        setCreatedAt(createdAt);
        setHidden(hidden);
        setEnabled(enabled);
        setReportsEnabled(reportsEnabled);
        resetChangedOnNotNull();
    }
}
