/*
 * 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.CitizenInformationSearch;


/**
 * Сведения о розыске
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenInformationSearchRecord extends UpdatableRecordImpl<CitizenInformationSearchRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.citizen_information_search_id</code>.
     */
    public void setCitizenInformationSearchId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.citizen_information_search_id</code>.
     */
    public Long getCitizenInformationSearchId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.recruit_id</code>. ссылка
     * на гражданина (citizen)
     */
    public void setRecruitId(UUID value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.recruit_id</code>. ссылка
     * на гражданина (citizen)
     */
    public UUID getRecruitId() {
        return (UUID) get(1);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.name_organ_start_search</code>.
     * Наименование органа, принявшего решение о розыске
     */
    public void setNameOrganStartSearch(String value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.name_organ_start_search</code>.
     * Наименование органа, принявшего решение о розыске
     */
    public String getNameOrganStartSearch() {
        return (String) get(2);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.wanted_start_date</code>.
     * Дата объявления в розыск
     */
    public void setWantedStartDate(Timestamp value) {
        set(3, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.wanted_start_date</code>.
     * Дата объявления в розыск
     */
    public Timestamp getWantedStartDate() {
        return (Timestamp) get(3);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.article_criminal_code</code>.
     * Пункт, часть, статья УК РФ
     */
    public void setArticleCriminalCode(String value) {
        set(4, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.article_criminal_code</code>.
     * Пункт, часть, статья УК РФ
     */
    public String getArticleCriminalCode() {
        return (String) get(4);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.wanted_end_date</code>.
     * Дата прекращения розыска
     */
    public void setWantedEndDate(Timestamp value) {
        set(5, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.wanted_end_date</code>.
     * Дата прекращения розыска
     */
    public Timestamp getWantedEndDate() {
        return (Timestamp) get(5);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.name_organ_end_search</code>.
     * Наименование органа, прекратившего розыск
     */
    public void setNameOrganEndSearch(String value) {
        set(6, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.name_organ_end_search</code>.
     * Наименование органа, прекратившего розыск
     */
    public String getNameOrganEndSearch() {
        return (String) get(6);
    }

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_information_search.grounds_stopping_search</code>.
     * Основание прекращения розыска
     */
    public void setGroundsStoppingSearch(String value) {
        set(7, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_information_search.grounds_stopping_search</code>.
     * Основание прекращения розыска
     */
    public String getGroundsStoppingSearch() {
        return (String) get(7);
    }

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

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

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

    /**
     * Create a detached CitizenInformationSearchRecord
     */
    public CitizenInformationSearchRecord() {
        super(CitizenInformationSearch.CITIZEN_INFORMATION_SEARCH);
    }

    /**
     * Create a detached, initialised CitizenInformationSearchRecord
     */
    public CitizenInformationSearchRecord(Long citizenInformationSearchId, UUID recruitId, String nameOrganStartSearch, Timestamp wantedStartDate, String articleCriminalCode, Timestamp wantedEndDate, String nameOrganEndSearch, String groundsStoppingSearch) {
        super(CitizenInformationSearch.CITIZEN_INFORMATION_SEARCH);

        setCitizenInformationSearchId(citizenInformationSearchId);
        setRecruitId(recruitId);
        setNameOrganStartSearch(nameOrganStartSearch);
        setWantedStartDate(wantedStartDate);
        setArticleCriminalCode(articleCriminalCode);
        setWantedEndDate(wantedEndDate);
        setNameOrganEndSearch(nameOrganEndSearch);
        setGroundsStoppingSearch(groundsStoppingSearch);
        resetChangedOnNotNull();
    }
}
