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


import java.sql.Date;
import java.util.UUID;

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

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


/**
 * сведения о детях гражданина
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenChildRecord extends UpdatableRecordImpl<CitizenChildRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>ervu_dashboard.citizen_child.citizen_child_id</code>.
     */
    public void setCitizenChildId(Long value) {
        set(0, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_child.citizen_child_id</code>.
     */
    public Long getCitizenChildId() {
        return (Long) get(0);
    }

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

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

    /**
     * Setter for <code>ervu_dashboard.citizen_child.kinship_type</code>. тип
     * родственной связи: сын/дочь
     */
    public void setKinshipType(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_child.kinship_type</code>. тип
     * родственной связи: сын/дочь
     */
    public String getKinshipType() {
        return (String) get(2);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_child.full_name</code>. ФИО
     */
    public void setFullName(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_child.full_name</code>. ФИО
     */
    public String getFullName() {
        return (String) get(3);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_child.birth_date</code>.
     */
    public void setBirthDate(Date value) {
        set(4, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_child.birth_date</code>.
     */
    public Date getBirthDate() {
        return (Date) get(4);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_child.birth_az_number</code>.
     * номер актовой записи о рождении
     */
    public void setBirthAzNumber(String value) {
        set(5, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_child.birth_az_number</code>.
     * номер актовой записи о рождении
     */
    public String getBirthAzNumber() {
        return (String) get(5);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_child.death_date</code>.
     */
    public void setDeathDate(Date value) {
        set(6, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_child.death_date</code>.
     */
    public Date getDeathDate() {
        return (Date) get(6);
    }

    /**
     * Setter for <code>ervu_dashboard.citizen_child.death_az_number</code>.
     * номер актовой записи о смерти
     */
    public void setDeathAzNumber(String value) {
        set(7, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_child.death_az_number</code>.
     * номер актовой записи о смерти
     */
    public String getDeathAzNumber() {
        return (String) get(7);
    }

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

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

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

    /**
     * Create a detached CitizenChildRecord
     */
    public CitizenChildRecord() {
        super(CitizenChild.CITIZEN_CHILD);
    }

    /**
     * Create a detached, initialised CitizenChildRecord
     */
    public CitizenChildRecord(Long citizenChildId, UUID recruitId, String kinshipType, String fullName, Date birthDate, String birthAzNumber, Date deathDate, String deathAzNumber) {
        super(CitizenChild.CITIZEN_CHILD);

        setCitizenChildId(citizenChildId);
        setRecruitId(recruitId);
        setKinshipType(kinshipType);
        setFullName(fullName);
        setBirthDate(birthDate);
        setBirthAzNumber(birthAzNumber);
        setDeathDate(deathDate);
        setDeathAzNumber(deathAzNumber);
        resetChangedOnNotNull();
    }
}
