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


import ervu_dashboard.ervu_dashboard.db_beans.ervu_dashboard.tables.CitizenGuardianship;

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

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


/**
 * сведения о лице, опекаемом или находящемся на попечении
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenGuardianshipRecord extends UpdatableRecordImpl<CitizenGuardianshipRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>ervu_dashboard.citizen_guardianship.citizen_guardianship_id</code>.
     */
    public void setCitizenGuardianshipId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>ervu_dashboard.citizen_guardianship.citizen_guardianship_id</code>.
     */
    public Long getCitizenGuardianshipId() {
        return (Long) get(0);
    }

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

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

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

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

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

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

    /**
     * Setter for <code>ervu_dashboard.citizen_guardianship.snils</code>.
     */
    public void setSnils(String value) {
        set(4, value);
    }

    /**
     * Getter for <code>ervu_dashboard.citizen_guardianship.snils</code>.
     */
    public String getSnils() {
        return (String) get(4);
    }

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

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

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

    /**
     * Create a detached CitizenGuardianshipRecord
     */
    public CitizenGuardianshipRecord() {
        super(CitizenGuardianship.CITIZEN_GUARDIANSHIP);
    }

    /**
     * Create a detached, initialised CitizenGuardianshipRecord
     */
    public CitizenGuardianshipRecord(Long citizenGuardianshipId, UUID recruitId, String fullName, Date birthDate, String snils) {
        super(CitizenGuardianship.CITIZEN_GUARDIANSHIP);

        setCitizenGuardianshipId(citizenGuardianshipId);
        setRecruitId(recruitId);
        setFullName(fullName);
        setBirthDate(birthDate);
        setSnils(snils);
        resetChangedOnNotNull();
    }
}
